@abtnode/blocklet-services 1.16.25-beta-fe54d1bc → 1.16.25-beta-4f765cf3
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/email.js +1 -1
- package/api/services/dashboard/index.js +1 -2
- package/dist/assets/{Add-cHlB2aT1.js → Add-hE_y-3Pq.js} +1 -1
- package/dist/assets/{Alert-MdJYBFVy.js → Alert-N84_KD-3.js} +1 -1
- package/dist/assets/{ArrowDropDown-BvBvwG40.js → ArrowDropDown-wCnewKKe.js} +1 -1
- package/dist/assets/{Avatar-fSw3xwrG.js → Avatar-HEnEOozL.js} +1 -1
- package/dist/assets/{ButtonGroup-rkDf74jq.js → ButtonGroup-W_ITJpp0.js} +1 -1
- package/dist/assets/{CheckCircle-zEocFWjW.js → CheckCircle-cUnXZ7OP.js} +1 -1
- package/dist/assets/{Checkbox--mmHc71j.js → Checkbox-LXon8OOU.js} +1 -1
- package/dist/assets/{ChevronRight-fbb5cYZ4.js → ChevronRight-WBXU5ohU.js} +1 -1
- package/dist/assets/{CloseOutlined-9i0XEqO_.js → CloseOutlined-TVRW4CrE.js} +1 -1
- package/dist/assets/{DeleteOutline-Zyru4y8C.js → DeleteOutline-gdv3ewKz.js} +1 -1
- package/dist/assets/{Done-aCKUu1sE.js → Done-EASqrGRr.js} +1 -1
- package/dist/assets/{Download-wIqjcRIP.js → Download-qMR3c16e.js} +1 -1
- package/dist/assets/{Edit-VGLT5fsM.js → Edit-kLYyZhkN.js} +1 -1
- package/dist/assets/{EditIcon-OYkqAblR.js → EditIcon-n1Oun3aR.js} +1 -1
- package/dist/assets/{ExpandMore-byZ1bCvM.js → ExpandMore-WMRfZEqP.js} +1 -1
- package/dist/assets/{FilterList-aeaSrubq.js → FilterList-L4dRV2kI.js} +1 -1
- package/dist/assets/{FormControl-oOR29lpJ.js → FormControl-lU-7UxhW.js} +1 -1
- package/dist/assets/{FormControlLabel-L3cnXbG5.js → FormControlLabel-h1hvXlPm.js} +1 -1
- package/dist/assets/{FormGroup-7rC8tk9C.js → FormGroup-hZDn5b3E.js} +1 -1
- package/dist/assets/{Google-SlAlwx1t.js → Google-YsY_lMOh.js} +1 -1
- package/dist/assets/{Grid-7TNNvUm7.js → Grid-O2eaJZIs.js} +1 -1
- package/dist/assets/{Hidden-gMCEevUV.js → Hidden-8riRi-7w.js} +1 -1
- package/dist/assets/{InfoOutlined-IFjNFHvN.js → InfoOutlined-tz9WxS05.js} +1 -1
- package/dist/assets/{InputAdornment-JqnRRMW5.js → InputAdornment-gpcYuAGZ.js} +1 -1
- package/dist/assets/{InputLabel-tixiiB_7.js → InputLabel-nZyS3xY_.js} +1 -1
- package/dist/assets/{LastPage-SxjDnWfh.js → LastPage--aACjaLx.js} +1 -1
- package/dist/assets/{Launch-AGhMgMzI.js → Launch-JkzTfHAo.js} +1 -1
- package/dist/assets/{LaunchOutlined-wEhMyxOq.js → LaunchOutlined-pjiX1yYA.js} +1 -1
- package/dist/assets/{Link-kO4yy9NY.js → Link-4swwBDUU.js} +1 -1
- package/dist/assets/{ListItem-22rMJzrR.js → ListItem-DSIyD39f.js} +1 -1
- package/dist/assets/{LockIcon-Zvlt6Ez7.js → LockIcon-SkJSvCSd.js} +1 -1
- package/dist/assets/{Loop-eMhEddk0.js → Loop-nbHXfT5v.js} +1 -1
- package/dist/assets/{MoreHoriz-wD31dy4A.js → MoreHoriz-Ob-PdXvr.js} +1 -1
- package/dist/assets/{MoreVert-y0nkhqA-.js → MoreVert-JPy3cIzD.js} +1 -1
- package/dist/assets/{OpenInNew-lS0r1wSf.js → OpenInNew-ZUopA0lK.js} +1 -1
- package/dist/assets/{Pagination-BpRx0SAK.js → Pagination-DKPQNlbx.js} +1 -1
- package/dist/assets/{PlayArrow-OaVVr0ni.js → PlayArrow-lb0G2com.js} +1 -1
- package/dist/assets/{RadioGroup-37HVwVTv.js → RadioGroup-Pc6M6-Ta.js} +1 -1
- package/dist/assets/{RevokeIcon-Y9PaByDx.js → RevokeIcon-uaAHFtlr.js} +1 -1
- package/dist/assets/{Search-u7box4_Y.js → Search-uAWnirME.js} +1 -1
- package/dist/assets/{Select-pRXRwWUr.js → Select-zWmcTNCa.js} +1 -1
- package/dist/assets/{ServerLogo-jwHh0IgF.js → ServerLogo-aTuLKo2-.js} +1 -1
- package/dist/assets/{Skeleton-f2FtQiax.js → Skeleton-8CtJ4Efm.js} +1 -1
- package/dist/assets/{Slider-H4XrXpoV.js → Slider-onjTAkn6.js} +1 -1
- package/dist/assets/{Stepper-VaR1-5O8.js → Stepper-ClqLBUZn.js} +1 -1
- package/dist/assets/{TableRow-Cj_2GgNk.js → TableRow-sJQHVDVk.js} +1 -1
- package/dist/assets/{TextField-ZyGIim97.js → TextField-qykW02zP.js} +1 -1
- package/dist/assets/{Toolbar-doxZSzMe.js → Toolbar-U75uViNg.js} +1 -1
- package/dist/assets/{access-control-aK8P4gb0.js → access-control-84TFJPOW.js} +1 -1
- package/dist/assets/{actions-xNOsUM5q.js → actions-oIEoqVY9.js} +1 -1
- package/dist/assets/{add-component-core-zbwQZ7Gj.js → add-component-core-KW2dmt2S.js} +1 -1
- package/dist/assets/add-resource-xXtPPgi2.js +1 -0
- package/dist/assets/{addon-64NahJ__.js → addon-AhsSDW4t.js} +1 -1
- package/dist/assets/{analytics-g0Vfj2hE.js → analytics-ah1N_RmS.js} +1 -1
- package/dist/assets/api-JlWJcBe_.js +1 -0
- package/dist/assets/{audit-logs-uyu3rQip.js → audit-logs-BDEBHbGm.js} +1 -1
- package/dist/assets/{button-MCw_QfXz.js → button-uaT7Xd3G.js} +1 -1
- package/dist/assets/{click-to-copy-LXhBTX9X.js → click-to-copy-JQ1hcSA6.js} +1 -1
- package/dist/assets/{complete-P7vW9Q6f.js → complete-E5cWO82Y.js} +1 -1
- package/dist/assets/{component-DzlvVteR.js → component-ibdtKOi5.js} +1 -1
- package/dist/assets/{config-Ea6I9v5o.js → config-Fy4LmtXv.js} +1 -1
- package/dist/assets/{config-navigation-bW1alqTf.js → config-navigation-v-8UEsNh.js} +1 -1
- package/dist/assets/{config-80unJZu-.js → config-rPSf2CrR.js} +1 -1
- package/dist/assets/{config-space-1m3dkUIH.js → config-space-qrKrA2gA.js} +1 -1
- package/dist/assets/{confirm-yrg6H3m3.js → confirm-uc1Y33uD.js} +1 -1
- package/dist/assets/{connect-flk1UIKu.js → connect-frGRdhGh.js} +1 -1
- package/dist/assets/{connect-YLbdrcyy.js → connect-hxSEw-9U.js} +1 -1
- package/dist/assets/{connect-to-khFlOoo3.js → connect-to-aXc7wTCq.js} +1 -1
- package/dist/assets/{content-layout-ffAMA0Xk.js → content-layout-sw8mpR8E.js} +1 -1
- package/dist/assets/{dashboard-D4mJn4NA.js → dashboard-VBA06Iwv.js} +3 -3
- package/dist/assets/{did-address-ECHkrvY7.js → did-address-kM_Gj5GB.js} +1 -1
- package/dist/assets/{domain-list-2PxYmwNK.js → domain-list-RHpwjQ6u.js} +1 -1
- package/dist/assets/{domain-k9a3yDA2.js → domain-tImHfF3n.js} +1 -1
- package/dist/assets/{exchange-passport-yCBnyVYx.js → exchange-passport-yJcCPjmR.js} +1 -1
- package/dist/assets/{fallback-IjAJjezW.js → fallback-kvbxeOAh.js} +1 -1
- package/dist/assets/{fuel-MtoIUvUC.js → fuel-I4edEzsM.js} +1 -1
- package/dist/assets/{fullpage-YNLC3IT8.js → fullpage-Y5V_MGHE.js} +1 -1
- package/dist/assets/{home-vKdVJ5HF.js → home-x43lXk8b.js} +1 -1
- package/dist/assets/{iframe--DDyxCFe.js → iframe--DusxskT.js} +1 -1
- package/dist/assets/{index-ccjgq6fd.js → index-0Ap23gmc.js} +1 -1
- package/dist/assets/{index-yvk_oh1_.js → index-1RYLvd7a.js} +3 -3
- package/dist/assets/{index-mn6jUdgx.js → index-3jv088eq.js} +1 -1
- package/dist/assets/{index-MKqHQU8x.js → index-4FwYLGoA.js} +1 -1
- package/dist/assets/{index-ZiUiRdOB.js → index-4uoBZ4Km.js} +1 -1
- package/dist/assets/{index-YVfYKQPA.js → index-9kGH241X.js} +1 -1
- package/dist/assets/{index-o710KUFS.js → index-D7dMTham.js} +4 -4
- package/dist/assets/{index-UgzUFIZC.js → index-DBamhj5p.js} +1 -1
- package/dist/assets/{index-pdBeVTGN.js → index-EbJvsRfv.js} +1 -1
- package/dist/assets/{index-S-si__X3.js → index-FoQ3Q1RE.js} +1 -1
- package/dist/assets/{index-bXBQKCg5.js → index-HlcsGwyy.js} +1 -1
- package/dist/assets/{index-G9GF7vbH.js → index-JW3UP05k.js} +3 -3
- package/dist/assets/{index-rqKNtf3z.js → index-MW5XAWzK.js} +1 -1
- package/dist/assets/{index-Lh9Yvtax.js → index-NRx9SxtP.js} +1 -1
- package/dist/assets/{index-26PglcEO.js → index-VW3Fsku0.js} +1 -1
- package/dist/assets/{index-8IYt6Tm_.js → index-VcmnR0mp.js} +1 -1
- package/dist/assets/{index-Ym1-gm8d.js → index-WdoIow2K.js} +1 -1
- package/dist/assets/{index-EXmerWmJ.js → index-bcLu0M2u.js} +3 -3
- package/dist/assets/{index-IpFMsnoW.js → index-e_QDKVxH.js} +1 -1
- package/dist/assets/{index-r3XMu1Ks.js → index-k3rNNowK.js} +1 -1
- package/dist/assets/{index-8VBxs9u3.js → index-lTugDaC3.js} +1 -1
- package/dist/assets/{index-JYhe2G5y.js → index-mjo2fUfh.js} +1 -1
- package/dist/assets/{index-OUA4hTDF.js → index-oIFGwfmM.js} +1 -1
- package/dist/assets/{index-hh07q2GE.js → index-p2mJUcBg.js} +1 -1
- package/dist/assets/{index-saPuhMhh.js → index-sfLTpxKS.js} +1 -1
- package/dist/assets/{index-WWDbv1Eq.js → index-uLL8Vp7T.js} +1 -1
- package/dist/assets/{index-oxQd4nva.js → index-v3hymz3j.js} +1 -1
- package/dist/assets/{index-BV6xFdZD.js → index-vL9pFI1M.js} +1 -1
- package/dist/assets/{index-VFmj_3nK.js → index-yxXVaudE.js} +1 -1
- package/dist/assets/{index.es-lbwZYV-L.js → index.es-bqRJDylj.js} +1 -1
- package/dist/assets/{index.esm-HKU4eQVx.js → index.esm-t8g2Slly.js} +1 -1
- package/dist/assets/{invitation-e2c4kSlx.js → invitation-tMRZljsF.js} +1 -1
- package/dist/assets/{invite-hdpCzq3L.js → invite-WXG3A1XD.js} +1 -1
- package/dist/assets/{issue-passport-gmkPNmza.js → issue-passport-PWWWsMhT.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-ovOeGd-o.js → jss-plugin-props-sort.esm-7_btNtOg.js} +1 -1
- package/dist/assets/{launch-result-message-eVOyvqSH.js → launch-result-message-JRp4fsUm.js} +1 -1
- package/dist/assets/{layout-PpqpyJ6o.js → layout-fGWPkOEh.js} +1 -1
- package/dist/assets/{list-header-YBNntNYI.js → list-header-UfmVzXbI.js} +1 -1
- package/dist/assets/localization-1vbSMg9g.js +1 -0
- package/dist/assets/{log-rzr7eADS.js → log-lPZLyIpQ.js} +1 -1
- package/dist/assets/{login-kqUJ5Zy_.js → login-8jWdK1zF.js} +1 -1
- package/dist/assets/{logo-uploader-BdVu_wfY.js → logo-uploader-1AyeNZ0q.js} +3 -3
- package/dist/assets/{lost-passport-e2_Aixuz.js → lost-passport-JYHdz0yI.js} +3 -3
- package/dist/assets/{lottie-VSBLQIsZ.js → lottie-pnpc9RW1.js} +1 -1
- package/dist/assets/{notifications-Gd9Mk4s-.js → notifications-LaROgtr_.js} +1 -1
- package/dist/assets/{overview-0Vyc0Cwy.js → overview-ftrECyBu.js} +1 -1
- package/dist/assets/{page-header-o4M2G8PP.js → page-header-w9yhETXI.js} +1 -1
- package/dist/assets/{permission--6GIxgou.js → permission-RZL9x2kU.js} +1 -1
- package/dist/assets/{preferences-q4lQqOmp.js → preferences-pJUG2yrq.js} +1 -1
- package/dist/assets/publish-resource-rZcNx7fC.js +1 -0
- package/dist/assets/{react-9qdY2BUq.js → react-iBHDgDW5.js} +3 -3
- package/dist/assets/{selector-xIZpkZZH.js → selector-g3wjJR3o.js} +1 -1
- package/dist/assets/session-njvv4tO8.js +1 -0
- package/dist/assets/{setup-hZt95TOJ.js → setup-qpe6SzuC.js} +3 -3
- package/dist/assets/{slicedToArray-TwNvqSQp.js → slicedToArray-9fp4JHaL.js} +1 -1
- package/dist/assets/{spaces-qMnDTN0_.js → spaces-QwLXvIVF.js} +1 -1
- package/dist/assets/{start-PVNjbt4-.js → start-P2s1c0OH.js} +1 -1
- package/dist/assets/{step-actions-W8kQwGcm.js → step-actions-wtpUlz_n.js} +1 -1
- package/dist/assets/{studio-RndkT_vD.js → studio-zi78rIOG.js} +1 -1
- package/dist/assets/{switch-control-ivJ4ll4x.js → switch-control-6WrpIwmw.js} +1 -1
- package/dist/assets/{toUpper-CIY0cVrY.js → toUpper-3okjr7DL.js} +1 -1
- package/dist/assets/{transfer-Plp5xICV.js → transfer-OatqzcQh.js} +1 -1
- package/dist/assets/{uniqBy-WQM1t37b.js → uniqBy-E-w6tn5N.js} +1 -1
- package/dist/assets/unsubscribe-T77Y7MuB.js +1 -0
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-MBXLKWI5.js → use-blocklet-info-for-connect-did-spaces-8VklSTD-.js} +1 -1
- package/dist/assets/{useAsync-cflFULKW.js → useAsync-q9mkCv9v.js} +1 -1
- package/dist/assets/{useFormControl-FTiWn0ol.js → useFormControl-bdbmye_j.js} +1 -1
- package/dist/assets/{useLocalStorage-ieO-IiCr.js → useLocalStorage-slHq8u6M.js} +1 -1
- package/dist/assets/{useSetState-LqZ6-yZ8.js → useSetState-GR8fLZaJ.js} +1 -1
- package/dist/assets/{useSlot-Q68JwoxM.js → useSlot-VejfTAjg.js} +1 -1
- package/dist/assets/{user-center-Mc5H24-C.js → user-center-b2Piq6Oe.js} +1 -1
- package/dist/assets/{util-6HXJO81-.js → util-SGesDKnt.js} +1 -1
- package/dist/assets/{wrap-locale-02wmIj1x.js → wrap-locale-oqRLFt6z.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +18 -18
- package/dist/assets/add-resource-hfRO6Rgs.js +0 -1
- package/dist/assets/api-oD_O5CWe.js +0 -1
- package/dist/assets/localization-4OUgsdII.js +0 -1
- package/dist/assets/publish-resource-Fe3acGXx.js +0 -1
- package/dist/assets/session-QnPtqbmu.js +0 -1
- package/dist/assets/unsubscribe-xGN5x3Qn.js +0 -1
|
@@ -486,7 +486,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
486
486
|
`}return Ne.substring(0,Ne.length-1)},_.renderTo2dContext=function(j,P){P=P||2;for(var K=_.getModuleCount(),z=0;z<K;z++)for(var te=0;te<K;te++)j.fillStyle=_.isDark(z,te)?"black":"white",j.fillRect(z*P,te*P,P,P)},_};c.stringToBytes=(c.stringToBytesFuncs={default:function(T){for(var u=[],h=0;h<T.length;h+=1){var E=T.charCodeAt(h);u.push(255&E)}return u}}).default,c.createStringToBytes=function(T,u){var h=function(){for(var S=Q(T),C=function(){var re=S.read();if(re==-1)throw"eof";return re},I=0,x={};;){var _=S.read();if(_==-1)break;var y=C(),k=C()<<8|C();x[String.fromCharCode(_<<8|y)]=k,I+=1}if(I!=u)throw I+" != "+u;return x}(),E=63;return function(S){for(var C=[],I=0;I<S.length;I+=1){var x=S.charCodeAt(I);if(x<128)C.push(x);else{var _=h[S.charAt(I)];typeof _=="number"?(255&_)==_?C.push(_):(C.push(_>>>8),C.push(255&_)):C.push(E)}}return C}};var d,p,g,v,b,R={L:1,M:0,Q:3,H:2},A=(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,g=7973,b=function(T){for(var u=0;T!=0;)u+=1,T>>>=1;return u},(v={}).getBCHTypeInfo=function(T){for(var u=T<<10;b(u)-b(p)>=0;)u^=p<<b(u)-b(p);return 21522^(T<<10|u)},v.getBCHTypeNumber=function(T){for(var u=T<<12;b(u)-b(g)>=0;)u^=g<<b(u)-b(g);return T<<12|u},v.getPatternPosition=function(T){return d[T-1]},v.getMaskFunction=function(T){switch(T){case 0:return function(u,h){return(u+h)%2==0};case 1:return function(u,h){return u%2==0};case 2:return function(u,h){return h%3==0};case 3:return function(u,h){return(u+h)%3==0};case 4:return function(u,h){return(Math.floor(u/2)+Math.floor(h/3))%2==0};case 5:return function(u,h){return u*h%2+u*h%3==0};case 6:return function(u,h){return(u*h%2+u*h%3)%2==0};case 7:return function(u,h){return(u*h%3+(u+h)%2)%2==0};default:throw"bad maskPattern:"+T}},v.getErrorCorrectPolynomial=function(T){for(var u=D([1],0),h=0;h<T;h+=1)u=u.multiply(D([1,$.gexp(h)],0));return u},v.getLengthInBits=function(T,u){if(1<=u&&u<10)switch(T){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+T}else if(u<27)switch(T){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+T}else{if(!(u<41))throw"type:"+u;switch(T){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+T}}},v.getLostPoint=function(T){for(var u=T.getModuleCount(),h=0,E=0;E<u;E+=1)for(var S=0;S<u;S+=1){for(var C=0,I=T.isDark(E,S),x=-1;x<=1;x+=1)if(!(E+x<0||u<=E+x))for(var _=-1;_<=1;_+=1)S+_<0||u<=S+_||x==0&&_==0||I==T.isDark(E+x,S+_)&&(C+=1);C>5&&(h+=3+C-5)}for(E=0;E<u-1;E+=1)for(S=0;S<u-1;S+=1){var y=0;T.isDark(E,S)&&(y+=1),T.isDark(E+1,S)&&(y+=1),T.isDark(E,S+1)&&(y+=1),T.isDark(E+1,S+1)&&(y+=1),y!=0&&y!=4||(h+=3)}for(E=0;E<u;E+=1)for(S=0;S<u-6;S+=1)T.isDark(E,S)&&!T.isDark(E,S+1)&&T.isDark(E,S+2)&&T.isDark(E,S+3)&&T.isDark(E,S+4)&&!T.isDark(E,S+5)&&T.isDark(E,S+6)&&(h+=40);for(S=0;S<u;S+=1)for(E=0;E<u-6;E+=1)T.isDark(E,S)&&!T.isDark(E+1,S)&&T.isDark(E+2,S)&&T.isDark(E+3,S)&&T.isDark(E+4,S)&&!T.isDark(E+5,S)&&T.isDark(E+6,S)&&(h+=40);var k=0;for(S=0;S<u;S+=1)for(E=0;E<u;E+=1)T.isDark(E,S)&&(k+=1);return h+Math.abs(100*k/u/u-50)/5*10},v),$=function(){for(var T=new Array(256),u=new Array(256),h=0;h<8;h+=1)T[h]=1<<h;for(h=8;h<256;h+=1)T[h]=T[h-4]^T[h-5]^T[h-6]^T[h-8];for(h=0;h<255;h+=1)u[T[h]]=h;return{glog:function(E){if(E<1)throw"glog("+E+")";return u[E]},gexp:function(E){for(;E<0;)E+=255;for(;E>=256;)E-=255;return T[E]}}}();function D(T,u){if(T.length===void 0)throw T.length+"/"+u;var h=function(){for(var S=0;S<T.length&&T[S]==0;)S+=1;for(var C=new Array(T.length-S+u),I=0;I<T.length-S;I+=1)C[I]=T[I+S];return C}(),E={getAt:function(S){return h[S]},getLength:function(){return h.length},multiply:function(S){for(var C=new Array(E.getLength()+S.getLength()-1),I=0;I<E.getLength();I+=1)for(var x=0;x<S.getLength();x+=1)C[I+x]^=$.gexp($.glog(E.getAt(I))+$.glog(S.getAt(x)));return D(C,0)},mod:function(S){if(E.getLength()-S.getLength()<0)return E;for(var C=$.glog(E.getAt(0))-$.glog(S.getAt(0)),I=new Array(E.getLength()),x=0;x<E.getLength();x+=1)I[x]=E.getAt(x);for(x=0;x<S.getLength();x+=1)I[x]^=$.gexp($.glog(S.getAt(x))+C);return D(I,0).mod(S)}};return E}var M=function(){var T=[[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]],u=function(E,S){var C={};return C.totalCount=E,C.dataCount=S,C},h={getRSBlocks:function(E,S){var C=function(X,ne){switch(ne){case R.L:return T[4*(X-1)+0];case R.M:return T[4*(X-1)+1];case R.Q:return T[4*(X-1)+2];case R.H:return T[4*(X-1)+3];default:return}}(E,S);if(C===void 0)throw"bad rs block @ typeNumber:"+E+"/errorCorrectionLevel:"+S;for(var I=C.length/3,x=[],_=0;_<I;_+=1)for(var y=C[3*_+0],k=C[3*_+1],re=C[3*_+2],N=0;N<y;N+=1)x.push(u(k,re));return x}};return h}(),F=function(){var T=[],u=0,h={getBuffer:function(){return T},getAt:function(E){var S=Math.floor(E/8);return(T[S]>>>7-E%8&1)==1},put:function(E,S){for(var C=0;C<S;C+=1)h.putBit((E>>>S-C-1&1)==1)},getLengthInBits:function(){return u},putBit:function(E){var S=Math.floor(u/8);T.length<=S&&T.push(0),E&&(T[S]|=128>>>u%8),u+=1}};return h},U=function(T){var u=T,h={getMode:function(){return 1},getLength:function(C){return u.length},write:function(C){for(var I=u,x=0;x+2<I.length;)C.put(E(I.substring(x,x+3)),10),x+=3;x<I.length&&(I.length-x==1?C.put(E(I.substring(x,x+1)),4):I.length-x==2&&C.put(E(I.substring(x,x+2)),7))}},E=function(C){for(var I=0,x=0;x<C.length;x+=1)I=10*I+S(C.charAt(x));return I},S=function(C){if("0"<=C&&C<="9")return C.charCodeAt(0)-48;throw"illegal char :"+C};return h},V=function(T){var u=T,h={getMode:function(){return 2},getLength:function(S){return u.length},write:function(S){for(var C=u,I=0;I+1<C.length;)S.put(45*E(C.charAt(I))+E(C.charAt(I+1)),11),I+=2;I<C.length&&S.put(E(C.charAt(I)),6)}},E=function(S){if("0"<=S&&S<="9")return S.charCodeAt(0)-48;if("A"<=S&&S<="Z")return S.charCodeAt(0)-65+10;switch(S){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 :"+S}};return h},Z=function(T){var u=c.stringToBytes(T);return{getMode:function(){return 4},getLength:function(h){return u.length},write:function(h){for(var E=0;E<u.length;E+=1)h.put(u[E],8)}}},ie=function(T){var u=c.stringToBytesFuncs.SJIS;if(!u)throw"sjis not supported.";(function(S,C){var I=u("友");if(I.length!=2||(I[0]<<8|I[1])!=38726)throw"sjis not supported."})();var h=u(T),E={getMode:function(){return 8},getLength:function(S){return~~(h.length/2)},write:function(S){for(var C=h,I=0;I+1<C.length;){var x=(255&C[I])<<8|255&C[I+1];if(33088<=x&&x<=40956)x-=33088;else{if(!(57408<=x&&x<=60351))throw"illegal char at "+(I+1)+"/"+x;x-=49472}x=192*(x>>>8&255)+(255&x),S.put(x,13),I+=2}if(I<C.length)throw"illegal char at "+(I+1)}};return E},fe=function(){var T=[],u={writeByte:function(h){T.push(255&h)},writeShort:function(h){u.writeByte(h),u.writeByte(h>>>8)},writeBytes:function(h,E,S){E=E||0,S=S||h.length;for(var C=0;C<S;C+=1)u.writeByte(h[C+E])},writeString:function(h){for(var E=0;E<h.length;E+=1)u.writeByte(h.charCodeAt(E))},toByteArray:function(){return T},toString:function(){var h="";h+="[";for(var E=0;E<T.length;E+=1)E>0&&(h+=","),h+=T[E];return h+"]"}};return u},Q=function(T){var u=T,h=0,E=0,S=0,C={read:function(){for(;S<8;){if(h>=u.length){if(S==0)return-1;throw"unexpected end of file./"+S}var x=u.charAt(h);if(h+=1,x=="=")return S=0,-1;x.match(/^\s$/)||(E=E<<6|I(x.charCodeAt(0)),S+=6)}var _=E>>>S-8&255;return S-=8,_}},I=function(x){if(65<=x&&x<=90)return x-65;if(97<=x&&x<=122)return x-97+26;if(48<=x&&x<=57)return x-48+52;if(x==43)return 62;if(x==47)return 63;throw"c:"+x};return C},L=function(T,u,h){for(var E=function(k,re){var N=k,X=re,ne=new Array(k*re),le={setPixel:function(j,P,K){ne[P*N+j]=K},write:function(j){j.writeString("GIF87a"),j.writeShort(N),j.writeShort(X),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(X),j.writeByte(0);var P=me(2);j.writeByte(2);for(var K=0;P.length-K>255;)j.writeByte(255),j.writeBytes(P,K,255),K+=255;j.writeByte(P.length-K),j.writeBytes(P,K,P.length-K),j.writeByte(0),j.writeString(";")}},me=function(j){for(var P=1<<j,K=1+(1<<j),z=j+1,te=we(),ye=0;ye<P;ye+=1)te.add(String.fromCharCode(ye));te.add(String.fromCharCode(P)),te.add(String.fromCharCode(K));var pe,ae,he,Se=fe(),be=(pe=Se,ae=0,he=0,{write:function(He,xe){if(He>>>xe)throw"length over";for(;ae+xe>=8;)pe.writeByte(255&(He<<ae|he)),xe-=8-ae,He>>>=8-ae,he=0,ae=0;he|=He<<ae,ae+=xe},flush:function(){ae>0&&pe.writeByte(he)}});be.write(P,z);var Ne=0,Ve=String.fromCharCode(ne[Ne]);for(Ne+=1;Ne<ne.length;){var Me=String.fromCharCode(ne[Ne]);Ne+=1,te.contains(Ve+Me)?Ve+=Me:(be.write(te.indexOf(Ve),z),te.size()<4095&&(te.size()==1<<z&&(z+=1),te.add(Ve+Me)),Ve=Me)}return be.write(te.indexOf(Ve),z),be.write(K,z),be.flush(),Se.toByteArray()},we=function(){var j={},P=0,K={add:function(z){if(K.contains(z))throw"dup key:"+z;j[z]=P,P+=1},size:function(){return P},indexOf:function(z){return j[z]},contains:function(z){return j[z]!==void 0}};return K};return le}(T,u),S=0;S<u;S+=1)for(var C=0;C<T;C+=1)E.setPixel(C,S,h(C,S));var I=fe();E.write(I);for(var x=function(){var k=0,re=0,N=0,X="",ne={},le=function(we){X+=String.fromCharCode(me(63&we))},me=function(we){if(!(we<0)){if(we<26)return 65+we;if(we<52)return we-26+97;if(we<62)return we-52+48;if(we==62)return 43;if(we==63)return 47}throw"n:"+we};return ne.writeByte=function(we){for(k=k<<8|255&we,re+=8,N+=1;re>=6;)le(k>>>re-6),re-=6},ne.flush=function(){if(re>0&&(le(k<<6-re),k=0,re=0),N%3!=0)for(var we=3-N%3,j=0;j<we;j+=1)X+="="},ne.toString=function(){return X},ne}(),_=I.toByteArray(),y=0;y<_.length;y+=1)x.writeByte(_[y]);return x.flush(),"data:image/gif;base64,"+x};return c}();f.stringToBytesFuncs["UTF-8"]=function(c){return function(d){for(var p=[],g=0;g<d.length;g++){var v=d.charCodeAt(g);v<128?p.push(v):v<2048?p.push(192|v>>6,128|63&v):v<55296||v>=57344?p.push(224|v>>12,128|v>>6&63,128|63&v):(g++,v=65536+((1023&v)<<10|1023&d.charCodeAt(g)),p.push(240|v>>18,128|v>>12&63,128|v>>6&63,128|63&v))}return p}(c)},(l=typeof(s=function(){return f})=="function"?s.apply(o,[]):s)===void 0||(a.exports=l)},676:(a,o,s)=>{s.d(o,{default:()=>we});const l="Numeric",f="Alphanumeric",c="Byte";var d=function(){return d=Object.assign||function(j){for(var P,K=1,z=arguments.length;K<z;K++)for(var te in P=arguments[K])Object.prototype.hasOwnProperty.call(P,te)&&(j[te]=P[te]);return j},d.apply(this,arguments)},p=function(){for(var j=0,P=0,K=arguments.length;P<K;P++)j+=arguments[P].length;var z=Array(j),te=0;for(P=0;P<K;P++)for(var ye=arguments[P],pe=0,ae=ye.length;pe<ae;pe++,te++)z[te]=ye[pe];return z},g=function(j){return!!j&&typeof j=="object"&&!Array.isArray(j)};function v(j){for(var P=[],K=1;K<arguments.length;K++)P[K-1]=arguments[K];if(!P.length)return j;var z=P.shift();return z!==void 0&&g(j)&&g(z)?(j=d({},j),Object.keys(z).forEach(function(te){var ye=j[te],pe=z[te];Array.isArray(ye)&&Array.isArray(pe)?j[te]=pe:g(ye)&&g(pe)?j[te]=v(Object.assign({},ye),pe):j[te]=pe}),v.apply(void 0,p([j],P))):j}function b(j,P){var K=document.createElement("a");K.download=P,K.href=j,document.body.appendChild(K),K.click(),document.body.removeChild(K)}var R=function(j,P,K,z){return new(K||(K=Promise))(function(te,ye){function pe(Se){try{he(z.next(Se))}catch(be){ye(be)}}function ae(Se){try{he(z.throw(Se))}catch(be){ye(be)}}function he(Se){var be;Se.done?te(Se.value):(be=Se.value,be instanceof K?be:new K(function(Ne){Ne(be)})).then(pe,ae)}he((z=z.apply(j,P||[])).next())})},A=function(j,P){var K,z,te,ye,pe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ye={next:ae(0),throw:ae(1),return:ae(2)},typeof Symbol=="function"&&(ye[Symbol.iterator]=function(){return this}),ye;function ae(he){return function(Se){return function(be){if(K)throw new TypeError("Generator is already executing.");for(;pe;)try{if(K=1,z&&(te=2&be[0]?z.return:be[0]?z.throw||((te=z.return)&&te.call(z),0):z.next)&&!(te=te.call(z,be[1])).done)return te;switch(z=0,te&&(be=[2&be[0],te.value]),be[0]){case 0:case 1:te=be;break;case 4:return pe.label++,{value:be[1],done:!1};case 5:pe.label++,z=be[1],be=[0];continue;case 7:be=pe.ops.pop(),pe.trys.pop();continue;default:if(!((te=(te=pe.trys).length>0&&te[te.length-1])||be[0]!==6&&be[0]!==2)){pe=0;continue}if(be[0]===3&&(!te||be[1]>te[0]&&be[1]<te[3])){pe.label=be[1];break}if(be[0]===6&&pe.label<te[1]){pe.label=te[1],te=be;break}if(te&&pe.label<te[2]){pe.label=te[2],pe.ops.push(be);break}te[2]&&pe.ops.pop(),pe.trys.pop();continue}be=P.call(j,pe)}catch(Ne){be=[6,Ne],z=0}finally{K=te=0}if(5&be[0])throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}([he,Se])}}};function $(j){return R(this,void 0,void 0,function(){return A(this,function(P){return[2,new Promise(function(K){var z=new XMLHttpRequest;z.onload=function(){var te=new FileReader;te.onloadend=function(){K(te.result)},te.readAsDataURL(z.response)},z.open("GET",j),z.responseType="blob",z.send()})]})})}const D={L:.07,M:.15,Q:.25,H:.3};var M=function(){return M=Object.assign||function(j){for(var P,K=1,z=arguments.length;K<z;K++)for(var te in P=arguments[K])Object.prototype.hasOwnProperty.call(P,te)&&(j[te]=P[te]);return j},M.apply(this,arguments)},F=function(){function j(P){var K=P.svg,z=P.type;this._svg=K,this._type=z}return j.prototype.draw=function(P,K,z,te){var ye;switch(this._type){case"dots":ye=this._drawDot;break;case"classy":ye=this._drawClassy;break;case"classy-rounded":ye=this._drawClassyRounded;break;case"rounded":ye=this._drawRounded;break;case"extra-rounded":ye=this._drawExtraRounded;break;default:ye=this._drawSquare}ye.call(this,{x:P,y:K,size:z,getNeighbor:te})},j.prototype._rotateFigure=function(P){var K,z=P.x,te=P.y,ye=P.size,pe=P.rotation,ae=pe===void 0?0:pe,he=z+ye/2,Se=te+ye/2;(0,P.draw)(),(K=this._element)===null||K===void 0||K.setAttribute("transform","rotate("+180*ae/Math.PI+","+he+","+Se+")")},j.prototype._basicDot=function(P){var K=this,z=P.size,te=P.x,ye=P.y;this._rotateFigure(M(M({},P),{draw:function(){K._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),K._element.setAttribute("cx",String(te+z/2)),K._element.setAttribute("cy",String(ye+z/2)),K._element.setAttribute("r",String(z/2))}}))},j.prototype._basicSquare=function(P){var K=this,z=P.size,te=P.x,ye=P.y;this._rotateFigure(M(M({},P),{draw:function(){K._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),K._element.setAttribute("x",String(te)),K._element.setAttribute("y",String(ye)),K._element.setAttribute("width",String(z)),K._element.setAttribute("height",String(z))}}))},j.prototype._basicSideRounded=function(P){var K=this,z=P.size,te=P.x,ye=P.y;this._rotateFigure(M(M({},P),{draw:function(){K._element=document.createElementNS("http://www.w3.org/2000/svg","path"),K._element.setAttribute("d","M "+te+" "+ye+"v "+z+"h "+z/2+"a "+z/2+" "+z/2+", 0, 0, 0, 0 "+-z)}}))},j.prototype._basicCornerRounded=function(P){var K=this,z=P.size,te=P.x,ye=P.y;this._rotateFigure(M(M({},P),{draw:function(){K._element=document.createElementNS("http://www.w3.org/2000/svg","path"),K._element.setAttribute("d","M "+te+" "+ye+"v "+z+"h "+z+"v "+-z/2+"a "+z/2+" "+z/2+", 0, 0, 0, "+-z/2+" "+-z/2)}}))},j.prototype._basicCornerExtraRounded=function(P){var K=this,z=P.size,te=P.x,ye=P.y;this._rotateFigure(M(M({},P),{draw:function(){K._element=document.createElementNS("http://www.w3.org/2000/svg","path"),K._element.setAttribute("d","M "+te+" "+ye+"v "+z+"h "+z+"a "+z+" "+z+", 0, 0, 0, "+-z+" "+-z)}}))},j.prototype._basicCornersRounded=function(P){var K=this,z=P.size,te=P.x,ye=P.y;this._rotateFigure(M(M({},P),{draw:function(){K._element=document.createElementNS("http://www.w3.org/2000/svg","path"),K._element.setAttribute("d","M "+te+" "+ye+"v "+z/2+"a "+z/2+" "+z/2+", 0, 0, 0, "+z/2+" "+z/2+"h "+z/2+"v "+-z/2+"a "+z/2+" "+z/2+", 0, 0, 0, "+-z/2+" "+-z/2)}}))},j.prototype._drawDot=function(P){var K=P.x,z=P.y,te=P.size;this._basicDot({x:K,y:z,size:te,rotation:0})},j.prototype._drawSquare=function(P){var K=P.x,z=P.y,te=P.size;this._basicSquare({x:K,y:z,size:te,rotation:0})},j.prototype._drawRounded=function(P){var K=P.x,z=P.y,te=P.size,ye=P.getNeighbor,pe=ye?+ye(-1,0):0,ae=ye?+ye(1,0):0,he=ye?+ye(0,-1):0,Se=ye?+ye(0,1):0,be=pe+ae+he+Se;if(be!==0)if(be>2||pe&&ae||he&&Se)this._basicSquare({x:K,y:z,size:te,rotation:0});else{if(be===2){var Ne=0;return pe&&he?Ne=Math.PI/2:he&&ae?Ne=Math.PI:ae&&Se&&(Ne=-Math.PI/2),void this._basicCornerRounded({x:K,y:z,size:te,rotation:Ne})}if(be===1)return Ne=0,he?Ne=Math.PI/2:ae?Ne=Math.PI:Se&&(Ne=-Math.PI/2),void this._basicSideRounded({x:K,y:z,size:te,rotation:Ne})}else this._basicDot({x:K,y:z,size:te,rotation:0})},j.prototype._drawExtraRounded=function(P){var K=P.x,z=P.y,te=P.size,ye=P.getNeighbor,pe=ye?+ye(-1,0):0,ae=ye?+ye(1,0):0,he=ye?+ye(0,-1):0,Se=ye?+ye(0,1):0,be=pe+ae+he+Se;if(be!==0)if(be>2||pe&&ae||he&&Se)this._basicSquare({x:K,y:z,size:te,rotation:0});else{if(be===2){var Ne=0;return pe&&he?Ne=Math.PI/2:he&&ae?Ne=Math.PI:ae&&Se&&(Ne=-Math.PI/2),void this._basicCornerExtraRounded({x:K,y:z,size:te,rotation:Ne})}if(be===1)return Ne=0,he?Ne=Math.PI/2:ae?Ne=Math.PI:Se&&(Ne=-Math.PI/2),void this._basicSideRounded({x:K,y:z,size:te,rotation:Ne})}else this._basicDot({x:K,y:z,size:te,rotation:0})},j.prototype._drawClassy=function(P){var K=P.x,z=P.y,te=P.size,ye=P.getNeighbor,pe=ye?+ye(-1,0):0,ae=ye?+ye(1,0):0,he=ye?+ye(0,-1):0,Se=ye?+ye(0,1):0;pe+ae+he+Se!==0?pe||he?ae||Se?this._basicSquare({x:K,y:z,size:te,rotation:0}):this._basicCornerRounded({x:K,y:z,size:te,rotation:Math.PI/2}):this._basicCornerRounded({x:K,y:z,size:te,rotation:-Math.PI/2}):this._basicCornersRounded({x:K,y:z,size:te,rotation:Math.PI/2})},j.prototype._drawClassyRounded=function(P){var K=P.x,z=P.y,te=P.size,ye=P.getNeighbor,pe=ye?+ye(-1,0):0,ae=ye?+ye(1,0):0,he=ye?+ye(0,-1):0,Se=ye?+ye(0,1):0;pe+ae+he+Se!==0?pe||he?ae||Se?this._basicSquare({x:K,y:z,size:te,rotation:0}):this._basicCornerExtraRounded({x:K,y:z,size:te,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:K,y:z,size:te,rotation:-Math.PI/2}):this._basicCornersRounded({x:K,y:z,size:te,rotation:Math.PI/2})},j}();const U=F;var V=function(){return V=Object.assign||function(j){for(var P,K=1,z=arguments.length;K<z;K++)for(var te in P=arguments[K])Object.prototype.hasOwnProperty.call(P,te)&&(j[te]=P[te]);return j},V.apply(this,arguments)},Z=function(){function j(P){var K=P.svg,z=P.type;this._svg=K,this._type=z}return j.prototype.draw=function(P,K,z,te){var ye;switch(this._type){case"square":ye=this._drawSquare;break;case"extra-rounded":ye=this._drawExtraRounded;break;default:ye=this._drawDot}ye.call(this,{x:P,y:K,size:z,rotation:te})},j.prototype._rotateFigure=function(P){var K,z=P.x,te=P.y,ye=P.size,pe=P.rotation,ae=pe===void 0?0:pe,he=z+ye/2,Se=te+ye/2;(0,P.draw)(),(K=this._element)===null||K===void 0||K.setAttribute("transform","rotate("+180*ae/Math.PI+","+he+","+Se+")")},j.prototype._basicDot=function(P){var K=this,z=P.size,te=P.x,ye=P.y,pe=z/7;this._rotateFigure(V(V({},P),{draw:function(){K._element=document.createElementNS("http://www.w3.org/2000/svg","path"),K._element.setAttribute("clip-rule","evenodd"),K._element.setAttribute("d","M "+(te+z/2)+" "+ye+"a "+z/2+" "+z/2+" 0 1 0 0.1 0zm 0 "+pe+"a "+(z/2-pe)+" "+(z/2-pe)+" 0 1 1 -0.1 0Z")}}))},j.prototype._basicSquare=function(P){var K=this,z=P.size,te=P.x,ye=P.y,pe=z/7;this._rotateFigure(V(V({},P),{draw:function(){K._element=document.createElementNS("http://www.w3.org/2000/svg","path"),K._element.setAttribute("clip-rule","evenodd"),K._element.setAttribute("d","M "+te+" "+ye+"v "+z+"h "+z+"v "+-z+"zM "+(te+pe)+" "+(ye+pe)+"h "+(z-2*pe)+"v "+(z-2*pe)+"h "+(2*pe-z)+"z")}}))},j.prototype._basicExtraRounded=function(P){var K=this,z=P.size,te=P.x,ye=P.y,pe=z/7;this._rotateFigure(V(V({},P),{draw:function(){K._element=document.createElementNS("http://www.w3.org/2000/svg","path"),K._element.setAttribute("clip-rule","evenodd"),K._element.setAttribute("d","M "+te+" "+(ye+2.5*pe)+"v "+2*pe+"a "+2.5*pe+" "+2.5*pe+", 0, 0, 0, "+2.5*pe+" "+2.5*pe+"h "+2*pe+"a "+2.5*pe+" "+2.5*pe+", 0, 0, 0, "+2.5*pe+" "+2.5*-pe+"v "+-2*pe+"a "+2.5*pe+" "+2.5*pe+", 0, 0, 0, "+2.5*-pe+" "+2.5*-pe+"h "+-2*pe+"a "+2.5*pe+" "+2.5*pe+", 0, 0, 0, "+2.5*-pe+" "+2.5*pe+"M "+(te+2.5*pe)+" "+(ye+pe)+"h "+2*pe+"a "+1.5*pe+" "+1.5*pe+", 0, 0, 1, "+1.5*pe+" "+1.5*pe+"v "+2*pe+"a "+1.5*pe+" "+1.5*pe+", 0, 0, 1, "+1.5*-pe+" "+1.5*pe+"h "+-2*pe+"a "+1.5*pe+" "+1.5*pe+", 0, 0, 1, "+1.5*-pe+" "+1.5*-pe+"v "+-2*pe+"a "+1.5*pe+" "+1.5*pe+", 0, 0, 1, "+1.5*pe+" "+1.5*-pe)}}))},j.prototype._drawDot=function(P){var K=P.x,z=P.y,te=P.size,ye=P.rotation;this._basicDot({x:K,y:z,size:te,rotation:ye})},j.prototype._drawSquare=function(P){var K=P.x,z=P.y,te=P.size,ye=P.rotation;this._basicSquare({x:K,y:z,size:te,rotation:ye})},j.prototype._drawExtraRounded=function(P){var K=P.x,z=P.y,te=P.size,ye=P.rotation;this._basicExtraRounded({x:K,y:z,size:te,rotation:ye})},j}();const ie=Z;var fe=function(){return fe=Object.assign||function(j){for(var P,K=1,z=arguments.length;K<z;K++)for(var te in P=arguments[K])Object.prototype.hasOwnProperty.call(P,te)&&(j[te]=P[te]);return j},fe.apply(this,arguments)},Q=function(){function j(P){var K=P.svg,z=P.type;this._svg=K,this._type=z}return j.prototype.draw=function(P,K,z,te){(this._type==="square"?this._drawSquare:this._drawDot).call(this,{x:P,y:K,size:z,rotation:te})},j.prototype._rotateFigure=function(P){var K,z=P.x,te=P.y,ye=P.size,pe=P.rotation,ae=pe===void 0?0:pe,he=z+ye/2,Se=te+ye/2;(0,P.draw)(),(K=this._element)===null||K===void 0||K.setAttribute("transform","rotate("+180*ae/Math.PI+","+he+","+Se+")")},j.prototype._basicDot=function(P){var K=this,z=P.size,te=P.x,ye=P.y;this._rotateFigure(fe(fe({},P),{draw:function(){K._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),K._element.setAttribute("cx",String(te+z/2)),K._element.setAttribute("cy",String(ye+z/2)),K._element.setAttribute("r",String(z/2))}}))},j.prototype._basicSquare=function(P){var K=this,z=P.size,te=P.x,ye=P.y;this._rotateFigure(fe(fe({},P),{draw:function(){K._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),K._element.setAttribute("x",String(te)),K._element.setAttribute("y",String(ye)),K._element.setAttribute("width",String(z)),K._element.setAttribute("height",String(z))}}))},j.prototype._drawDot=function(P){var K=P.x,z=P.y,te=P.size,ye=P.rotation;this._basicDot({x:K,y:z,size:te,rotation:ye})},j.prototype._drawSquare=function(P){var K=P.x,z=P.y,te=P.size,ye=P.rotation;this._basicSquare({x:K,y:z,size:te,rotation:ye})},j}();const L=Q,T="circle";var u=function(j,P,K,z){return new(K||(K=Promise))(function(te,ye){function pe(Se){try{he(z.next(Se))}catch(be){ye(be)}}function ae(Se){try{he(z.throw(Se))}catch(be){ye(be)}}function he(Se){var be;Se.done?te(Se.value):(be=Se.value,be instanceof K?be:new K(function(Ne){Ne(be)})).then(pe,ae)}he((z=z.apply(j,P||[])).next())})},h=function(j,P){var K,z,te,ye,pe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ye={next:ae(0),throw:ae(1),return:ae(2)},typeof Symbol=="function"&&(ye[Symbol.iterator]=function(){return this}),ye;function ae(he){return function(Se){return function(be){if(K)throw new TypeError("Generator is already executing.");for(;pe;)try{if(K=1,z&&(te=2&be[0]?z.return:be[0]?z.throw||((te=z.return)&&te.call(z),0):z.next)&&!(te=te.call(z,be[1])).done)return te;switch(z=0,te&&(be=[2&be[0],te.value]),be[0]){case 0:case 1:te=be;break;case 4:return pe.label++,{value:be[1],done:!1};case 5:pe.label++,z=be[1],be=[0];continue;case 7:be=pe.ops.pop(),pe.trys.pop();continue;default:if(!((te=(te=pe.trys).length>0&&te[te.length-1])||be[0]!==6&&be[0]!==2)){pe=0;continue}if(be[0]===3&&(!te||be[1]>te[0]&&be[1]<te[3])){pe.label=be[1];break}if(be[0]===6&&pe.label<te[1]){pe.label=te[1],te=be;break}if(te&&pe.label<te[2]){pe.label=te[2],pe.ops.push(be);break}te[2]&&pe.ops.pop(),pe.trys.pop();continue}be=P.call(j,pe)}catch(Ne){be=[6,Ne],z=0}finally{K=te=0}if(5&be[0])throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}([he,Se])}}},E=[[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]],S=[[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 C=function(){function j(P){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(P.width)),this._element.setAttribute("height",String(P.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._instanceId=j.instanceCount++,this._options=P}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(P){return u(this,void 0,void 0,function(){var K,z,te,ye,pe,ae,he,Se,be,Ne,Ve=this;return h(this,function(Me){switch(Me.label){case 0:return K=P.getModuleCount(),z=Math.min(this._options.width,this._options.height)-2*this._options.margin,te=this._options.shape===T?z/Math.sqrt(2):z,ye=te/K,pe={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=P,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Me.sent(),!this._image)return[2];ae=this._options,he=ae.imageOptions,Se=ae.qrOptions,be=he.imageSize*D[Se.errorCorrectionLevel],Ne=Math.floor(be*K*K),pe=function(He){var xe=He.originalHeight,ke=He.originalWidth,Je=He.maxHiddenDots,De=He.maxHiddenAxisDots,G=He.dotSize,B={x:0,y:0},H={x:0,y:0};if(xe<=0||ke<=0||Je<=0||G<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var se=xe/ke;return B.x=Math.floor(Math.sqrt(Je/se)),B.x<=0&&(B.x=1),De&&De<B.x&&(B.x=De),B.x%2==0&&B.x--,H.x=B.x*G,B.y=1+2*Math.ceil((B.x*se-1)/2),H.y=Math.round(H.x*se),(B.y*B.x>Je||De&&De<B.y)&&(De&&De<B.y?(B.y=De,B.y%2==0&&B.x--):B.y-=2,H.y=B.y*G,B.x=1+2*Math.ceil((B.y/se-1)/2),H.x=Math.round(H.y/se)),{height:H.y,width:H.x,hideYDots:B.y,hideXDots:B.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:Ne,maxHiddenAxisDots:K-14,dotSize:ye}),Me.label=2;case 2:return this.drawBackground(),this.drawDots(function(He,xe){var ke,Je,De,G,B,H;return!(Ve._options.imageOptions.hideBackgroundDots&&He>=(K-pe.hideXDots)/2&&He<(K+pe.hideXDots)/2&&xe>=(K-pe.hideYDots)/2&&xe<(K+pe.hideYDots)/2||!((ke=E[He])===null||ke===void 0)&&ke[xe]||!((Je=E[He-K+7])===null||Je===void 0)&&Je[xe]||!((De=E[He])===null||De===void 0)&&De[xe-K+7]||!((G=S[He])===null||G===void 0)&&G[xe]||!((B=S[He-K+7])===null||B===void 0)&&B[xe]||!((H=S[He])===null||H===void 0)&&H[xe-K+7])}),this.drawCorners(),this._options.image?[4,this.drawImage({width:pe.width,height:pe.height,count:K,dotSize:ye})]:[3,4];case 3:Me.sent(),Me.label=4;case 4:return[2]}})})},j.prototype.drawBackground=function(){var P,K,z,te=this._element,ye=this._options;if(te){var pe=(P=ye.backgroundOptions)===null||P===void 0?void 0:P.gradient,ae=(K=ye.backgroundOptions)===null||K===void 0?void 0:K.color;if((pe||ae)&&this._createColor({options:pe,color:ae,additionalRotation:0,x:0,y:0,height:ye.height,width:ye.width,name:"background-color"}),(z=ye.backgroundOptions)===null||z===void 0?void 0:z.round){var he=Math.min(ye.width,ye.height),Se=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),Se.setAttribute("x",String((ye.width-he)/2)),Se.setAttribute("y",String((ye.height-he)/2)),Se.setAttribute("width",String(he)),Se.setAttribute("height",String(he)),Se.setAttribute("rx",String(he/2*ye.backgroundOptions.round)),this._backgroundClipPath.appendChild(Se)}}},j.prototype.drawDots=function(P){var K,z,te=this;if(!this._qr)throw"QR code is not defined";var ye=this._options,pe=this._qr.getModuleCount();if(pe>ye.width||pe>ye.height)throw"The canvas is too small.";var ae=Math.min(ye.width,ye.height)-2*ye.margin,he=(ye.shape===T?ae/Math.sqrt(2):ae)/pe,Se=(ye.width-pe*he)/2,be=(ye.height-pe*he)/2,Ne=new U({svg:this._element,type:ye.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:(K=ye.dotsOptions)===null||K===void 0?void 0:K.gradient,color:ye.dotsOptions.color,additionalRotation:0,x:0,y:0,height:ye.height,width:ye.width,name:"dot-color-"+this._instanceId});for(var Ve=function(Ae){for(var _e=function(Be){return P&&!P(Ae,Be)?"continue":!((z=Me._qr)===null||z===void 0)&&z.isDark(Ae,Be)?(Ne.draw(Se+Ae*he,be+Be*he,he,function(je,ft){return!(Ae+je<0||Be+ft<0||Ae+je>=pe||Be+ft>=pe)&&!(P&&!P(Ae+je,Be+ft))&&!!te._qr&&te._qr.isDark(Ae+je,Be+ft)}),void(Ne._element&&Me._dotsClipPath&&Me._dotsClipPath.appendChild(Ne._element))):"continue"},We=0;We<pe;We++)_e(We)},Me=this,He=0;He<pe;He++)Ve(He);if(ye.shape===T){var xe=Math.floor((ae/he-pe)/2),ke=pe+2*xe,Je=Se-xe*he,De=be-xe*he,G=[],B=Math.floor(ke/2);for(He=0;He<ke;He++){G[He]=[];for(var H=0;H<ke;H++)He>=xe-1&&He<=ke-xe&&H>=xe-1&&H<=ke-xe||Math.sqrt((He-B)*(He-B)+(H-B)*(H-B))>B?G[He][H]=0:G[He][H]=this._qr.isDark(H-2*xe<0?H:H>=pe?H-2*xe:H-xe,He-2*xe<0?He:He>=pe?He-2*xe:He-xe)?1:0}var se=function(Ae){for(var _e=function(Be){if(!G[Ae][Be])return"continue";Ne.draw(Je+Ae*he,De+Be*he,he,function(je,ft){var Ze;return!!(!((Ze=G[Ae+je])===null||Ze===void 0)&&Ze[Be+ft])}),Ne._element&&Te._dotsClipPath&&Te._dotsClipPath.appendChild(Ne._element)},We=0;We<ke;We++)_e(We)},Te=this;for(He=0;He<ke;He++)se(He)}},j.prototype.drawCorners=function(){var P=this;if(!this._qr)throw"QR code is not defined";var K=this._element,z=this._options;if(!K)throw"Element code is not defined";var te=this._qr.getModuleCount(),ye=Math.min(z.width,z.height)-2*z.margin,pe=(z.shape===T?ye/Math.sqrt(2):ye)/te,ae=7*pe,he=3*pe,Se=(z.width-te*pe)/2,be=(z.height-te*pe)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(Ne){var Ve,Me,He,xe,ke,Je,De,G,B,H,se,Te,Ae=Ne[0],_e=Ne[1],We=Ne[2],Be=Se+Ae*pe*(te-7),je=be+_e*pe*(te-7),ft=P._dotsClipPath,Ze=P._dotsClipPath;if((!((Ve=z.cornersSquareOptions)===null||Ve===void 0)&&Ve.gradient||!((Me=z.cornersSquareOptions)===null||Me===void 0)&&Me.color)&&((ft=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Ae+"-"+_e),P._defs.appendChild(ft),P._cornersSquareClipPath=P._cornersDotClipPath=Ze=ft,P._createColor({options:(He=z.cornersSquareOptions)===null||He===void 0?void 0:He.gradient,color:(xe=z.cornersSquareOptions)===null||xe===void 0?void 0:xe.color,additionalRotation:We,x:Be,y:je,height:ae,width:ae,name:"corners-square-color-"+Ae+"-"+_e})),(ke=z.cornersSquareOptions)===null||ke===void 0?void 0:ke.type){var rt=new ie({svg:P._element,type:z.cornersSquareOptions.type});rt.draw(Be,je,ae,We),rt._element&&ft&&ft.appendChild(rt._element)}else for(var Ot=new U({svg:P._element,type:z.dotsOptions.type}),mt=function(st){for(var Zt=function(tt){if(!(!((Je=E[st])===null||Je===void 0)&&Je[tt]))return"continue";Ot.draw(Be+st*pe,je+tt*pe,pe,function(en,ee){var oe;return!!(!((oe=E[st+en])===null||oe===void 0)&&oe[tt+ee])}),Ot._element&&ft&&ft.appendChild(Ot._element)},At=0;At<E[st].length;At++)Zt(At)},ot=0;ot<E.length;ot++)mt(ot);if((!((De=z.cornersDotOptions)===null||De===void 0)&&De.gradient||!((G=z.cornersDotOptions)===null||G===void 0)&&G.color)&&((Ze=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Ae+"-"+_e),P._defs.appendChild(Ze),P._cornersDotClipPath=Ze,P._createColor({options:(B=z.cornersDotOptions)===null||B===void 0?void 0:B.gradient,color:(H=z.cornersDotOptions)===null||H===void 0?void 0:H.color,additionalRotation:We,x:Be+2*pe,y:je+2*pe,height:he,width:he,name:"corners-dot-color-"+Ae+"-"+_e})),(se=z.cornersDotOptions)===null||se===void 0?void 0:se.type){var Kt=new L({svg:P._element,type:z.cornersDotOptions.type});Kt.draw(Be+2*pe,je+2*pe,he,We),Kt._element&&Ze&&Ze.appendChild(Kt._element)}else{Ot=new U({svg:P._element,type:z.dotsOptions.type});var wt=function(st){for(var Zt=function(tt){if(!(!((Te=S[st])===null||Te===void 0)&&Te[tt]))return"continue";Ot.draw(Be+st*pe,je+tt*pe,pe,function(en,ee){var oe;return!!(!((oe=S[st+en])===null||oe===void 0)&&oe[tt+ee])}),Ot._element&&Ze&&Ze.appendChild(Ot._element)},At=0;At<S[st].length;At++)Zt(At)};for(ot=0;ot<S.length;ot++)wt(ot)}})},j.prototype.loadImage=function(){var P=this;return new Promise(function(K,z){var te=P._options,ye=new Image;if(!te.image)return z("Image is not defined");typeof te.imageOptions.crossOrigin=="string"&&(ye.crossOrigin=te.imageOptions.crossOrigin),P._image=ye,ye.onload=function(){K()},ye.src=te.image})},j.prototype.drawImage=function(P){var K=P.width,z=P.height,te=P.count,ye=P.dotSize;return u(this,void 0,void 0,function(){var pe,ae,he,Se,be,Ne,Ve,Me,He;return h(this,function(xe){switch(xe.label){case 0:return pe=this._options,ae=(pe.width-te*ye)/2,he=(pe.height-te*ye)/2,Se=ae+pe.imageOptions.margin+(te*ye-K)/2,be=he+pe.imageOptions.margin+(te*ye-z)/2,Ne=K-2*pe.imageOptions.margin,Ve=z-2*pe.imageOptions.margin,(Me=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(Se)),Me.setAttribute("y",String(be)),Me.setAttribute("width",Ne+"px"),Me.setAttribute("height",Ve+"px"),[4,$(pe.image||"")];case 1:return He=xe.sent(),Me.setAttribute("href",He||""),this._element.appendChild(Me),[2]}})})},j.prototype._createColor=function(P){var K=P.options,z=P.color,te=P.additionalRotation,ye=P.x,pe=P.y,ae=P.height,he=P.width,Se=P.name,be=he>ae?he:ae,Ne=document.createElementNS("http://www.w3.org/2000/svg","rect");if(Ne.setAttribute("x",String(ye)),Ne.setAttribute("y",String(pe)),Ne.setAttribute("height",String(ae)),Ne.setAttribute("width",String(he)),Ne.setAttribute("clip-path","url('#clip-path-"+Se+"')"),K){var Ve;if(K.type==="radial")(Ve=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",Se),Ve.setAttribute("gradientUnits","userSpaceOnUse"),Ve.setAttribute("fx",String(ye+he/2)),Ve.setAttribute("fy",String(pe+ae/2)),Ve.setAttribute("cx",String(ye+he/2)),Ve.setAttribute("cy",String(pe+ae/2)),Ve.setAttribute("r",String(be/2));else{var Me=((K.rotation||0)+te)%(2*Math.PI),He=(Me+2*Math.PI)%(2*Math.PI),xe=ye+he/2,ke=pe+ae/2,Je=ye+he/2,De=pe+ae/2;He>=0&&He<=.25*Math.PI||He>1.75*Math.PI&&He<=2*Math.PI?(xe-=he/2,ke-=ae/2*Math.tan(Me),Je+=he/2,De+=ae/2*Math.tan(Me)):He>.25*Math.PI&&He<=.75*Math.PI?(ke-=ae/2,xe-=he/2/Math.tan(Me),De+=ae/2,Je+=he/2/Math.tan(Me)):He>.75*Math.PI&&He<=1.25*Math.PI?(xe+=he/2,ke+=ae/2*Math.tan(Me),Je-=he/2,De-=ae/2*Math.tan(Me)):He>1.25*Math.PI&&He<=1.75*Math.PI&&(ke+=ae/2,xe+=he/2/Math.tan(Me),De-=ae/2,Je-=he/2/Math.tan(Me)),(Ve=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",Se),Ve.setAttribute("gradientUnits","userSpaceOnUse"),Ve.setAttribute("x1",String(Math.round(xe))),Ve.setAttribute("y1",String(Math.round(ke))),Ve.setAttribute("x2",String(Math.round(Je))),Ve.setAttribute("y2",String(Math.round(De)))}K.colorStops.forEach(function(G){var B=G.offset,H=G.color,se=document.createElementNS("http://www.w3.org/2000/svg","stop");se.setAttribute("offset",100*B+"%"),se.setAttribute("stop-color",H),Ve.appendChild(se)}),Ne.setAttribute("fill","url('#"+Se+"')"),this._defs.appendChild(Ve)}else z&&Ne.setAttribute("fill",z);this._element.appendChild(Ne)},j.instanceCount=0,j}(),I="canvas";for(var x={},_=0;_<=40;_++)x[_]=_;const y={type:I,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:x[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 P,K=1,z=arguments.length;K<z;K++)for(var te in P=arguments[K])Object.prototype.hasOwnProperty.call(P,te)&&(j[te]=P[te]);return j},k.apply(this,arguments)};function re(j){var P=k({},j);if(!P.colorStops||!P.colorStops.length)throw"Field 'colorStops' is required in gradient";return P.rotation?P.rotation=Number(P.rotation):P.rotation=0,P.colorStops=P.colorStops.map(function(K){return k(k({},K),{offset:Number(K.offset)})}),P}function N(j){var P=k({},j);return P.width=Number(P.width),P.height=Number(P.height),P.margin=Number(P.margin),P.imageOptions=k(k({},P.imageOptions),{hideBackgroundDots:!!P.imageOptions.hideBackgroundDots,imageSize:Number(P.imageOptions.imageSize),margin:Number(P.imageOptions.margin)}),P.margin>Math.min(P.width,P.height)&&(P.margin=Math.min(P.width,P.height)),P.dotsOptions=k({},P.dotsOptions),P.dotsOptions.gradient&&(P.dotsOptions.gradient=re(P.dotsOptions.gradient)),P.cornersSquareOptions&&(P.cornersSquareOptions=k({},P.cornersSquareOptions),P.cornersSquareOptions.gradient&&(P.cornersSquareOptions.gradient=re(P.cornersSquareOptions.gradient))),P.cornersDotOptions&&(P.cornersDotOptions=k({},P.cornersDotOptions),P.cornersDotOptions.gradient&&(P.cornersDotOptions.gradient=re(P.cornersDotOptions.gradient))),P.backgroundOptions&&(P.backgroundOptions=k({},P.backgroundOptions),P.backgroundOptions.gradient&&(P.backgroundOptions.gradient=re(P.backgroundOptions.gradient))),P}var X=s(192),ne=s.n(X),le=function(j,P,K,z){return new(K||(K=Promise))(function(te,ye){function pe(Se){try{he(z.next(Se))}catch(be){ye(be)}}function ae(Se){try{he(z.throw(Se))}catch(be){ye(be)}}function he(Se){var be;Se.done?te(Se.value):(be=Se.value,be instanceof K?be:new K(function(Ne){Ne(be)})).then(pe,ae)}he((z=z.apply(j,P||[])).next())})},me=function(j,P){var K,z,te,ye,pe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ye={next:ae(0),throw:ae(1),return:ae(2)},typeof Symbol=="function"&&(ye[Symbol.iterator]=function(){return this}),ye;function ae(he){return function(Se){return function(be){if(K)throw new TypeError("Generator is already executing.");for(;pe;)try{if(K=1,z&&(te=2&be[0]?z.return:be[0]?z.throw||((te=z.return)&&te.call(z),0):z.next)&&!(te=te.call(z,be[1])).done)return te;switch(z=0,te&&(be=[2&be[0],te.value]),be[0]){case 0:case 1:te=be;break;case 4:return pe.label++,{value:be[1],done:!1};case 5:pe.label++,z=be[1],be=[0];continue;case 7:be=pe.ops.pop(),pe.trys.pop();continue;default:if(!((te=(te=pe.trys).length>0&&te[te.length-1])||be[0]!==6&&be[0]!==2)){pe=0;continue}if(be[0]===3&&(!te||be[1]>te[0]&&be[1]<te[3])){pe.label=be[1];break}if(be[0]===6&&pe.label<te[1]){pe.label=te[1],te=be;break}if(te&&pe.label<te[2]){pe.label=te[2],pe.ops.push(be);break}te[2]&&pe.ops.pop(),pe.trys.pop();continue}be=P.call(j,pe)}catch(Ne){be=[6,Ne],z=0}finally{K=te=0}if(5&be[0])throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}([he,Se])}}};const we=function(){function j(P){this._options=P?N(v(y,P)):y,this.update()}return j._clearContainer=function(P){P&&(P.innerHTML="")},j.prototype._setupSvg=function(){var P=this;if(this._qr){var K=new C(this._options);this._svg=K.getElement(),this._svgDrawingPromise=K.drawQR(this._qr).then(function(){var z;P._svg&&((z=P._extension)===null||z===void 0||z.call(P,K.getElement(),P._options))})}},j.prototype._setupCanvas=function(){var P,K=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=(P=this._svgDrawingPromise)===null||P===void 0?void 0:P.then(function(){if(K._svg){var z=K._svg,te=new XMLSerializer().serializeToString(z),ye="data:image/svg+xml;base64,"+btoa(te),pe=new Image;return new Promise(function(ae){pe.onload=function(){var he,Se;(Se=(he=K._canvas)===null||he===void 0?void 0:he.getContext("2d"))===null||Se===void 0||Se.drawImage(pe,0,0),ae()},pe.src=ye})}}))},j.prototype._getElement=function(P){return P===void 0&&(P="png"),le(this,void 0,void 0,function(){return me(this,function(K){switch(K.label){case 0:if(!this._qr)throw"QR code is empty";return P.toLowerCase()!=="svg"?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return K.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return K.sent(),[2,this._canvas]}})})},j.prototype.update=function(P){j._clearContainer(this._container),this._options=P?N(v(this._options,P)):this._options,this._options.data&&(this._qr=ne()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(K){switch(!0){case/^[0-9]*$/.test(K):return l;case/^[0-9A-Z $%*+\-./:]*$/.test(K):return f;default:return c}}(this._options.data)),this._qr.make(),this._options.type===I?this._setupCanvas():this._setupSvg(),this.append(this._container))},j.prototype.append=function(P){if(P){if(typeof P.appendChild!="function")throw"Container should be a single DOM node";this._options.type===I?this._canvas&&P.appendChild(this._canvas):this._svg&&P.appendChild(this._svg),this._container=P}},j.prototype.applyExtension=function(P){if(!P)throw"Extension function should be defined.";this._extension=P,this.update()},j.prototype.deleteExtension=function(){this._extension=void 0,this.update()},j.prototype.getRawData=function(P){return P===void 0&&(P="png"),le(this,void 0,void 0,function(){var K,z,te;return me(this,function(ye){switch(ye.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(P)];case 1:return(K=ye.sent())?P.toLowerCase()==="svg"?(z=new XMLSerializer,te=z.serializeToString(K),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
|
|
487
487
|
`+te],{type:"image/svg+xml"})]):[2,new Promise(function(pe){return K.toBlob(pe,"image/"+P,1)})]:[2,null]}})})},j.prototype.download=function(P){return le(this,void 0,void 0,function(){var K,z,te,ye,pe;return me(this,function(ae){switch(ae.label){case 0:if(!this._qr)throw"QR code is empty";return K="png",z="qr",typeof P=="string"?(K=P,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof P=="object"&&P!==null&&(P.name&&(z=P.name),P.extension&&(K=P.extension)),[4,this._getElement(K)];case 1:return(te=ae.sent())?(K.toLowerCase()==="svg"?(ye=new XMLSerializer,pe=`<?xml version="1.0" standalone="no"?>\r
|
|
488
488
|
`+(pe=ye.serializeToString(te)),b("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(pe),z+".svg")):b(te.toDataURL("image/"+K),z+"."+K),[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})})(YX);var nWe=YX.exports;const rWe=Ft(nWe),iWe={margin:0,dotsOptions:{type:"dots"},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"}};function FR({data:e,size:t,image:n,config:r,...i}){const a=W.useRef(null),o=W.useMemo(()=>({...iWe,data:e,width:t,height:t,...n&&{image:n,imageOptions:{crossOrigin:"anonymous",margin:0}},...r}),[e,t,n,r]),[s]=W.useState(new rWe(o));return W.useEffect(()=>{a.current&&s.append(a.current)},[s,a]),W.useEffect(()=>{s&&s.update(o)},[e,t,n,r]),q.jsx(yt,{ref:a,...i})}FR.propTypes={data:ge.string.isRequired,size:ge.number.isRequired,image:ge.string,config:ge.object};FR.defaultProps={image:null,config:{}};function UR({tokenState:e,locale:t,messages:n}){const{t:r,matchSmallScreen:i}=Xs(),a="DID Wallet",o=(n==null?void 0:n.scan)||r("scanWithWallet"),s=r("download"),l=r("downloadTips"),f=160,c=nn(()=>["zh","en"].includes?`https://www.didwallet.io/${t}`:"https://www.didwallet.io/en",[t]),d=nn(()=>q.jsxs(q.Fragment,{children:[l," ",q.jsx(yt,{component:"a",href:c,target:"_blank",rel:"noreferrer",sx:{color:St.foregroundsFgInteractive,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:s})]}),[c,s,l]);return q.jsxs(Zl,{sx:{display:"flex",gap:1,justifyContent:"space-between",alignItems:i?"center":"stretch",flexDirection:i?"column":"row"},children:[q.jsx(yt,{sx:{display:i?"none":"block"},children:q.jsx(Cp,{width:"24px",height:"24px"})}),q.jsxs(yt,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",flex:1,wordBreak:"break-word",width:i?186:"auto"},children:[q.jsxs(Cr,{sx:{fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:1},children:[i?q.jsx(Cp,{width:"24px",height:"24px"}):null,a]}),q.jsx(Cr,{sx:{flex:1,color:St.foregroundsFgMuted,fontSize:"12px"},children:o}),q.jsx(yt,{sx:{color:St.foregroundsFgMuted,fontSize:"12px",display:i?"none":"block"},children:d})]}),q.jsx(FR,{data:e.url,size:f,sx:{p:1.5,borderRadius:2,border:`1px solid ${St.strokeBorderBase}`,backgroundColor:"white",fontSize:0}}),q.jsx(yt,{sx:{color:St.textMuted,fontSize:"12px",display:i?"block":"none"},children:d})]})}UR.propTypes={tokenState:ge.object.isRequired,locale:ge.string,messages:ge.object};UR.defaultProps={locale:"en",messages:{}};const HR={width:24,height:24,body:'<path fill="currentColor" d="M12 22q-2.05 0-3.875-.788t-3.188-2.15q-1.362-1.362-2.15-3.187T2 12q0-2.075.788-3.888t2.15-3.174Q6.3 3.575 8.124 2.788T12 2q2.075 0 3.888.788t3.174 2.15q1.363 1.362 2.15 3.175T22 12q0 2.05-.788 3.875t-2.15 3.188q-1.362 1.362-3.175 2.15T12 22Zm0-2.05q.65-.9 1.125-1.875T13.9 16h-3.8q.3 1.1.775 2.075T12 19.95Zm-2.6-.4q-.45-.825-.788-1.713T8.05 16H5.1q.725 1.25 1.813 2.175T9.4 19.55Zm5.2 0q1.4-.45 2.488-1.375T18.9 16h-2.95q-.225.95-.562 1.838T14.6 19.55ZM4.25 14h3.4q-.075-.5-.113-.988T7.5 12q0-.525.038-1.012T7.65 10h-3.4q-.125.5-.188.988T4 12q0 .525.063 1.012T4.25 14Zm5.4 0h4.7q.075-.5.113-.988T14.5 12q0-.525-.038-1.012T14.35 10h-4.7q-.075.5-.113.988T9.5 12q0 .525.038 1.012T9.65 14Zm6.7 0h3.4q.125-.5.188-.988T20 12q0-.525-.063-1.012T19.75 10h-3.4q.075.5.113.988T16.5 12q0 .525-.038 1.012T16.35 14Zm-.4-6h2.95q-.725-1.25-1.812-2.175T14.6 4.45q.45.825.788 1.713T15.95 8ZM10.1 8h3.8q-.3-1.1-.775-2.075T12 4.05q-.65.9-1.125 1.875T10.1 8Zm-5 0h2.95q.225-.95.563-1.838T9.4 4.45Q8 4.9 6.912 5.825T5.1 8Z"/>'},ZX={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"/>'},XX={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"/>'},QX={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"/>'},jR={width:256,height:285,body:'<path d="M220.412 0h-92.415l28.562 89.006h92.416l-74.77 53.077l28.57 89.511c48.128-35.06 63.854-88.12 46.208-142.588L220.413 0ZM7.018 89.006h92.416L127.997 0H35.589L7.019 89.006c-17.655 54.468-1.92 107.529 46.207 142.588l28.563-89.51l-74.77-53.078Zm46.208 142.588l74.77 52.97l74.77-52.97l-74.77-53.847l-74.77 53.847Z"/>'};function eQ({icon:e,...t}){return q.jsx(Gl,{...t,sx:{backgroundColor:"white",border:`1px solid ${St.borderBase}`,...t==null?void 0:t.sx},children:q.jsx(Vn,{icon:e})})}eQ.propTypes={icon:ge.any.isRequired};function tQ({providerList:e,onLogin:t}){return q.jsxs(Zl,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[q.jsxs(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[q.jsx(Vn,{icon:HR,fontSize:"1.3rem"}),q.jsx(Cr,{sx:{fontSize:"16px",fontWeight:"bold"},children:"Others"})]}),q.jsx(yt,{sx:{display:"flex",gap:2},children:e.map(r=>{const i={auth0:jR,apple:ZX,github:XX,google:QX};return q.jsx(eQ,{icon:i[r.provider],onClick:()=>t(r)},r.provider)})})]})}tQ.propTypes={onLogin:ge.func.isRequired,providerList:ge.array.isRequired};const aWe={width:24,height:24,body:'<path fill="currentColor" d="M4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.588 1.413T20 20H4ZM20 8l-7.475 4.675q-.125.075-.263.113t-.262.037q-.125 0-.263-.037t-.262-.113L4 8v10h16V8Zm-8 3l8-5H4l8 5ZM4 8v.25v-1.475v.025V6v.8v-.012V8.25V8v10V8Z"/>'};function nQ({title:e,icon:t,...n}){return q.jsxs(Zl,{...n,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:St.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(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[q.jsx(Vn,{icon:t,fontSize:"1.5rem",style:{transform:"scale(0.95)"}}),q.jsx(Cr,{sx:{fontSize:"16px",fontWeight:"bold"},children:e})]}),q.jsx(Vn,{className:"other-item-icon",icon:qE,fontSize:"1.3rem",color:St.primaryBase})]})}nQ.propTypes={title:ge.string.isRequired,icon:ge.string.isRequired};function rQ({providerList:e,onLogin:t}){const{t:n}=Xs(),r={email:aWe,auth0:jR,apple:ZX,github:XX,google:QX},i={email:"Email",auth0:"Auth0",apple:"Apple",github:"Github",google:"Google"};return q.jsx(yt,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:e.map(a=>{if(a.provider==="auth0"&&e.length===1){const o=n("otherAccount");return q.jsxs(Zl,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:St.surfacePrimarySubtitle}},onClick:()=>{t(a)},children:[q.jsxs(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[q.jsx(Vn,{icon:HR,fontSize:"1.3rem"}),q.jsx(Cr,{sx:{fontSize:"16px",fontWeight:"bold"},children:o})]}),q.jsx(yt,{sx:{display:"flex",gap:2},children:[{provider:"email"},{provider:"google"},{provider:"apple"}].map(s=>q.jsx(Gl,{sx:{backgroundColor:"white",border:`1px solid ${St.borderBase}`},children:q.jsx(Vn,{icon:r[s.provider]})},s.provider))})]},a.provider)}return q.jsx(nQ,{title:i[a.provider],icon:r[a.provider],onClick:()=>{t(a)}},a.provider)})})}rQ.propTypes={onLogin:ge.func.isRequired,providerList:ge.array.isRequired};function d2({providerList:e,type:t,onSuccess:n,onError:r,tokenState:i}){const{extraParams:a,changeStatus:o}=Xs(),{loginOAuth:s,logoutOAuth:l,translation:f,oauthState:c}=wR(),d=_t(async p=>{try{c.loading=!0,c.status="scanned";const g=await s(p,{action:i.action,...a}),v=lf({returnDomain:!1});Mr.remove("connected_did",v),Mr.remove("connected_pk",v),Mr.remove("connected_wallet_os",v),Mr.set("connected_app",P1(i.appInfo,i.memberAppInfo),v),g!=null&&g.sessionToken&&(c.loading=!1,c.status="succeed",await l({provider:p.provider}),n({...g,encrypted:!1},b=>b,{sourceAppPid:a==null?void 0:a.sourceAppPid}))}catch(g){const v=dX(g,f.loginOAuthFailed);c.loading=!1,c.error=v,c.status="error",await l({provider:p.provider}),r(new Error(v))}});return W.useEffect(()=>{o(c.status)},[o,c.status]),t==="stack"?q.jsx(tQ,{providerList:e,onLogin:d}):q.jsx(rQ,{providerList:e,onLogin:d})}d2.propTypes={providerList:ge.array.isRequired,type:ge.oneOf(["list","stack"]),onSuccess:ge.func.isRequired,onError:ge.func.isRequired,tokenState:ge.object.isRequired};d2.defaultProps={type:"stack"};var oWe=eE,sWe=cC,lWe=1,uWe=2;function cWe(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],f=e[l],c=s[1];if(o&&s[2]){if(f===void 0&&!(l in e))return!1}else{var d=new oWe;if(r)var p=r(f,c,l,e,t,d);if(!(p===void 0?sWe(c,f,lWe|uWe,r,d):p))return!1}}return!0}var fWe=cWe,dWe=Ki;function pWe(e){return e===e&&!dWe(e)}var iQ=pWe,hWe=iQ,mWe=Em;function gWe(e){for(var t=mWe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,hWe(i)]}return t}var yWe=gWe;function vWe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var aQ=vWe,bWe=fWe,EWe=yWe,TWe=aQ;function AWe(e){var t=EWe(e);return t.length==1&&t[0][2]?TWe(t[0][0],t[0][1]):function(n){return n===e||bWe(n,e,t)}}var wWe=AWe,SWe=cC,_We=pm,xWe=kz,CWe=k8,RWe=iQ,$We=aQ,IWe=Yp,kWe=1,DWe=2;function OWe(e,t){return CWe(e)&&RWe(t)?$We(IWe(e),t):function(n){var r=_We(n,e);return r===void 0&&r===t?xWe(n,e):SWe(t,r,kWe|DWe)}}var LWe=OWe,PWe=dm;function MWe(e){return function(t){return PWe(t,e)}}var BWe=MWe,NWe=iW,FWe=BWe,UWe=k8,HWe=Yp;function jWe(e){return UWe(e)?NWe(HWe(e)):FWe(e)}var JWe=jWe,VWe=wWe,qWe=LWe,GWe=iE,WWe=wa,zWe=JWe;function KWe(e){return typeof e=="function"?e:e==null?GWe:typeof e=="object"?WWe(e)?qWe(e[0],e[1]):VWe(e):zWe(e)}var WE=KWe,YWe="Expected a function";function ZWe(e){if(typeof e!="function")throw new TypeError(YWe);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 XWe=ZWe,QWe=zp,eze=WE,tze=Iz,nze=nC;function rze(e,t){if(e==null)return{};var n=QWe(nze(e),function(r){return[r]});return t=eze(t),tze(e,n,function(r,i){return t(r,i[0])})}var ize=rze,aze=WE,oze=XWe,sze=ize;function lze(e,t){return sze(e,oze(aze(t)))}var uze=lze;const MF=Ft(uze);function cze(e){return e==null}var fze=cze;const BF=Ft(fze);var oQ={};Object.defineProperty(oQ,"__esModule",{value:!0});var dze=oQ.default=pze,qS=W;function pze(e,t){const n=(0,qS.useRef)();(0,qS.useEffect)(()=>{n.current=e},[e]),(0,qS.useEffect)(()=>{function r(){n.current()}if(t!==null){const i=setInterval(r,t);return()=>clearInterval(i)}},[t])}var sQ={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,f,c){this.fn=l,this.context=f,this.once=c||!1}function a(l,f,c,d,p){if(typeof c!="function")throw new TypeError("The listener must be a function");var g=new i(c,d||l,p),v=n?n+f:f;return l._events[v]?l._events[v].fn?l._events[v]=[l._events[v],g]:l._events[v].push(g):(l._events[v]=g,l._eventsCount++),l}function o(l,f){--l._eventsCount===0?l._events=new r:delete l._events[f]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var f=[],c,d;if(this._eventsCount===0)return f;for(d in c=this._events)t.call(c,d)&&f.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(c)):f},s.prototype.listeners=function(f){var c=n?n+f:f,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,g=d.length,v=new Array(g);p<g;p++)v[p]=d[p].fn;return v},s.prototype.listenerCount=function(f){var c=n?n+f:f,d=this._events[c];return d?d.fn?1:d.length:0},s.prototype.emit=function(f,c,d,p,g,v){var b=n?n+f:f;if(!this._events[b])return!1;var R=this._events[b],A=arguments.length,$,D;if(R.fn){switch(R.once&&this.removeListener(f,R.fn,void 0,!0),A){case 1:return R.fn.call(R.context),!0;case 2:return R.fn.call(R.context,c),!0;case 3:return R.fn.call(R.context,c,d),!0;case 4:return R.fn.call(R.context,c,d,p),!0;case 5:return R.fn.call(R.context,c,d,p,g),!0;case 6:return R.fn.call(R.context,c,d,p,g,v),!0}for(D=1,$=new Array(A-1);D<A;D++)$[D-1]=arguments[D];R.fn.apply(R.context,$)}else{var M=R.length,F;for(D=0;D<M;D++)switch(R[D].once&&this.removeListener(f,R[D].fn,void 0,!0),A){case 1:R[D].fn.call(R[D].context);break;case 2:R[D].fn.call(R[D].context,c);break;case 3:R[D].fn.call(R[D].context,c,d);break;case 4:R[D].fn.call(R[D].context,c,d,p);break;default:if(!$)for(F=1,$=new Array(A-1);F<A;F++)$[F-1]=arguments[F];R[D].fn.apply(R[D].context,$)}}return!0},s.prototype.on=function(f,c,d){return a(this,f,c,d,!1)},s.prototype.once=function(f,c,d){return a(this,f,c,d,!0)},s.prototype.removeListener=function(f,c,d,p){var g=n?n+f:f;if(!this._events[g])return this;if(!c)return o(this,g),this;var v=this._events[g];if(v.fn)v.fn===c&&(!p||v.once)&&(!d||v.context===d)&&o(this,g);else{for(var b=0,R=[],A=v.length;b<A;b++)(v[b].fn!==c||p&&!v[b].once||d&&v[b].context!==d)&&R.push(v[b]);R.length?this._events[g]=R.length===1?R[0]:R:o(this,g)}return this},s.prototype.removeAllListeners=function(f){var c;return f?(c=n?n+f:f,this._events[c]&&o(this,c)):(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})(sQ);var lQ=sQ.exports,JR=Object.defineProperty,hze=Object.getOwnPropertyDescriptor,mze=Object.getOwnPropertyNames,gze=Object.prototype.hasOwnProperty,yze=(e,t)=>{for(var n in t)JR(e,n,{get:t[n],enumerable:!0})},vze=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mze(t))!gze.call(e,i)&&i!==n&&JR(e,i,{get:()=>t[i],enumerable:!(r=hze(t,i))||r.enumerable});return e},bze=e=>vze(JR({},"__esModule",{value:!0}),e),uQ={};yze(uQ,{Channel:()=>fQ,LongPoll:()=>Wv,Presence:()=>E0,Serializer:()=>T0,Socket:()=>xze});var Eze=bze(uQ),q0=e=>typeof e=="function"?e:function(){return e},Tze=typeof self<"u"?self:null,b0=typeof window<"u"?window:null,G0=Tze||b0||G0,Aze="2.0.0",Rs={connecting:0,open:1,closing:2,closed:3},wze=1e4,Sze=1e3,Oa={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},ml={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},ax={longpoll:"longpoll",websocket:"websocket"},_ze={complete:4},My=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})}},cQ=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))}},fQ=class{constructor(e,t,n){this.state=Oa.closed,this.topic=e,this.params=q0(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new My(this,ml.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new cQ(()=>{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=Oa.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=Oa.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=Oa.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=Oa.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 My(this,ml.leave,q0({}),this.timeout).send(),this.state=Oa.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(ml.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(ml.close,e)}onError(e){return this.on(ml.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 My(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=Oa.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(ml.close,"leave")},n=new My(this,ml.leave,q0({}),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=Oa.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===Oa.closed}isErrored(){return this.state===Oa.errored}isJoined(){return this.state===Oa.joined}isJoining(){return this.state===Oa.joining}isLeaving(){return this.state===Oa.leaving}},p2=class{static request(e,t,n,r,i,a,o){if(G0.XDomainRequest){let s=new G0.XDomainRequest;return this.xdomainRequest(s,e,t,r,i,a,o)}else{let s=new G0.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===_ze.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)}`}},Wv=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=Rs.connecting,this.poll()}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+ax.websocket),"$1/"+ax.longpoll)}endpointURL(){return p2.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=Rs.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Rs.open||this.readyState===Rs.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=Rs.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(`
|
|
489
|
-
`),()=>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=Rs.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=p2.request(e,this.endpointURL(),t,n,this.timeout,o,s=>{this.reqs.delete(a),this.isActive()&&i(s)}),this.reqs.add(a)}},E0=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=E0.syncState(this.state,r,i,a),this.pendingDiffs.forEach(s=>{this.state=E0.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=E0.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 E0.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 f=i[s];if(f){let c=l.metas.map(v=>v.phx_ref),d=f.metas.map(v=>v.phx_ref),p=l.metas.filter(v=>d.indexOf(v.phx_ref)<0),g=f.metas.filter(v=>c.indexOf(v.phx_ref)<0);p.length>0&&(a[s]=l,a[s].metas=p),g.length>0&&(o[s]=this.clone(f),o[s].metas=g)}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 f=e[o].metas.map(d=>d.phx_ref),c=l.metas.filter(d=>f.indexOf(d.phx_ref)<0);e[o].metas.unshift(...c)}n(o,l,s)}),this.map(a,(o,s)=>{let l=e[o];if(!l)return;let f=s.metas.map(c=>c.phx_ref);l.metas=l.metas.filter(c=>f.indexOf(c.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))}},T0={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),f=0;l.setUint8(f++,this.KINDS.push),l.setUint8(f++,t.length),l.setUint8(f++,n.length),l.setUint8(f++,i.length),l.setUint8(f++,r.length),Array.from(t,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(i,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(f++,d.charCodeAt(0)));var c=new Uint8Array(s.byteLength+a.byteLength);return c.set(new Uint8Array(s),0),c.set(new Uint8Array(a),s.byteLength),c.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 f=n.decode(e.slice(o,o+a));o=o+a;let c=e.slice(o,e.byteLength);return{join_ref:s,ref:null,topic:l,event:f,payload:c}},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 f=n.decode(e.slice(s,s+i));s=s+i;let c=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),g={status:d,response:p};return{join_ref:l,ref:f,topic:c,event:ml.reply,payload:g}},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}}},xze=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=n.timeout||wze,this.transport=n.transport||G0.WebSocket||Wv,this.establishedConnections=0,this.defaultEncoder=T0.encode.bind(T0),this.defaultDecoder=T0.decode.bind(T0),this.closeWasClean=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Wv?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;b0&&b0.addEventListener&&(b0.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),b0.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=q0(n.params||{}),this.endPoint=`${t}/${ax.websocket}`,this.vsn=n.vsn||Aze,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new cQ(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Wv}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=p2.appendParams(p2.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=q0(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(),Sze,"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===Rs.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(ml.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Rs.connecting:return"connecting";case Rs.open:return"open";case Rs.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 fQ(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 f=this.channels[l];f.isMember(r,i,a,s)&&f.trigger(i,a,o,s)}for(let l=0;l<this.stateChangeCallbacks.message.length;l++){let[,f]=this.stateChangeCallbacks.message[l];f(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())}},ox={exports:{}},GS,NF;function Cze(){if(NF)return GS;NF=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;GS=function(c,d){d=d||{};var p=typeof c;if(p==="string"&&c.length>0)return o(c);if(p==="number"&&isFinite(c))return d.long?l(c):s(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function o(c){if(c=String(c),!(c.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(c);if(d){var p=parseFloat(d[1]),g=(d[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return p*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(c){var d=Math.abs(c);return d>=r?Math.round(c/r)+"d":d>=n?Math.round(c/n)+"h":d>=t?Math.round(c/t)+"m":d>=e?Math.round(c/e)+"s":c+"ms"}function l(c){var d=Math.abs(c);return d>=r?f(c,d,r,"day"):d>=n?f(c,d,n,"hour"):d>=t?f(c,d,t,"minute"):d>=e?f(c,d,e,"second"):c+" ms"}function f(c,d,p,g){var v=d>=p*1.5;return Math.round(c/p)+" "+g+(v?"s":"")}return GS}function Rze(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=o,n.humanize=Cze(),n.destroy=f,Object.keys(e).forEach(c=>{n[c]=e[c]}),n.names=[],n.skips=[],n.formatters={};function t(c){let d=0;for(let p=0;p<c.length;p++)d=(d<<5)-d+c.charCodeAt(p),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(c){let d,p=null,g,v;function b(...R){if(!b.enabled)return;const A=b,$=Number(new Date),D=$-(d||$);A.diff=D,A.prev=d,A.curr=$,d=$,R[0]=n.coerce(R[0]),typeof R[0]!="string"&&R.unshift("%O");let M=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,(U,V)=>{if(U==="%%")return"%";M++;const Z=n.formatters[V];if(typeof Z=="function"){const ie=R[M];U=Z.call(A,ie),R.splice(M,1),M--}return U}),n.formatArgs.call(A,R),(A.log||n.log).apply(A,R)}return b.namespace=c,b.useColors=n.useColors(),b.color=n.selectColor(c),b.extend=r,b.destroy=n.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(g!==n.namespaces&&(g=n.namespaces,v=n.enabled(c)),v),set:R=>{p=R}}),typeof n.init=="function"&&n.init(b),b}function r(c,d){const p=n(this.namespace+(typeof d>"u"?":":d)+c);return p.log=this.log,p}function i(c){n.save(c),n.namespaces=c,n.names=[],n.skips=[];let d;const p=(typeof c=="string"?c:"").split(/[\s,]+/),g=p.length;for(d=0;d<g;d++)p[d]&&(c=p[d].replace(/\*/g,".*?"),c[0]==="-"?n.skips.push(new RegExp("^"+c.slice(1)+"$")):n.names.push(new RegExp("^"+c+"$")))}function a(){const c=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let d,p;for(d=0,p=n.skips.length;d<p;d++)if(n.skips[d].test(c))return!1;for(d=0,p=n.names.length;d<p;d++)if(n.names[d].test(c))return!0;return!1}function s(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function l(c){return c instanceof Error?c.stack||c.message:c}function f(){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 $ze=Rze;(function(e,t){var n={};t.formatArgs=i,t.save=a,t.load=o,t.useColors=r,t.storage=s(),t.destroy=(()=>{let f=!1;return()=>{f||(f=!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(f){if(f[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+f[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;f.splice(1,0,c,"color: inherit");let d=0,p=0;f[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(d++,g==="%c"&&(p=d))}),f.splice(p,0,c)}t.log=console.debug||console.log||(()=>{});function a(f){try{f?t.storage.setItem("debug",f):t.storage.removeItem("debug")}catch{}}function o(){let f;try{f=t.storage.getItem("debug")}catch{}return!f&&typeof Qt<"u"&&"env"in Qt&&(f=n.DEBUG),f}function s(){try{return localStorage}catch{}}e.exports=$ze(t);const{formatters:l}=e.exports;l.j=function(f){try{return JSON.stringify(f)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(ox,ox.exports);var VR=ox.exports;const Ize=VR;var kze=(e,t=!1)=>{const n=Ize(["@arcblock/ws",e].join(":"));return{debug:n,warn:n,info:n,trace:t?n:console.error,error:t?n:console.error}};const Dze=kze;var Oze=(e,t,n)=>class extends e{constructor(i,a={}){super(i,{transport:n,...a}),this._logger=Dze("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:f})=>{l==="ok"?this.emitter.emit(i,f):this._logger.debug("response error",{topic:i,status:l,data:f})})}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 Lze=lQ,{Socket:Pze}=Eze,Mze=Oze;var Bze=Mze(Pze,Lze);const Nze=Bze;var qR={WsClient:Nze};function Fze(e){const t=W.useRef(e);W.useEffect(()=>{t.current=e},[e]),W.useEffect(()=>{const n=r=>{!document.hidden&&t.current&&t.current(r)};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)}},[])}function Uze(e){const t=e||window.location.href;return new URL(t).host}function A0(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 WS={};function Hze({action:e,prefix:t,checkFn:n,extraParams:r,baseUrl:i}){const a=`${t}/token?${y0(r)}`;return WS[a]||(WS[a]=async function(){var d,p;const s=+new Date,l=await n(a,{headers:A0(i)}),f=+new Date;if(f-s<500&&await Lm(500-(f-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 c=Xb(t)?t:`${i}${t}`;throw new Error(`Error generating ${e} qrcode from: ${c}`)}),WS[a]}const jze=()=>{try{const t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;const n=dVe(t);return{token:pVe(n),url:n}}catch(e){return{error:e}}},dQ=()=>Fs(globalThis,"blocklet.appPid")||Fs(globalThis,"blocklet.appId")||Fs(globalThis,"env.appId")||"",Jze=()=>(Fs(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(oX,""),zS=e=>`relay:${dQ()}:${e}`,Vze=()=>window.location.protocol==="https:"?"wss:":"ws:",FF=e=>!e||new URL(e).origin===window.location.origin,UF=e=>["succeed","error","timeout","busy"].includes(e);function qze({action:e,checkFn:t,checkInterval:n,checkTimeout:r,extraParams:i,locale:a,prefix:o,tokenKey:s,encKey:l,onError:f,onSuccess:c,baseUrl:d,autoConnect:p=!0,forceConnected:g=!0,saveConnect:v=!0,useSocket:b=!0,provider:R="wallet"}){const A=ki({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:MF(i,BF),checkFn:t,results:{},action:e,provider:R}),$=B1[a]||B1.en,D=nn(()=>jze(),[]),M=Math.ceil(r/n),F=ki({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:U,decrypt:V}=uGe(),Z=_m(),ie=uf(),fe=_t((..._)=>{const y={[l]:U,...A.extraParams,locale:a,forceConnected:g,autoConnect:p&&!Z.wallet&&!F.cancelWhenScannedCounter&&["ios","android"].includes(Mr.get("connected_wallet_os")),provider:A.provider};return ie&&(y.visitorId=ie),Hze({action:e,prefix:A.prefix,baseUrl:A.baseUrl,checkFn:A.checkFn,extraParams:y})(..._)}),Q=()=>{F.cancelWhenScannedCounter++};W.useEffect(()=>{F.cancelWhenScannedCounter>0&&(i.nw?f(new Error($.retryForbidden)):S())},[F.cancelWhenScannedCounter]);const L=W.useRef(null),T=W.useRef(null);W.useEffect(()=>(b&&FF(A.baseUrl)&&dQ()?(!L.current||L.current.isConnected()===!1||L.current.baseUrl!==A.baseUrl)&&(L.current=new qR.WsClient(`${Vze()}//${Uze(A.baseUrl)}${Jze()}${oX}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),L.current.baseUrl=A.baseUrl,L.current.onOpen(()=>{F.isSocketAvailable=!0}),L.current.connect()):F.isSocketAvailable&&(F.isSocketAvailable=!1),()=>{L.current&&(L.current.disconnect(),L.current=null)}),[A.baseUrl]);const u={...A.extraParams,locale:a,[s]:A.token||(D==null?void 0:D.token),provider:A.provider},h=()=>!A.token||A.loading||UF(A.status)?null:n,E=async()=>{try{u[s]&&A.status==="created"&&await A.checkFn(`${A.prefix}/timeout?${y0(u)}`,{headers:A0(A.baseUrl)})}catch{}try{A.token&&T.current&&(await L.current.unsubscribe(zS(A.token)),T.current=null)}catch{}},S=_t(async(_=!0)=>{_&&E();try{A.loading=!0,A.token="",A.url="",A.store=null,A.extraParams=MF(i,BF),await Lm();const y=await fe(),k=y.extra||{};A.loading=!1,A.token=y.token,A.url=y.url,A.status="created",A.error="",A.checkCount=0,A.appInfo=y.appInfo,A.memberAppInfo=y.memberAppInfo,A.connectedDid=k.connectedDid,A.saveConnect=k.saveConnect}catch(y){A.loading=!1,A.status="error",A.error=`${$.generateError}: ${y.message}`}}),C=W.useRef(null);W.useEffect(()=>{C.current={state:A,params:u}}),W.useEffect(()=>()=>{const{state:_,params:y}=C.current;_.status==="created"&&y[s]&&_.checkFn(`${_.prefix}/timeout?${y0(y)}`,{headers:A0(_.baseUrl)})},[]);const I=async()=>{try{if(D.error)throw D.error;A.loading=!0,A.token=D.token,A.url=D.url,A.inExistingSession=!0;const _=await x();if(_!=null&&_.status&&(_==null?void 0:_.status)!=="created")throw new Error(`${$.invalidSessionStatus} [${_.status}]`)}catch(_){A.status="error",A.error=_.message,f(_,A==null?void 0:A.store,V)}finally{A.loading=!1}};W.useEffect(()=>{if(!A.token&&!A.store&&!A.loading&&!A.error)if(D)I();else{S(!1);return}if(A.status!=="timeout"&&A.checkCount>M){A.status="timeout",E();return}if(A.status==="succeed"&&!F.onSuccessCalled){const _=cX({...A.store,appInfo:A.appInfo,memberAppInfo:A.memberAppInfo});if(FF(A.baseUrl)&&v&&A.saveConnect&&A.store.did&&a2(_,!0),A.store){const{nextWorkflow:y}=A.store;if(y)try{const k=hVe(y,s);A.nextWorkflow=(k==null?void 0:k.nextWorkflow)||y,Object.assign(A,k),A.store=null,A.error="",A.url="",A.appInfo=null,A.memberAppInfo=null,A.checkCount=0,A.status="scanned",A.results={...A.results,[A.token]:A.store},A.checkFn=Yl({baseURL:k.baseUrl,timeout:8e3}).get,x()}catch(k){console.error(`Invalid nextWorkflow: ${y}`,k),A.status="error",A.error=`Invalid nextWorkflow: ${y}: ${k.message}`}else if(A.nextWorkflow&&(A.nextWorkflow="",A.url=""),typeof c=="function"){const k=Object.values({...A.results,[A.token]:A.store});F.onSuccessCalled=!0;const re=k.length>1?k:k[0],N=Rl(re);c(N,V,{sourceAppPid:i==null?void 0:i.sourceAppPid,..._})}}}}),W.useEffect(()=>{if(A.token&&F.isSocketAvailable&&L.current){let _=!1;T.current?T.current.token!==A.token&&(L.current.unsubscribe(zS(T.current.token)),_=!0):_=!0,_&&(T.current=L.current.subscribe(zS(A.token)),T.current.token=A.token,T.current.on("updated",({response:y})=>{let{status:k,error:re}=y;k==="forbidden"&&(re=$.forbidden,k="error"),A.status=k,A.mfaCode=y.mfaCode||0,A.store=y,A.error=re}))}},[A.token,F.isSocketAvailable,L.current]);const x=async(_=!1)=>{var y;if(A.checking||(A.status==="created"&&A.checkCount++,F.isSocketAvailable&&!_))return null;try{A.checking=!0;const k=await A.checkFn(`${A.prefix}/status?${y0(u)}`,{headers:A0(A.baseUrl)}),{status:re,error:N,mfaCode:X=0}=k.data;if(A.store=k.data,A.mfaCode=X,A.checking=!1,A.status=re,re==="error"&&N){const ne=new Error(N);throw ne.response=k,ne}return k.data}catch(k){const{response:re}=k;if(re!=null&&re.status){u[s]&&A.checkFn(`${A.prefix}/timeout?${y0(u)}`,{headers:A0(A.baseUrl)});const N=(y=re==null?void 0:re.data)!=null&&y.error?re.data.error:k.message,X=new Error(N);X.code=re.status,A.status="error",A.checking=!1,A.error=N,f(X,A==null?void 0:A.store,V)}else A.status="error",A.checking=!1,A.error=$.generateError}return null};return dze(x,h()),Fze(()=>{F.isSocketAvailable&&A.token&&UF(A.status)===!1&&x(!0)}),{state:A,generate:S,cancelWhenScanned:Q}}function GR({tokenState:e,locale:t,tokenKey:n}){const{t:r,isWalletWebview:i,connectState:a}=Xs(),o=r("openInWallet"),s=nn(()=>{if(!e.url)return"";const c=new URL(window.location.href);c.searchParams.set("tokenKey",e.token);const d=new URL(e.url);return d.searchParams.set("callback",encodeURIComponent(c)),d.searchParams.set("callback_delay",1500),d.searchParams.set("locale",t),d.href.replace(/^https?:\/\//,"abt://")},[n,e.token]),l=_t(()=>{sn(()=>import("./index-8IYt6Tm_.js").then(c=>c.i),__vite__mapDeps([])).then(c=>{c.call||(c=c.default),c.call("authAction",{action:"auth",deepLink:s})}).catch(c=>{console.error("load dsbridge error",c)})}),f={};return i||(f.component="a",f.href=s),Am(()=>{a.autoActiveWebview&&s&&(a.autoActiveWebview=!1,l())}),q.jsxs(Zl,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:St.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...f,onClick:i?l:Bn,children:[q.jsxs(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[q.jsx(Cp,{width:"24px",height:"24px"}),q.jsx(Cr,{sx:{fontSize:"14px",fontWeight:500},children:o})]}),q.jsx(Vn,{icon:qE,fontSize:"1.3rem",color:St.primaryBase})]})}GR.propTypes={tokenState:ge.object.isRequired,locale:ge.string,tokenKey:ge.string};GR.defaultProps={locale:"en",tokenKey:"_t_"};const Gze={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 pQ({onRefresh:e,...t}){const n=r=>{r.stopPropagation(),e()};return q.jsx(yt,{...t,onClick:n,sx:{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(0, 0, 0, 0.1)",cursor:"pointer",...t.sx},children:q.jsx(yt,{sx:{backgroundColor:St.foregroundsFgInteractive,borderRadius:"100%",fontSize:0},children:q.jsx(Vn,{icon:Gze,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})})})}pQ.propTypes={onRefresh:ge.func.isRequired};const By=["scanned","succeed","error","busy"];function WR({onSuccess:e,onError:t,action:n,prefix:r,checkFn:i,checkInterval:a,checkTimeout:o,locale:s,tokenKey:l,encKey:f,baseUrl:c,autoConnect:d,forceConnected:p,saveConnect:g,useSocket:v,allowWallet:b,provider:R,webWalletUrl:A,onRecreateSession:$,onClose:D,messages:M,enabledConnectTypes:F}){var te,ye,pe;if(typeof i!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const U=W.useContext(ph),{connectState:V,extraParams:Z,staticState:ie,changeStatus:fe,isWalletWebview:Q,matchSmallScreen:L,t:T}=Xs(),u=_m(),h=nn(()=>{var ae;return R||(Z==null?void 0:Z.provider)||((ae=U==null?void 0:U.session)==null?void 0:ae.provider)||"wallet"},[Z==null?void 0:Z.provider,(te=U==null?void 0:U.session)==null?void 0:te.provider]);W.useEffect(()=>{I(c)},[c]);const{state:E,generate:S,cancelWhenScanned:C}=qze({action:n,baseUrl:c,checkFn:i,checkInterval:a,checkTimeout:o,extraParams:Z,prefix:r,onError:t,onSuccess:e,locale:s,tokenKey:l,encKey:f,autoConnect:d,forceConnected:p,saveConnect:g,useSocket:v,allowWallet:b,provider:h}),{setBaseUrl:I,oauthConfigList:x,oauthState:_}=wR({defaultStatus:E.status}),y=fK(V==null?void 0:V.sourceAppPid);cf(()=>{ca(y)||S()},[V==null?void 0:V.sourceAppPid]);const k=nn(()=>By.includes(_.status)||By.includes(E.status),[E.status,_.status]);W.useEffect(()=>{By.includes(_.status)?fe(_.status):By.includes(E.status)?fe(E.status):fe("created")},[fe,E.status,_.status]);const re=_t(()=>{$(),_.reset(),E.inExistingSession||S(!1)}),N=_t(()=>{$(),E.inExistingSession||(ie.current.cancelCount++,C())}),X=nn(()=>({confirm:M.confirm,success:M.success,error:E.error||_.error||""}),[M.confirm,M.success,E.error,_.error]),ne=nn(()=>b&&F.includes("mobile")&&!Q,[b,F,Q]),le=lX(A),me=nn(()=>b&&F.includes("web")&&(le||Zb())&&!u.mobile.any,[b,F,(ye=u==null?void 0:u.mobile)==null?void 0:ye.any]),we=nn(()=>b&&F.includes("mobile")&&u.mobile.any,[b,F,(pe=u==null?void 0:u.mobile)==null?void 0:pe.any]),j=nn(()=>{const ae=XGe(["auth0","apple","github","google"],F);return x.filter(he=>ae.includes(he.provider))},[x,F]),P=nn(()=>j.length>0&&["login","invite"].includes(E.action),[j]),K=nn(()=>{const ae=ne||me||we;let he=null;return P&&(he=ae?q.jsxs(q.Fragment,{children:[q.jsx(R8,{sx:{color:St.textMuted,width:L?"200px":"368px",opacity:.6,maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:St.lineStep}},children:"OR"}),q.jsx(d2,{providerList:j,onSuccess:e,onError:t,tokenState:E,locale:s,type:"list"})]}):q.jsxs(q.Fragment,{children:[q.jsx(Cr,{variant:"body2",sx:{mt:1,textAlign:"center",color:St.foregroundsFgSubtile},children:T("loginWithBelow")}),q.jsx(d2,{providerList:j,onSuccess:e,onError:t,tokenState:E,type:"list",locale:s})]})),q.jsxs(q.Fragment,{children:[E.status==="timeout"?q.jsx(pQ,{onRefresh:re,sx:{zIndex:1,animation:"fadeIn 1s","@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}}}}):null,q.jsx(yt,{"data-did-auth-url":E.url,sx:{display:"none"}}),we&&q.jsx(GR,{tokenState:E,locale:s,tokenKey:l}),ne&&q.jsx(UR,{tokenState:E,messages:M,locale:s}),me&&q.jsx(NR,{tokenState:E,webWalletUrl:A,locale:s}),he]})},[E.url,E.status,ne,me,we]);return nn(()=>E.loading||_.loading||!E.token&&!E.error,[E.loading,_.loading])?q.jsx($R,{}):k?q.jsxs(q.Fragment,{children:[q.jsx(yt,{"data-did-auth-url":E.url,sx:{display:"none"}}),q.jsx(GE,{status:_.status||E.status,nextWorkflow:E.nextWorkflow,mfaCode:E.mfaCode,onCancel:N,onRetry:re,onClose:D,messages:X,locale:s,className:"auth-status"})]}):K}WR.propTypes={onError:ge.func,onSuccess:ge.func.isRequired,action:ge.string.isRequired,checkFn:ge.func.isRequired,prefix:ge.string,checkInterval:ge.number,checkTimeout:ge.number,locale:ge.oneOf(["en","zh",""]),tokenKey:ge.string,encKey:ge.string,baseUrl:ge.string,autoConnect:ge.bool,forceConnected:ge.oneOfType([ge.bool,ge.string]),saveConnect:ge.bool,useSocket:ge.bool,allowWallet:ge.bool,provider:ge.oneOf(["wallet","auth0",""]),webWalletUrl:ge.string,onRecreateSession:ge.func,onClose:ge.func,messages:ge.object,enabledConnectTypes:ge.arrayOf(ge.oneOf(["web","mobile","github","apple","google","auth0"]))};WR.defaultProps={prefix:cR,onError:Bn,checkInterval:2*1e3,checkTimeout:aX*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:sX(),onRecreateSession:Bn,onClose:Bn,messages:{},enabledConnectTypes:["web","mobile","github","apple","google","auth0"]};var KS=Tz,Wze=JW,zze=uC,Kze=1/0,Yze=KS&&1/zze(new KS([,-0]))[1]==Kze?function(e){return new KS(e)}:Wze,Zze=Yze,Xze=sC,Qze=zX,eKe=KX,tKe=lC,nKe=Zze,rKe=uC,iKe=200;function aKe(e,t,n){var r=-1,i=Qze,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=eKe;else if(a>=iKe){var f=t?null:nKe(e);if(f)return rKe(f);o=!1,i=tKe,l=new Xze}else l=t?[]:s;e:for(;++r<a;){var c=e[r],d=t?t(c):c;if(c=n||c!==0?c:0,o&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}var hQ=aKe,oKe=rC,sKe=WE,lKe=bm,uKe=hQ,HF=K8,cKe=aE,fKe=lKe(function(e){var t=cKe(e);return HF(t)&&(t=void 0),uKe(oKe(e,1,HF,!0),sKe(t))}),dKe=fKe;const pKe=Ft(dKe);var hKe=QW,mKe=Em;function gKe(e,t){return e&&hKe(e,t,mKe)}var yKe=gKe,vKe=Af;function bKe(e,t){return function(n,r){if(n==null)return n;if(!vKe(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 EKe=bKe,TKe=yKe,AKe=EKe,wKe=AKe(TKe),SKe=wKe,_Ke=SKe,xKe=Af;function CKe(e,t){var n=-1,r=xKe(e)?Array(e.length):[];return _Ke(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var RKe=CKe;function $Ke(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var IKe=$Ke,jF=cm;function kKe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=jF(e),o=t!==void 0,s=t===null,l=t===t,f=jF(t);if(!s&&!f&&!a&&e>t||a&&o&&l&&!s&&!f||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!f&&e<t||f&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var DKe=kKe,OKe=DKe;function LKe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=OKe(i[r],a[r]);if(l){if(r>=s)return l;var f=n[r];return l*(f=="desc"?-1:1)}}return e.index-t.index}var PKe=LKe,YS=zp,MKe=dm,BKe=WE,NKe=RKe,FKe=IKe,UKe=ym,HKe=PKe,jKe=iE,JKe=wa;function VKe(e,t,n){t.length?t=YS(t,function(a){return JKe(a)?function(o){return MKe(o,a.length===1?a[0]:a)}:a}):t=[jKe];var r=-1;t=YS(t,UKe(BKe));var i=NKe(e,function(a,o,s){var l=YS(t,function(f){return f(a)});return{criteria:l,index:++r,value:a}});return FKe(i,function(a,o){return HKe(a,o,n)})}var qKe=VKe,GKe=rC,WKe=qKe,zKe=bm,JF=hz,KKe=zKe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&JF(e,t[0],t[1])?t=[]:n>2&&JF(t[0],t[1],t[2])&&(t=[t[0]]),WKe(e,GKe(t,1),[])}),YKe=KKe;const mQ=Ft(YKe),ZKe=On(qi,"/api/user-session");function gQ({appPid:e,sourceAppPid:t,loginAppPid:n,autoFetch:r=!0,baseUrl:i="/"}={}){const a=uf(),o=nn(()=>Yl({baseURL:On(i,ZKe)},{lazy:!0,lazyTime:500}),[i]),s=_t(async()=>{const{data:g}=await o.get("",{params:{visitorId:a,appPid:e}});return g}),l=ki({loaded:!1,loadingId:null}),f=LOe(s,{manual:!r,onFinally(){l.loaded=!0},refreshDeps:[e,i]}),c=async g=>{var b,R,A;const v=oE(g,["userDid","visitorId","passportId"]);try{l.loadingId=g.id;const{data:$}=await o.post("login",{...v,appPid:n});return $}catch($){const D=$.response?((R=(b=$.response)==null?void 0:b.data)==null?void 0:R.error)||((A=$.response)==null?void 0:A.data):$.message;throw Ci.error(D),console.error("Quick login error",$),$}finally{l.loadingId=null}},d=nn(()=>{if(!f.data)return[];const g=new Date().getTime(),v=mQ(f.data,b=>g-new Date(b.updatedAt).getTime());return pKe(v,b=>[b.userDid].join("_"))},[f.data,t,e]),p=nn(()=>!!(d&&d.length>0),[d]);return{loadingId:l.loadingId,userSessions:d,quickLoginEnabled:p,loginUserSession:c,loading:f.loading,loaded:f.loaded,refresh:f.refreshAsync}}const XKe={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"/>'},QKe={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 zR({appInfo:e,...t}){const[n,r]=W.useState(!1);if(n||!(e.appUrl||e.appLogo))return q.jsx(Fl,{did:e.appPid,size:32});let i=e.appLogo||"";return Xb(i)||(i=On(e.appUrl||"",i)),q.jsx(Wd,{src:i,alt:e.appName||"Blocklet Icon",width:32,height:32,...t,onError:()=>r(!0)})}zR.propTypes={appInfo:ge.object.isRequired};const eYe=e=>e?e.split(":").pop():"";function zE({appInfo:e,active:t,appLogo:n}){return q.jsxs(yt,{sx:{display:"flex",alignItems:"center",fontWeight:600,color:St.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:St.textMuted,fontSize:"12px"}},children:[n||q.jsx(yt,{sx:{borderRadius:"8px",overflow:"hidden",fontSize:0},children:q.jsx(zR,{appInfo:e})}),q.jsxs(yt,{className:"app-info-content",children:[q.jsx(yt,{className:"app-info-name",children:e.appName}),e.appPid&&q.jsx(EE,{size:12,className:"app-info-did",copyable:!1,color:St.textMuted,compact:!1,responsive:!1,children:eYe(e.appPid)})]}),t?q.jsx(Gl,{size:"small",color:"success",children:q.jsx(ITe,{icon:QKe,color:"success"})}):null]})}zE.propTypes={appInfo:ge.object.isRequired,active:ge.bool,appLogo:ge.node};zE.defaultProps={active:!1,appLogo:null};function sx({appInfo:e}){const t=W.useRef(null),n=ki({hoverOnButton:!1,hoverOnPopover:!1}),r=nn(()=>n.hoverOnButton||n.hoverOnPopover,[n.hoverOnButton,n.hoverOnPopover]);return q.jsxs(q.Fragment,{children:[q.jsx(yt,{component:"span",ref:t,sx:{color:St.foregroundsFgInteractive,cursor:"help"},onClick:()=>{n.hoverOnButton=!0},onMouseEnter:()=>{n.hoverOnButton=!0},onMouseLeave:()=>{setTimeout(()=>{n.hoverOnButton=!1},200)},children:e.appName}),q.jsx(KG,{open:r,sx:{pointerEvents:"none"},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${St.gray6}, 0px 0px 0px 1px ${St.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(yt,{component:"span",sx:{pointerEvents:"auto"},onMouseEnter:()=>{n.hoverOnPopover=!0},onMouseLeave:()=>{n.hoverOnPopover=!1},children:q.jsx(zE,{appInfo:e,appLogo:q.jsx(zR,{appInfo:e})})})})]})}sx.propTypes={appInfo:ge.object.isRequired};function VF(){const{appInfoList:e,t,extraParams:n,connectState:r}=Xs(),i=W.useRef(null),a=ki({open:!1});return q.jsxs(q.Fragment,{children:[q.jsx(yt,{component:"span",ref:i,sx:{textTransform:"lowercase",color:St.foregroundsFgInteractive,cursor:"pointer"},onClick:()=>{a.open=!0},children:t("switch")}),q.jsx(vAe,{anchorEl:i.current,open:a.open,onClose:()=>{a.open=!1},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${St.gray6}, 0px 0px 0px 1px ${St.gray6}`,borderRadius:2}}},children:e.map(o=>q.jsx(M3,{onClick:()=>{a.open=!1,r.sourceAppPid=o.sourceAppPid},children:q.jsx(zE,{appInfo:o,active:o.sourceAppPid===(n==null?void 0:n.sourceAppPid)})},o.appPid))})]})}function KR({locale:e,disableSwitchApp:t}){const{appInfoList:n,extraParams:r,connectState:i,blocklet:a}=Xs(),o=nn(()=>n.find(f=>Zd.isUndefined(r==null?void 0:r.sourceAppPid)?!0:Zd.isNull(f.sourceAppPid)?f.appPid===(a==null?void 0:a.appPid):f.sourceAppPid===(r==null?void 0:r.sourceAppPid)),[r==null?void 0:r.sourceAppPid,n]),s=!t&&n.length>1;Am(()=>{(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=nn(()=>e==="zh"?q.jsxs(q.Fragment,{children:["您正在使用 ",q.jsx(sx,{appInfo:o,appInfoList:n})," 账户来连接站点",s?q.jsxs(q.Fragment,{children:[",点击",q.jsx(VF,{appInfoList:n})]}):null]}):q.jsxs(q.Fragment,{children:["You're using ",q.jsx(sx,{appInfo:o})," account for site access",s?q.jsxs(q.Fragment,{children:[". Click to ",q.jsx(VF,{appInfoList:n})]}):null]}),[e,o,n,s]);return Zd.isEmpty(n)?null:q.jsxs(yt,{sx:{fontSize:"13px",color:St.foregroundsFgSubtile,lineHeight:1.5},children:[l,s&&q.jsx(yt,{component:"span",sx:{display:"inline-block",ml:.5,fontSize:"13px",height:"16px",lineHeight:1,verticalAlign:"middle"},children:q.jsx(yt,{component:Vn,icon:XKe,sx:{verticalAlign:"middle"}})})]})}KR.propTypes={locale:ge.string,disableSwitchApp:ge.bool};KR.defaultProps={locale:"en",disableSwitchApp:!1};var YR={};Object.defineProperty(YR,"__esModule",{value:!0});var yQ=YR.default=void 0;tYe(W);var ZS=q;function tYe(e){return e&&e.__esModule?e:{default:e}}function qF(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 GF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qF(Object(n),!0).forEach(function(r){nYe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nYe(e,t,n){return t=rYe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rYe(e){var t=iYe(e,"string");return typeof t=="symbol"?t:String(t)}function iYe(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 ZR=function(t){return(0,ZS.jsxs)("svg",GF(GF({},t),{},{children:[(0,ZS.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,ZS.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)"})]}))};ZR.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"};ZR.displayName="did-logo-colorful";yQ=YR.default=ZR;function aYe({...e}){return q.jsxs(yt,{...e,sx:{display:"flex",alignItems:"center",color:St.foregroundsFgMuted,gap:.5,...e.sx},children:[q.jsx(yQ,{}),"Power By DID Connect"]})}function XR({children:e,initHeight:t,slotProps:n}){var s;const[r,i]=W.useState(t),a=W.useRef(null),o=wm(a);return W.useEffect(()=>{o!=null&&o.height&&i(o.height)},[o==null?void 0:o.height,r]),q.jsx(yt,{...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(yt,{...n==null?void 0:n.container,ref:a,children:e})})}XR.propTypes={initHeight:ge.number,children:ge.node.isRequired,slotProps:ge.object};XR.defaultProps={initHeight:0,slotProps:{}};const Ny="did-connect",WF="quick-connect";function QR({mode:e,isFullScreen:t,hideCloseButton:n,...r}){var Q;const i=ki({showTab:Ny}),{connectState:a,blocklet:o}=Xs(),{extraContent:s,onSuccess:l,action:f,onClose:c,options:d}=r,p=nn(()=>(a==null?void 0:a.sourceAppPid)||WK(),[a==null?void 0:a.sourceAppPid]),{quickLoginEnabled:g,loading:v,userSessions:b,loginUserSession:R,refresh:A}=gQ({appPid:p,loginAppPid:o==null?void 0:o.appPid,sourceAppPid:a==null?void 0:a.sourceAppPid,autoFetch:["login"].includes(f)}),$=nn(()=>{var L;return((L=r==null?void 0:r.messages)==null?void 0:L.title)||lVe},[(Q=r==null?void 0:r.messages)==null?void 0:Q.title]),D=_t(async(...L)=>{var E,S,C;const T=await R(...L),[u]=L,h={};u&&((E=u==null?void 0:u.user)!=null&&E.did&&(h.connected_did=u.user.did),(S=u==null?void 0:u.user)!=null&&S.pk&&(h.connected_pk=u.user.pk),(C=u==null?void 0:u.extra)!=null&&C.walletOS&&(h.connected_wallet_os=u.extra.walletOS)),await l({...T,encrypted:!1},I=>I,h)});W.useEffect(()=>{(d==null?void 0:d.showQuickConnect)!==!1&&!v&&g&&(i.showTab=WF)},[v,g,d==null?void 0:d.showQuickConnect]);const M=HOe(v,{wait:100}),F=_t(()=>{i.showTab=Ny}),U=_t(()=>{i.showTab=WF}),V=nn(()=>i.showTab===Ny||!g,[i.showTab,g]),Z=nn(()=>{let L=!0;return(v||M)&&(L=!1),g||(L=!1),d.showQuickConnect===!1&&(L=!1),i.showTab!==Ny&&(L=!1),L},[g,i.showTab,v,M]),ie=nn(()=>q.jsx(yt,{onClick:c,sx:{fontSize:"1.5rem",width:"1.5rem",height:"1.5rem",cursor:"pointer",color:St.foregroundsFgSubtile,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:q.jsx(Vn,{icon:jX})}),[c]);let fe=null;return v||M?fe=q.jsx($R,{}):V?fe=q.jsx(WR,{...r,onClose:c}):fe=q.jsx(BR,{userSessions:b,onLogin:D,onRetry:A,onClose:c,messages:r.messages,onLoginAnother:F}),q.jsxs(dEe,{variant:"outlined",sx:{color:St.foregroundsFgBase,backgroundColor:"white",borderRadius:2,borderColor:St.strokeBorderBase,height:"100%",display:"flex",flexDirection:"column"},children:[q.jsx(LEe,{title:q.jsxs(q.Fragment,{children:[Z&&q.jsx(Gl,{size:"small",disabled:a.status!=="created",onClick:U,disableRipple:!0,sx:{fontSize:"0.75em"},children:q.jsx(Vn,{icon:Hqe,color:St.textMuted})}),$]}),titleTypographyProps:{display:"flex",alignItems:"center",variant:"h6",lineHeight:"28px",fontWeight:600},action:n?null:ie,sx:{px:2.5,".MuiCardHeader-action":{margin:0,alignSelf:"center"}}}),q.jsx(SEe,{sx:{borderTop:`1px solid ${St.strokeBorderBase}`,borderBottom:`1px solid ${St.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(XR,{slotProps:{root:{sx:{display:"inline-block",width:"100%",verticalAlign:"middle"}},container:{sx:{display:"flex",flexDirection:"column",gap:1}}},children:[q.jsx(KR,{locale:r.locale,disableSwitchApp:r.disableSwitchApp}),fe,s?q.jsx(yt,{children:s}):null]})}),q.jsx(vEe,{sx:{py:2,px:2.5,justifyContent:"center"},children:q.jsx(aYe,{sx:{fontSize:"12px"}})})]})}QR.propTypes={action:ge.string.isRequired,onSuccess:ge.func,onClose:ge.func,messages:ge.object,extraContent:ge.any,disableSwitchApp:ge.bool,mode:ge.oneOf(["fullScreen","dialog","normal"]),isFullScreen:ge.bool,options:ge.object,hideCloseButton:ge.bool,locale:ge.string};QR.defaultProps={onSuccess:Bn,onClose:Bn,mode:"normal",isFullScreen:!1,extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!0,locale:"en"};function e$(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(IR,{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(QR,{...e})})}e$.propTypes={checkFn:ge.func.isRequired,extraParams:ge.object,blocklet:ge.object.isRequired,action:ge.string.isRequired,locale:ge.string};e$.defaultProps={extraParams:{},locale:"en"};const oYe=aGe(Jqe(lGe(e$))),sYe=W.forwardRef((e,t)=>{const{api:n}=W.useContext(ph),r={containerEl:null,popup:!0,checkFn:(n==null?void 0:n.get)||Bn,onSuccess:()=>{setTimeout(()=>{f()},2e3)},messages:{title:"DID Connect",scan:"Scan QR code to complete this action",confirm:"Confirm on your DID Wallet",success:"Success!"}},i=ki({show:!1,...Rl(r)}),[a,o]=W.useState({}),s=_t(d=>{const{containerEl:p,checkFn:g,popup:v,onSuccess:b,messages:R,...A}=Rl(d);typeof g=="function"&&(i.checkFn=g),typeof b=="function"&&(i.onSuccess=(...$)=>{b(...$),setTimeout(()=>{f()},2e3)}),v!==void 0&&(i.popup=v),R!==void 0&&(i.messages=R),p!==void 0&&(i.containerEl=p),o(A),i.show=!0}),l=_t(()=>{const d=Rl(r);Object.keys(d).forEach(p=>{i[p]=d[p]})}),f=_t(()=>{i.show=!1,l()});W.useImperativeHandle(t,()=>({open:s,close:f}),[s,f]);const c=q.jsx(oYe,{open:!0,popup:i.popup,messages:i.messages,onClose:f,onSuccess:i.onSuccess,checkFn:i.checkFn,...a});return i.containerEl?W1.createPortal(c,i.containerEl):i.show&&c});function lYe(){const e=W.useRef(null),t=_t((...o)=>{var s;(s=e.current)==null||s.open(...o)}),n=_t(async(o={},{baseUrl:s,locale:l="en",blocklet:f=globalThis==null?void 0:globalThis.blocklet}={})=>{var R;if(ca(s)){const A=Pm(),$=fh();s=A?$.appUrl:window.location.origin}const{onSuccess:c,onClose:d,onError:p,...g}=o;if(!((R=g==null?void 0:g.extraParams)!=null&&R.provider))throw Bc(p)&&p("Must have extraParams.provider"),new Error("Must have extraParams.provider");g!=null&&g.prefix||(g.prefix=window.location.origin+On(f==null?void 0:f.prefix,cR));const v=new URLSearchParams;v.set("params",btoa(encodeURIComponent(JSON.stringify(g)))),v.set("appPid",f==null?void 0:f.appPid),v.set("locale",l);const b=Fqe(On(s||"/",qi,`/connect?${v.toString()}`));try{const A=await Uqe({popup:b,closeTimeout:2e3});return Bc(c)&&c({...A,encrypted:!1}),{...A,encrypted:!1}}catch(A){throw A.message==="Popup closed"?Bc(d)&&d():Bc(p)&&p(A),A}}),r=_t((...o)=>{var s;(s=e.current)==null||s.close(...o)}),i=nn(()=>q.jsx(sYe,{ref:e})),a=nn(()=>({open:t,close:r,openPopup:n}));return{connectHolder:i,connectApi:a}}const ei={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")},mc={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:"通行证和会话已经更新"}},"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 lx={exports:{}};const uYe="2.0.0",vQ=256,cYe=Number.MAX_SAFE_INTEGER||9007199254740991,fYe=16,dYe=vQ-6,pYe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var KE={MAX_LENGTH:vQ,MAX_SAFE_COMPONENT_LENGTH:fYe,MAX_SAFE_BUILD_LENGTH:dYe,MAX_SAFE_INTEGER:cYe,RELEASE_TYPES:pYe,SEMVER_SPEC_VERSION:uYe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},XS={};const hYe=typeof Qt=="object"&&XS&&XS.NODE_DEBUG&&/\bsemver\b/i.test(XS.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var YE=hYe;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=KE,a=YE;t=e.exports={};const o=t.re=[],s=t.safeRe=[],l=t.src=[],f=t.t={};let c=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",i],[d,r]],g=b=>{for(const[R,A]of p)b=b.split(`${R}*`).join(`${R}{0,${A}}`).split(`${R}+`).join(`${R}{1,${A}}`);return b},v=(b,R,A)=>{const $=g(R),D=c++;a(b,D,R),f[b]=D,l[D]=R,o[D]=new RegExp(R,A?"g":void 0),s[D]=new RegExp($,A?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),v("MAINVERSION",`(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${l[f.NUMERICIDENTIFIER]}|${l[f.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${l[f.NUMERICIDENTIFIERLOOSE]}|${l[f.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${l[f.PRERELEASEIDENTIFIER]}(?:\\.${l[f.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${l[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[f.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${d}+`),v("BUILD",`(?:\\+(${l[f.BUILDIDENTIFIER]}(?:\\.${l[f.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${l[f.MAINVERSION]}${l[f.PRERELEASE]}?${l[f.BUILD]}?`),v("FULL",`^${l[f.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${l[f.MAINVERSIONLOOSE]}${l[f.PRERELEASELOOSE]}?${l[f.BUILD]}?`),v("LOOSE",`^${l[f.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${l[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${l[f.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:${l[f.PRERELEASE]})?${l[f.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:${l[f.PRERELEASELOOSE]})?${l[f.BUILD]}?)?)?`),v("XRANGE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAINLOOSE]}$`),v("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),v("COERCERTL",l[f.COERCE],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${l[f.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${l[f.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${l[f.LONECARET]}${l[f.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${l[f.LONECARET]}${l[f.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${l[f.GTLT]}\\s*(${l[f.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]}|${l[f.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${l[f.XRANGEPLAIN]})\\s+-\\s+(${l[f.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${l[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[f.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(lx,lx.exports);var Mm=lx.exports;const mYe=Object.freeze({loose:!0}),gYe=Object.freeze({}),yYe=e=>e?typeof e!="object"?mYe:e:gYe;var t$=yYe;const zF=/^[0-9]+$/,bQ=(e,t)=>{const n=zF.test(e),r=zF.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},vYe=(e,t)=>bQ(t,e);var EQ={compareIdentifiers:bQ,rcompareIdentifiers:vYe};const Fy=YE,{MAX_LENGTH:KF,MAX_SAFE_INTEGER:Uy}=KE,{safeRe:YF,t:ZF}=Mm,bYe=t$,{compareIdentifiers:sd}=EQ;let EYe=class Ts{constructor(t,n){if(n=bYe(n),t instanceof Ts){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>KF)throw new TypeError(`version is longer than ${KF} characters`);Fy("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?YF[ZF.LOOSE]:YF[ZF.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>Uy||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Uy||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Uy||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<Uy)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(Fy("SemVer.compare",this.version,this.options,t),!(t instanceof Ts)){if(typeof t=="string"&&t===this.version)return 0;t=new Ts(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof Ts||(t=new Ts(t,this.options)),sd(this.major,t.major)||sd(this.minor,t.minor)||sd(this.patch,t.patch)}comparePre(t){if(t instanceof Ts||(t=new Ts(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(Fy("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 sd(r,i)}while(++n)}compareBuild(t){t instanceof Ts||(t=new Ts(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(Fy("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 sd(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]),sd(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 aa=EYe;const XF=aa,TYe=(e,t,n=!1)=>{if(e instanceof XF)return e;try{return new XF(e,t)}catch(r){if(!n)return null;throw r}};var hh=TYe;const AYe=hh,wYe=(e,t)=>{const n=AYe(e,t);return n?n.version:null};var SYe=wYe;const _Ye=hh,xYe=(e,t)=>{const n=_Ye(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var CYe=xYe;const QF=aa,RYe=(e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new QF(e instanceof QF?e.version:e,n).inc(t,r,i).version}catch{return null}};var $Ye=RYe;const eU=hh,IYe=(e,t)=>{const n=eU(e,null,!0),r=eU(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 c=l?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};var kYe=IYe;const DYe=aa,OYe=(e,t)=>new DYe(e,t).major;var LYe=OYe;const PYe=aa,MYe=(e,t)=>new PYe(e,t).minor;var BYe=MYe;const NYe=aa,FYe=(e,t)=>new NYe(e,t).patch;var UYe=FYe;const HYe=hh,jYe=(e,t)=>{const n=HYe(e,t);return n&&n.prerelease.length?n.prerelease:null};var JYe=jYe;const tU=aa,VYe=(e,t,n)=>new tU(e,n).compare(new tU(t,n));var ps=VYe;const qYe=ps,GYe=(e,t,n)=>qYe(t,e,n);var WYe=GYe;const zYe=ps,KYe=(e,t)=>zYe(e,t,!0);var YYe=KYe;const nU=aa,ZYe=(e,t,n)=>{const r=new nU(e,n),i=new nU(t,n);return r.compare(i)||r.compareBuild(i)};var n$=ZYe;const XYe=n$,QYe=(e,t)=>e.sort((n,r)=>XYe(n,r,t));var eZe=QYe;const tZe=n$,nZe=(e,t)=>e.sort((n,r)=>tZe(r,n,t));var rZe=nZe;const iZe=ps,aZe=(e,t,n)=>iZe(e,t,n)>0;var ZE=aZe;const oZe=ps,sZe=(e,t,n)=>oZe(e,t,n)<0;var r$=sZe;const lZe=ps,uZe=(e,t,n)=>lZe(e,t,n)===0;var TQ=uZe;const cZe=ps,fZe=(e,t,n)=>cZe(e,t,n)!==0;var AQ=fZe;const dZe=ps,pZe=(e,t,n)=>dZe(e,t,n)>=0;var i$=pZe;const hZe=ps,mZe=(e,t,n)=>hZe(e,t,n)<=0;var a$=mZe;const gZe=TQ,yZe=AQ,vZe=ZE,bZe=i$,EZe=r$,TZe=a$,AZe=(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 gZe(e,n,r);case"!=":return yZe(e,n,r);case">":return vZe(e,n,r);case">=":return bZe(e,n,r);case"<":return EZe(e,n,r);case"<=":return TZe(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var wQ=AZe;const wZe=aa,SZe=hh,{safeRe:Hy,t:jy}=Mm,_Ze=(e,t)=>{if(e instanceof wZe)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(Hy[jy.COERCE]);else{let r;for(;(r=Hy[jy.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),Hy[jy.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;Hy[jy.COERCERTL].lastIndex=-1}return n===null?null:SZe(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var xZe=_Ze,QS,rU;function CZe(){return rU||(rU=1,QS=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),QS}var RZe=qn;qn.Node=hf;qn.create=qn;function qn(e){var t=this;if(t instanceof qn||(t=new qn),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}qn.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t};qn.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};qn.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};qn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)IZe(this,arguments[e]);return this.length};qn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)kZe(this,arguments[e]);return this.length};qn.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};qn.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};qn.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;n!==null;r++)e.call(t,n.value,r,this),n=n.next};qn.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;n!==null;r--)e.call(t,n.value,r,this),n=n.prev};qn.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value};qn.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value};qn.prototype.map=function(e,t){t=t||this;for(var n=new qn,r=this.head;r!==null;)n.push(e.call(t,r.value,this)),r=r.next;return n};qn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new qn,r=this.tail;r!==null;)n.push(e.call(t,r.value,this)),r=r.prev;return n};qn.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;r!==null;i++)n=e(n,r.value,i),r=r.next;return n};qn.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;r!==null;i--)n=e(n,r.value,i),r=r.prev;return n};qn.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e};qn.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e};qn.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new qn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,i=this.head;i!==null&&r<e;r++)i=i.next;for(;i!==null&&r<t;r++,i=i.next)n.push(i.value);return n};qn.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new qn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,i=this.tail;i!==null&&r>t;r--)i=i.prev;for(;i!==null&&r>e;r--,i=i.prev)n.push(i.value);return n};qn.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,i=this.head;i!==null&&r<e;r++)i=i.next;for(var a=[],r=0;i&&r<t;r++)a.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var r=0;r<n.length;r++)i=$Ze(this,i,n[r]);return a};qn.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};function $Ze(e,t,n){var r=t===e.head?new hf(n,null,t,e):new hf(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function IZe(e,t){e.tail=new hf(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function kZe(e,t){e.head=new hf(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function hf(e,t,n,r){if(!(this instanceof hf))return new hf(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{CZe()(qn)}catch{}const DZe=RZe,Rc=Symbol("max"),vl=Symbol("length"),ld=Symbol("lengthCalculator"),W0=Symbol("allowStale"),Hc=Symbol("maxAge"),gl=Symbol("dispose"),iU=Symbol("noDisposeOnSet"),ci=Symbol("lruList"),Ko=Symbol("cache"),SQ=Symbol("updateAgeOnGet"),e_=()=>1;class OZe{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Rc]=t.max||1/0;const n=t.length||e_;if(this[ld]=typeof n!="function"?e_:n,this[W0]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Hc]=t.maxAge||0,this[gl]=t.dispose,this[iU]=t.noDisposeOnSet||!1,this[SQ]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Rc]=t||1/0,s0(this)}get max(){return this[Rc]}set allowStale(t){this[W0]=!!t}get allowStale(){return this[W0]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Hc]=t,s0(this)}get maxAge(){return this[Hc]}set lengthCalculator(t){typeof t!="function"&&(t=e_),t!==this[ld]&&(this[ld]=t,this[vl]=0,this[ci].forEach(n=>{n.length=this[ld](n.value,n.key),this[vl]+=n.length})),s0(this)}get lengthCalculator(){return this[ld]}get length(){return this[vl]}get itemCount(){return this[ci].length}rforEach(t,n){n=n||this;for(let r=this[ci].tail;r!==null;){const i=r.prev;aU(this,t,r,n),r=i}}forEach(t,n){n=n||this;for(let r=this[ci].head;r!==null;){const i=r.next;aU(this,t,r,n),r=i}}keys(){return this[ci].toArray().map(t=>t.key)}values(){return this[ci].toArray().map(t=>t.value)}reset(){this[gl]&&this[ci]&&this[ci].length&&this[ci].forEach(t=>this[gl](t.key,t.value)),this[Ko]=new Map,this[ci]=new DZe,this[vl]=0}dump(){return this[ci].map(t=>h2(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[ci]}set(t,n,r){if(r=r||this[Hc],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const i=r?Date.now():0,a=this[ld](n,t);if(this[Ko].has(t)){if(a>this[Rc])return Xd(this,this[Ko].get(t)),!1;const l=this[Ko].get(t).value;return this[gl]&&(this[iU]||this[gl](t,l.value)),l.now=i,l.maxAge=r,l.value=n,this[vl]+=a-l.length,l.length=a,this.get(t),s0(this),!0}const o=new LZe(t,n,a,i,r);return o.length>this[Rc]?(this[gl]&&this[gl](t,n),!1):(this[vl]+=o.length,this[ci].unshift(o),this[Ko].set(t,this[ci].head),s0(this),!0)}has(t){if(!this[Ko].has(t))return!1;const n=this[Ko].get(t).value;return!h2(this,n)}get(t){return t_(this,t,!0)}peek(t){return t_(this,t,!1)}pop(){const t=this[ci].tail;return t?(Xd(this,t),t.value):null}del(t){Xd(this,this[Ko].get(t))}load(t){this.reset();const n=Date.now();for(let r=t.length-1;r>=0;r--){const i=t[r],a=i.e||0;if(a===0)this.set(i.k,i.v);else{const o=a-n;o>0&&this.set(i.k,i.v,o)}}}prune(){this[Ko].forEach((t,n)=>t_(this,n,!1))}}const t_=(e,t,n)=>{const r=e[Ko].get(t);if(r){const i=r.value;if(h2(e,i)){if(Xd(e,r),!e[W0])return}else n&&(e[SQ]&&(r.value.now=Date.now()),e[ci].unshiftNode(r));return i.value}},h2=(e,t)=>{if(!t||!t.maxAge&&!e[Hc])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Hc]&&n>e[Hc]},s0=e=>{if(e[vl]>e[Rc])for(let t=e[ci].tail;e[vl]>e[Rc]&&t!==null;){const n=t.prev;Xd(e,t),t=n}},Xd=(e,t)=>{if(t){const n=t.value;e[gl]&&e[gl](n.key,n.value),e[vl]-=n.length,e[Ko].delete(n.key),e[ci].removeNode(t)}};class LZe{constructor(t,n,r,i,a){this.key=t,this.value=n,this.length=r,this.now=i,this.maxAge=a||0}}const aU=(e,t,n,r)=>{let i=n.value;h2(e,i)&&(Xd(e,n),e[W0]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var PZe=OZe,n_,oU;function hs(){if(oU)return n_;oU=1;class e{constructor(u,h){if(h=r(h),u instanceof e)return u.loose===!!h.loose&&u.includePrerelease===!!h.includePrerelease?u:new e(u.raw,h);if(u instanceof i)return this.raw=u.value,this.set=[[u]],this.format(),this;if(this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease,this.raw=u.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(E=>this.parseRange(E.trim())).filter(E=>E.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const E=this.set[0];if(this.set=this.set.filter(S=>!v(S[0])),this.set.length===0)this.set=[E];else if(this.set.length>1){for(const S of this.set)if(S.length===1&&b(S[0])){this.set=[S];break}}}this.format()}format(){return this.range=this.set.map(u=>u.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(u){const E=((this.options.includePrerelease&&p)|(this.options.loose&&g))+":"+u,S=n.get(E);if(S)return S;const C=this.options.loose,I=C?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];u=u.replace(I,Q(this.options.includePrerelease)),a("hyphen replace",u),u=u.replace(s[l.COMPARATORTRIM],f),a("comparator trim",u),u=u.replace(s[l.TILDETRIM],c),a("tilde trim",u),u=u.replace(s[l.CARETTRIM],d),a("caret trim",u);let x=u.split(" ").map(re=>A(re,this.options)).join(" ").split(/\s+/).map(re=>fe(re,this.options));C&&(x=x.filter(re=>(a("loose invalid filter",re,this.options),!!re.match(s[l.COMPARATORLOOSE])))),a("range list",x);const _=new Map,y=x.map(re=>new i(re,this.options));for(const re of y){if(v(re))return[re];_.set(re.value,re)}_.size>1&&_.has("")&&_.delete("");const k=[..._.values()];return n.set(E,k),k}intersects(u,h){if(!(u instanceof e))throw new TypeError("a Range is required");return this.set.some(E=>R(E,h)&&u.set.some(S=>R(S,h)&&E.every(C=>S.every(I=>C.intersects(I,h)))))}test(u){if(!u)return!1;if(typeof u=="string")try{u=new o(u,this.options)}catch{return!1}for(let h=0;h<this.set.length;h++)if(L(this.set[h],u,this.options))return!0;return!1}}n_=e;const t=PZe,n=new t({max:1e3}),r=t$,i=XE(),a=YE,o=aa,{safeRe:s,t:l,comparatorTrimReplace:f,tildeTrimReplace:c,caretTrimReplace:d}=Mm,{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:g}=KE,v=T=>T.value==="<0.0.0-0",b=T=>T.value==="",R=(T,u)=>{let h=!0;const E=T.slice();let S=E.pop();for(;h&&E.length;)h=E.every(C=>S.intersects(C,u)),S=E.pop();return h},A=(T,u)=>(a("comp",T,u),T=F(T,u),a("caret",T),T=D(T,u),a("tildes",T),T=V(T,u),a("xrange",T),T=ie(T,u),a("stars",T),T),$=T=>!T||T.toLowerCase()==="x"||T==="*",D=(T,u)=>T.trim().split(/\s+/).map(h=>M(h,u)).join(" "),M=(T,u)=>{const h=u.loose?s[l.TILDELOOSE]:s[l.TILDE];return T.replace(h,(E,S,C,I,x)=>{a("tilde",T,E,S,C,I,x);let _;return $(S)?_="":$(C)?_=`>=${S}.0.0 <${+S+1}.0.0-0`:$(I)?_=`>=${S}.${C}.0 <${S}.${+C+1}.0-0`:x?(a("replaceTilde pr",x),_=`>=${S}.${C}.${I}-${x} <${S}.${+C+1}.0-0`):_=`>=${S}.${C}.${I} <${S}.${+C+1}.0-0`,a("tilde return",_),_})},F=(T,u)=>T.trim().split(/\s+/).map(h=>U(h,u)).join(" "),U=(T,u)=>{a("caret",T,u);const h=u.loose?s[l.CARETLOOSE]:s[l.CARET],E=u.includePrerelease?"-0":"";return T.replace(h,(S,C,I,x,_)=>{a("caret",T,S,C,I,x,_);let y;return $(C)?y="":$(I)?y=`>=${C}.0.0${E} <${+C+1}.0.0-0`:$(x)?C==="0"?y=`>=${C}.${I}.0${E} <${C}.${+I+1}.0-0`:y=`>=${C}.${I}.0${E} <${+C+1}.0.0-0`:_?(a("replaceCaret pr",_),C==="0"?I==="0"?y=`>=${C}.${I}.${x}-${_} <${C}.${I}.${+x+1}-0`:y=`>=${C}.${I}.${x}-${_} <${C}.${+I+1}.0-0`:y=`>=${C}.${I}.${x}-${_} <${+C+1}.0.0-0`):(a("no pr"),C==="0"?I==="0"?y=`>=${C}.${I}.${x}${E} <${C}.${I}.${+x+1}-0`:y=`>=${C}.${I}.${x}${E} <${C}.${+I+1}.0-0`:y=`>=${C}.${I}.${x} <${+C+1}.0.0-0`),a("caret return",y),y})},V=(T,u)=>(a("replaceXRanges",T,u),T.split(/\s+/).map(h=>Z(h,u)).join(" ")),Z=(T,u)=>{T=T.trim();const h=u.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return T.replace(h,(E,S,C,I,x,_)=>{a("xRange",T,E,S,C,I,x,_);const y=$(C),k=y||$(I),re=k||$(x),N=re;return S==="="&&N&&(S=""),_=u.includePrerelease?"-0":"",y?S===">"||S==="<"?E="<0.0.0-0":E="*":S&&N?(k&&(I=0),x=0,S===">"?(S=">=",k?(C=+C+1,I=0,x=0):(I=+I+1,x=0)):S==="<="&&(S="<",k?C=+C+1:I=+I+1),S==="<"&&(_="-0"),E=`${S+C}.${I}.${x}${_}`):k?E=`>=${C}.0.0${_} <${+C+1}.0.0-0`:re&&(E=`>=${C}.${I}.0${_} <${C}.${+I+1}.0-0`),a("xRange return",E),E})},ie=(T,u)=>(a("replaceStars",T,u),T.trim().replace(s[l.STAR],"")),fe=(T,u)=>(a("replaceGTE0",T,u),T.trim().replace(s[u.includePrerelease?l.GTE0PRE:l.GTE0],"")),Q=T=>(u,h,E,S,C,I,x,_,y,k,re,N,X)=>($(E)?h="":$(S)?h=`>=${E}.0.0${T?"-0":""}`:$(C)?h=`>=${E}.${S}.0${T?"-0":""}`:I?h=`>=${h}`:h=`>=${h}${T?"-0":""}`,$(y)?_="":$(k)?_=`<${+y+1}.0.0-0`:$(re)?_=`<${y}.${+k+1}.0-0`:N?_=`<=${y}.${k}.${re}-${N}`:T?_=`<${y}.${k}.${+re+1}-0`:_=`<=${_}`,`${h} ${_}`.trim()),L=(T,u,h)=>{for(let E=0;E<T.length;E++)if(!T[E].test(u))return!1;if(u.prerelease.length&&!h.includePrerelease){for(let E=0;E<T.length;E++)if(a(T[E].semver),T[E].semver!==i.ANY&&T[E].semver.prerelease.length>0){const S=T[E].semver;if(S.major===u.major&&S.minor===u.minor&&S.patch===u.patch)return!0}return!1}return!0};return n_}var r_,sU;function XE(){if(sU)return r_;sU=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,d){if(d=n(d),c instanceof t){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),o("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(c){const d=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],p=c.match(d);if(!p)throw new TypeError(`Invalid comparator: ${c}`);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(c){if(o("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new s(c,this.options)}catch{return!1}return a(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new l(this.value,d).test(c.semver):(d=n(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||a(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||a(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}r_=t;const n=t$,{safeRe:r,t:i}=Mm,a=wQ,o=YE,s=aa,l=hs();return r_}const MZe=hs(),BZe=(e,t,n)=>{try{t=new MZe(t,n)}catch{return!1}return t.test(e)};var QE=BZe;const NZe=hs(),FZe=(e,t)=>new NZe(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var UZe=FZe;const HZe=aa,jZe=hs(),JZe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new jZe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===-1)&&(r=o,i=new HZe(r,n))}),r};var VZe=JZe;const qZe=aa,GZe=hs(),WZe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new GZe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===1)&&(r=o,i=new qZe(r,n))}),r};var zZe=WZe;const i_=aa,KZe=hs(),lU=ZE,YZe=(e,t)=>{e=new KZe(e,t);let n=new i_("0.0.0");if(e.test(n)||(n=new i_("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 i_(o.semver.version);switch(o.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!a||lU(s,a))&&(a=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),a&&(!n||lU(n,a))&&(n=a)}return n&&e.test(n)?n:null};var ZZe=YZe;const XZe=hs(),QZe=(e,t)=>{try{return new XZe(e,t).range||"*"}catch{return null}};var eXe=QZe;const tXe=aa,_Q=XE(),{ANY:nXe}=_Q,rXe=hs(),iXe=QE,uU=ZE,cU=r$,aXe=a$,oXe=i$,sXe=(e,t,n,r)=>{e=new tXe(e,r),t=new rXe(t,r);let i,a,o,s,l;switch(n){case">":i=uU,a=aXe,o=cU,s=">",l=">=";break;case"<":i=cU,a=oXe,o=uU,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(iXe(e,t,r))return!1;for(let f=0;f<t.set.length;++f){const c=t.set[f];let d=null,p=null;if(c.forEach(g=>{g.semver===nXe&&(g=new _Q(">=0.0.0")),d=d||g,p=p||g,i(g.semver,d.semver,r)?d=g:o(g.semver,p.semver,r)&&(p=g)}),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 o$=sXe;const lXe=o$,uXe=(e,t,n)=>lXe(e,t,">",n);var cXe=uXe;const fXe=o$,dXe=(e,t,n)=>fXe(e,t,"<",n);var pXe=dXe;const fU=hs(),hXe=(e,t,n)=>(e=new fU(e,n),t=new fU(t,n),e.intersects(t,n));var mXe=hXe;const gXe=QE,yXe=ps;var vXe=(e,t,n)=>{const r=[];let i=null,a=null;const o=e.sort((c,d)=>yXe(c,d,n));for(const c of o)gXe(c,t,n)?(a=c,i||(i=c)):(a&&r.push([i,a]),a=null,i=null);i&&r.push([i,null]);const s=[];for(const[c,d]of r)c===d?s.push(c):!d&&c===o[0]?s.push("*"):d?c===o[0]?s.push(`<=${d}`):s.push(`${c} - ${d}`):s.push(`>=${c}`);const l=s.join(" || "),f=typeof t.raw=="string"?t.raw:String(t);return l.length<f.length?l:t};const dU=hs(),s$=XE(),{ANY:a_}=s$,l0=QE,l$=ps,bXe=(e,t,n={})=>{if(e===t)return!0;e=new dU(e,n),t=new dU(t,n);let r=!1;e:for(const i of e.set){for(const a of t.set){const o=TXe(i,a,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},EXe=[new s$(">=0.0.0-0")],pU=[new s$(">=0.0.0")],TXe=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===a_){if(t.length===1&&t[0].semver===a_)return!0;n.includePrerelease?e=EXe:e=pU}if(t.length===1&&t[0].semver===a_){if(n.includePrerelease)return!0;t=pU}const r=new Set;let i,a;for(const g of e)g.operator===">"||g.operator===">="?i=hU(i,g,n):g.operator==="<"||g.operator==="<="?a=mU(a,g,n):r.add(g.semver);if(r.size>1)return null;let o;if(i&&a){if(o=l$(i.semver,a.semver,n),o>0)return null;if(o===0&&(i.operator!==">="||a.operator!=="<="))return null}for(const g of r){if(i&&!l0(g,String(i),n)||a&&!l0(g,String(a),n))return null;for(const v of t)if(!l0(g,String(v),n))return!1;return!0}let s,l,f,c,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 g of t){if(c=c||g.operator===">"||g.operator===">=",f=f||g.operator==="<"||g.operator==="<=",i){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator===">"||g.operator===">="){if(s=hU(i,g,n),s===g&&s!==i)return!1}else if(i.operator===">="&&!l0(i.semver,String(g),n))return!1}if(a){if(d&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===d.major&&g.semver.minor===d.minor&&g.semver.patch===d.patch&&(d=!1),g.operator==="<"||g.operator==="<="){if(l=mU(a,g,n),l===g&&l!==a)return!1}else if(a.operator==="<="&&!l0(a.semver,String(g),n))return!1}if(!g.operator&&(a||i)&&o!==0)return!1}return!(i&&f&&!a&&o!==0||a&&c&&!i&&o!==0||p||d)},hU=(e,t,n)=>{if(!e)return t;const r=l$(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},mU=(e,t,n)=>{if(!e)return t;const r=l$(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};var AXe=bXe;const o_=Mm,gU=KE,wXe=aa,yU=EQ,SXe=hh,_Xe=SYe,xXe=CYe,CXe=$Ye,RXe=kYe,$Xe=LYe,IXe=BYe,kXe=UYe,DXe=JYe,OXe=ps,LXe=WYe,PXe=YYe,MXe=n$,BXe=eZe,NXe=rZe,FXe=ZE,UXe=r$,HXe=TQ,jXe=AQ,JXe=i$,VXe=a$,qXe=wQ,GXe=xZe,WXe=XE(),zXe=hs(),KXe=QE,YXe=UZe,ZXe=VZe,XXe=zZe,QXe=ZZe,eQe=eXe,tQe=o$,nQe=cXe,rQe=pXe,iQe=mXe,aQe=vXe,oQe=AXe;var xQ={parse:SXe,valid:_Xe,clean:xXe,inc:CXe,diff:RXe,major:$Xe,minor:IXe,patch:kXe,prerelease:DXe,compare:OXe,rcompare:LXe,compareLoose:PXe,compareBuild:MXe,sort:BXe,rsort:NXe,gt:FXe,lt:UXe,eq:HXe,neq:jXe,gte:JXe,lte:VXe,cmp:qXe,coerce:GXe,Comparator:WXe,Range:zXe,satisfies:KXe,toComparators:YXe,maxSatisfying:ZXe,minSatisfying:XXe,minVersion:QXe,validRange:eQe,outside:tQe,gtr:nQe,ltr:rQe,intersects:iQe,simplifyRange:aQe,subset:oQe,SemVer:wXe,re:o_.re,src:o_.src,tokens:o_.t,SEMVER_SPEC_VERSION:gU.SEMVER_SPEC_VERSION,RELEASE_TYPES:gU.RELEASE_TYPES,compareIdentifiers:yU.compareIdentifiers,rcompareIdentifiers:yU.rcompareIdentifiers};const vU=Ft(xQ);async function CQ(...e){return new Promise((t,n)=>{sn(()=>import("./index-8IYt6Tm_.js").then(r=>r.i),__vite__mapDeps([])).then(r=>{r.call||(r=r.default),r.call(...e,i=>{try{const a=JSON.parse(i);if(a.code===0){const o=JSON.parse(a.data);t(o)}else n(new Error(a.error))}catch{t(i)}})}).catch(r=>{console.error("load dsbridge error",r)})})}const sQe=[`${qi}/connect`,`${qi}/login`,`${qi}/invite`,`${qi}/issue-passport`];async function lQe(){const e=(window==null?void 0:window.blocklet)||{},t=window.location.pathname,{componentId:n,CHAIN_TYPE:r="arcblock",appPid:i}=e;if(sQe.includes(t))return null;const a=MX();try{const o=`${window.location.origin}${qi}/api/user/loginByWallet`;return await CQ("arcLogin",{target:o,chainType:r,appPid:i,componentId:n,apps:a.map(l=>{let f=l==null?void 0:l.appLogo;return Xb(f)||(f=On(l.appUrl,f)),{appName:l.appName,appPid:l.appPid,appUrl:l.appUrl,appLogo:f,sourceAppPid:l.sourceAppPid}})})}catch(o){return console.error(o),null}}async function uQe(){return await CQ("arcGetVisitorId")}function cQe({platform:e,version:t}={}){return!!(e==="ios"&&t&&vU.gte(t,"4.15.6")||e==="android"&&t&&vU.gte(t,"4.15.1"))}const{Provider:fQe,Consumer:bU}=ph,EU={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"};function dQe(e=oVe,t="ls",n={},r={}){var f;let i="/";(f=globalThis==null?void 0:globalThis.blocklet)!=null&&f.prefix&&(i=globalThis.blocklet.prefix),typeof r=="boolean"&&(r={appendAuthServicePrefix:r,extraParams:{}}),kDe(r,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:sVe});const a=wM(e,t,n),o=wM(r.refreshTokenStorageKey,"ls");function s(c){var Me,He;const{connectApi:d,connectHolder:p}=lYe(),g=_m(),v=ki({extraParams:{},options:{},currentLocale:c.locale,allowWallet:void 0,openMode:"window",get autoConnect(){return typeof c.autoConnect=="boolean"?c.autoConnect:!!c.autoLogin},get prefix(){return r.appendAuthServicePrefix||c.appendAuthServicePrefix?On(qi,c.prefix):c.prefix}}),b=ki({action:c.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:"",get locale(){return c.locale||v.currentLocale||pX()}}),{confirmApi:R,confirmHolder:A}=OPe(),$=nn(()=>new ODe,[]),D=_t((xe,ke,Je)=>{const De={login:[ei.LOGIN,ei.CANCEL_LOGIN],"bind-wallet":[ei.BIND_WALLET,ei.CANCEL_BIND_WALLET],"switch-passport":[ei.SWITCH_PASSPORT,ei.CANCEL_SWITCH_PASSPORT],"switch-profile":[ei.SWITCH_PROFILE,ei.CANCEL_SWITCH_PROFILE],"switch-did":[ei.LOGIN,ei.CANCEL_LOGIN]};if(!Object.keys(De).includes(xe))return;const G=async(...B)=>{Bc(ke)&&await ke(...B),$.emit(xe,...B)};$.once(De[xe][0],G),$.once(De[xe][1],async(...B)=>{Bc(G)&&$.off(De[xe][0],G),Bc(Je)&&await Je(...B),$.emit(`cancel-${xe}`,...B)})}),M=fK(b.initialized,(xe,ke)=>xe!==ke||xe===!0&&ke===!0),{handleRefreshUser:F,handleRefreshToken:U,renewToken:V,clearSession:Z,handleLoginResult:ie,decrypt:fe,service:Q,getSessionToken:L,getRefreshToken:T,setRefreshToken:u,setSessionToken:h}=xqe({state:b,pageState:v,sessionTokenStorage:a,refreshTokenStorage:o,serviceHost:c.serviceHost,apiOptions:c.apiOptions,lazyRefreshToken:c.lazyRefreshToken}),E=_t((xe,ke={},Je={})=>{const De=xe;typeof De=="object"&&(xe=De.onSuccess,ke=De.extraParams||{},Je=De.options||{},Je.origin=De.origin||""),(!b.user||Je.origin==="switch-did")&&(Je.origin==="switch-did"?D("switch-did",xe,De==null?void 0:De.onCancel):D("login",xe,De==null?void 0:De.onCancel),v.extraParams=ke,v.options=Je,b.action="login",Se())}),S=_t(async(xe,ke={},Je={})=>{var Te;const De=xe;typeof De=="object"&&(xe=De.onSuccess,ke=De.extraParams||{},Je=De.options||{});const{params:G}=gF();if(ca(ke==null?void 0:ke.forceConnected)&&(G!=null&&G.forceConnected)&&(ke.forceConnected=G.forceConnected,ca(Je.showQuickConnect)&&(Je.showQuickConnect=!1)),ca(ke==null?void 0:ke.sourceAppPid)&&(G!=null&&G.sourceAppPid)&&(ke.sourceAppPid=G.sourceAppPid),(ke==null?void 0:ke.openMode)==="redirect"){const Ae=(ke==null?void 0:ke.redirect)||"/",_e=new URL(`${qi}/login`,window.location.origin);_e.searchParams.set("redirect",Ae),ke!=null&&ke.forceConnected&&_e.searchParams.set("forceConnected",ke==null?void 0:ke.forceConnected),Je!=null&&Je.origin&&_e.searchParams.set("origin",Je.origin),window.location.href=_e.href;return}let B=ke==null?void 0:ke.sourceAppPid;ca(B)&&z&&(B=te.appPid),await Nz(()=>b.initialized),typeof Je=="string"&&(Je={origin:Je});const H=Rl(ke);v.allowWallet=void 0;const se=(H==null?void 0:H.openMode)||((Te=c==null?void 0:c.extraParams)==null?void 0:Te.openMode);ca(se)?v.openMode="window":v.openMode=se,B?(b.baseUrl=globalThis.blocklet.appUrl,E(xe,H,Je)):(b.baseUrl="",E(xe,H,Je))}),C=uf(),I=_t(async xe=>{const ke=On(qi,"/api/user/logout");await fetch(ke,{method:"POST",body:JSON.stringify({visitorId:C}),headers:{"Content-Type":"application/json"}}),Z(),he(),b.user=null,b.provider="",b.walletOS="",b.error="",b.loading=!1,$.emit("logout"),typeof xe=="function"&&xe()}),{userSessions:x,refresh:_,loaded:y,loginUserSession:k}=gQ({appPid:WK(b.user),loginAppPid:(Me=globalThis==null?void 0:globalThis.blocklet)==null?void 0:Me.appPid,sourceAppPid:(He=b==null?void 0:b.user)==null?void 0:He.sourceAppPid,autoFetch:!1}),re=_t((xe,ke={},Je={})=>{const De=xe;typeof De=="object"&&(xe=De.onSuccess,ke=De.extraParams||{},Je=De.options||{}),typeof Je=="string"&&(Je={origin:Je}),Je!=null&&Je.userSession?k(Je.userSession).then(G=>{a2({connected_did:Je.userSession.user.did,connected_pk:Je.userSession.user.pk,connected_wallet_os:Je.userSession.extra.walletOS,connected_app:P1()},!0),D("switch-did",xe),ie({...G,encrypted:!1}),F(!0).then(()=>{$.emit(ei.LOGIN,G,fe)})}):(ca(ke==null?void 0:ke.forceConnected)&&(ke.forceConnected=!1),S(xe,ke,{...Je,origin:"switch-did"}))}),N=_t((xe,ke={})=>{const Je=xe;typeof Je=="object"&&(xe=Je.onSuccess,ke=Je.extraParams||{}),b.user&&(D("switch-profile",xe,Je==null?void 0:Je.onCancel),v.extraParams=ke,v.options={},b.action="switch-profile",Se())}),X=_t((xe,ke={})=>{const Je=xe;typeof Je=="object"&&(xe=Je.onSuccess,ke=Je.extraParams||{}),b.user&&(D("switch-passport",xe,Je==null?void 0:Je.onCancel),v.extraParams=ke,v.options={},b.action="switch-passport",Se())}),ne=_t((xe,ke={})=>{const Je=xe;typeof Je=="object"&&(xe=Je.onSuccess),b.user&&(D("bind-wallet",xe,Je==null?void 0:Je.onCancel),v.extraParams=ke,v.options={},b.action="bind-wallet",Se())}),le=_t(xe=>{v.extraParams={},v.options={},ie(xe),b.loading=!1,F(!0).then(()=>{b.action==="login"?$.emit(ei.LOGIN,xe,fe):b.action==="switch-passport"&&$.emit(ei.SWITCH_PASSPORT,xe,fe)})}),me=_t(xe=>{v.extraParams={},v.options={},ie(xe),b.loading=!1,F(!0).then(()=>{$.emit(ei.BIND_WALLET,xe,fe)})}),we=_t(xe=>{v.extraParams={},v.options={},b.loading=!1,F(!0).then(()=>{$.emit(ei.SWITCH_PROFILE,xe,fe)})}),j=_t(xe=>{v.extraParams={},v.options={},he();const ke={login:ei.CANCEL_LOGIN,"switch-profile":ei.CANCEL_SWITCH_PROFILE,"switch-passport":ei.CANCEL_SWITCH_PASSPORT,"bind-wallet":ei.CANCEL_BIND_WALLET};$.emit(ke[xe])}),P=_t((xe,...ke)=>{try{Ve[xe](...ke)}catch(Je){console.error("Catch error in onSuccess",{action:xe,args:ke,err:Je})}}),{federatedMaster:K,federatedEnabled:z,master:te}=Aqe({locale:b.locale,decrypt:fe,login:E,logout:I,handleLoginResult:ie,handleRefreshUser:F,setRefreshToken:u,setSessionToken:h}),{checkMatch:ye}=Nqe({protectedRoutes:c.protectedRoutes||[]}),pe=dE(x),ae=_t(async()=>(y||(await _(),await Lm()),pe.current)),he=_t(()=>{b.open=!1,d.close()}),Se=async()=>{var B,H,se,Te,Ae,_e,We;let xe=b.action;((B=v==null?void 0:v.options)==null?void 0:B.origin)==="switch-did"&&(xe=(H=v==null?void 0:v.options)==null?void 0:H.origin);const ke=mc[xe],Je=ke[b.locale]||ke.en,De={...r.extraParams,...c.extraParams,...v.extraParams,previousUserDid:(se=b==null?void 0:b.user)==null?void 0:se.did,email:(Te=b==null?void 0:b.user)==null?void 0:Te.email};if(xe==="switch-did"&&(De!=null&&De.forceConnected)){const Be=(je,ft={})=>Zp(mc["switch-specified-did"],je,b.locale,"en",ft);Je.title=Be("title"),Je.scan=Be("scan",{did:De.forceConnected}),Je.confirm=Be("confirm"),Je.success=Be("success")}De==null||delete De.openMode;const G={action:b.action,locale:b.locale,extraParams:De,options:{...c.options||{},...v.options},checkTimeout:c.timeout,webWalletUrl:c.webWalletUrl,messages:Je,useSocket:c.useSocket,...E6(c,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...oE(v.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:v.prefix,allowWallet:ca(v.allowWallet)?b.action!=="login"||(((Ae=globalThis.blocklet)==null?void 0:Ae.DID_CONNECT_ALLOW_WALLET)||"1")==="1":v.allowWallet,onSuccess(...Be){P(b.action,...Be),setTimeout(()=>{b.open=!1},2e3)},onClose(...Be){j(b.action,...Be)},onError(Be){console.error(Be)}};if(b.open=!0,["login"].includes(b.action)&&v.openMode==="window"&&!g.wallet)try{const Be={...G,baseUrl:window.location.origin};Xb(v.prefix)||(Be.prefix=On(window.location.origin,c.serviceHost==="/"?"":c.serviceHost,v.prefix)),(_e=Be.extraParams)!=null&&_e.provider||(Be.extraParams.provider=((We=b==null?void 0:b.user)==null?void 0:We.provider)||"wallet"),await d.openPopup(Be,{locale:b.locale})}catch(Be){Be.message==="Timeout"?Ci.error(EU[b.locale]||EU.en):console.error(Be)}else d.open(G)},be=()=>{const{params:xe,url:ke}=gF();if(xe){const{switchBehavior:Je,forceConnected:De,sourceAppPid:G,showClose:B}=xe;De===b.user.did?window.history.replaceState(null,"trim",ke):Je==="required"?re(()=>{},{openMode:"redirect",redirect:ke,sourceAppPid:G,forceConnected:De}):Je==="disabled"?window.history.replaceState(null,"trim",ke):setTimeout(()=>{R.open({title:mc.switchAccountDialog[b.locale].title,content:q.jsxs(q.Fragment,{children:[q.jsx(Cr,{variant:"body1",sx:{textAlign:"center",mb:2},children:mc.switchAccountDialog[b.locale].description}),q.jsxs(yt,{sx:{display:"flex",alignItems:"center",color:St.foregroundsFgBase},children:[q.jsxs(yt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1},children:[q.jsx(Fl,{did:b.user.did,shape:"circle",variant:"circle",size:80}),q.jsx(yp,{did:b.user.did,showAvatar:!1,compact:!0,responsive:!1}),mc.switchAccountDialog[b.locale].currentAccount]}),q.jsx(yt,{sx:{display:"flex",justifyContent:"center",px:2},children:q.jsx(yt,{component:Vn,icon:mPe,fontSize:24,color:St.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(yt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1,fontWeight:500},children:[q.jsx(Fl,{did:De,shape:"circle",variant:"circle",size:80}),q.jsx(yp,{did:De,showAvatar:!1,compact:!0,responsive:!1}),mc.switchAccountDialog[b.locale].nextAccount]})]})]}),showCloseButton:B,showCancelButton:!1,confirmButtonText:mc.switchAccountDialog[b.locale].confirm,onConfirm(H){H(),re(()=>{window.location.replace(ke)},{sourceAppPid:G,forceConnected:De},{showQuickConnect:!1})}})},1e3)}},Ne={api:Q,events:$,storage:a,connectApi:d,session:{...b,loading:v.autoConnect&&!b.user||b.loading,login:S,logout:I,switchDid:re,autoSwitchDid:be,switchProfile:N,switchPassport:X,bindWallet:ne,refresh:F,updateConnectedInfo:a2,federatedMaster:K,useOAuth:wR,OAuthProvider:l2,OAuthConsumer:iqe,OAuthContext:AR,useDid:IX,WrapDid:OX,getUserSessions:ae}},Ve={login:le,"switch-profile":we,"switch-passport":le,"bind-wallet":me};return cf(()=>{if(b.initialized){const xe=!M;$.emit("change",{user:Rl(b.user),isFirst:xe})}},[b.user,b.initialized,$]),cf(()=>{b.initialized&&b.user&&be()},[b.initialized]),Am(async()=>{const xe=Mr.get("connected_app"),ke=P1();if(c.autoDisconnect&&xe&&ke&&xe!==ke){Z(),b.initialized=!0,v.autoConnect?Se():he();return}const Je=L();let De="web";if(g.mobile.apple.device?De="ios":g.mobile.android.device&&(De="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&g.wallet&&cQe({version:g.walletVersion,platform:De})){if(!C){const B=await uQe();BW(B)}if(!Je)try{b.loading=!0;const B=await lQe();if(B){b.initialized=!0,le({sessionToken:B.sessionToken,refreshToken:B.refreshToken,encrypted:!1});return}}finally{b.loading=!1}}if(Je){await F(!0),b.initialized=!0;return}if(typeof window<"u"){const B=new URL(window.location.href),H=B.searchParams.get("loginToken");if(H){ie({loginToken:H,encrypted:!1}),B.searchParams.delete("loginToken"),window.history.replaceState({},window.title,B.href);return}}if(T()){await U(!0),b.initialized=!0;return}try{}catch(B){console.error("Federated: tryAutoLogin failed",B)}finally{b.initialized=!0}v.autoConnect?Se():he()}),ye()&&!b.initialized?q.jsx(cp,{children:q.jsx(om,{})}):q.jsx(fQe,{value:Ne,children:q.jsxs(l2,{locale:b.locale,onSwitchPassport:({sessionToken:xe,refreshToken:ke})=>{le({sessionToken:xe,refreshToken:ke,encrypted:!1})},onBindOAuth:()=>{F()},children:[!b.open&&typeof c.children=="function"?c.children(b):c.children,p,A,r.rolling&&q.jsx(hX,{callback:()=>V()})]})})}s.propTypes={children:ge.any.isRequired,serviceHost:ge.string,action:ge.string,prefix:ge.string,appendAuthServicePrefix:ge.bool,locale:ge.string,timeout:ge.number,autoConnect:ge.bool,autoDisconnect:ge.bool,useSocket:ge.bool,extraParams:ge.object,options:ge.object,webWalletUrl:ge.string,protectedRoutes:ge.arrayOf(ge.string),apiOptions:ge.object,lazyRefreshToken:ge.bool},s.defaultProps={serviceHost:i,locale:"",action:"login",prefix:cR,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:aX*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function l(c){return function(p){return q.jsx(U3,{children:q.jsx(bU,{children:g=>q.jsx(c,{...p,...g})})})}}return{SessionProvider:c=>q.jsx(U3,{children:q.jsx(s,{...c})}),SessionConsumer:bU,SessionContext:ph,withSession:l}}let RQ="/";window.env&&(RQ=window.env.groupPathPrefix||window.env.pathPrefix||"/");function $Q(e,t){return[void 0,null,""].includes(e)?t:e/86400}var ij,aj,oj;const pQe=$Q((oj=(aj=(ij=window.blocklet)==null?void 0:ij.settings)==null?void 0:aj.session)==null?void 0:oj.cacheTtl,1/144);var sj,lj,uj;const hQe=$Q((uj=(lj=(sj=window.blocklet)==null?void 0:sj.settings)==null?void 0:lj.session)==null?void 0:uj.ttl,7),{SessionProvider:mQe,SessionContext:gQe,SessionConsumer:Agt,withSession:wgt}=dQe("login_token","cookie",{returnDomain:!1,path:RQ,expireInDays:pQe},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays:hQe});function IQ(){return W.useContext(gQe)}function yQe({children:e}){const t=rG({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return q.jsx(Y7,{injectFirst:!0,children:q.jsx(nG,{theme:t,children:q.jsx(vq,{theme:t,children:q.jsx(j8,{translations:ICe,fallbackLocale:"en",children:q.jsx(U3,{children:q.jsx(c$,{theme:t,children:e})})})})})})}const u$=new URL(window.location.href),kQ=u$.searchParams.get("mode")||"",vQe=u$.pathname.includes("embed")&&kQ==="dialog",bQe=u$.pathname.includes("embed")&&kQ!=="dialog";function c$({children:e,theme:t}){var i,a,o;const{locale:n}=Qb(),r=Vl`
|
|
489
|
+
`),()=>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=Rs.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=p2.request(e,this.endpointURL(),t,n,this.timeout,o,s=>{this.reqs.delete(a),this.isActive()&&i(s)}),this.reqs.add(a)}},E0=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=E0.syncState(this.state,r,i,a),this.pendingDiffs.forEach(s=>{this.state=E0.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=E0.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 E0.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 f=i[s];if(f){let c=l.metas.map(v=>v.phx_ref),d=f.metas.map(v=>v.phx_ref),p=l.metas.filter(v=>d.indexOf(v.phx_ref)<0),g=f.metas.filter(v=>c.indexOf(v.phx_ref)<0);p.length>0&&(a[s]=l,a[s].metas=p),g.length>0&&(o[s]=this.clone(f),o[s].metas=g)}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 f=e[o].metas.map(d=>d.phx_ref),c=l.metas.filter(d=>f.indexOf(d.phx_ref)<0);e[o].metas.unshift(...c)}n(o,l,s)}),this.map(a,(o,s)=>{let l=e[o];if(!l)return;let f=s.metas.map(c=>c.phx_ref);l.metas=l.metas.filter(c=>f.indexOf(c.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))}},T0={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),f=0;l.setUint8(f++,this.KINDS.push),l.setUint8(f++,t.length),l.setUint8(f++,n.length),l.setUint8(f++,i.length),l.setUint8(f++,r.length),Array.from(t,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(i,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(f++,d.charCodeAt(0)));var c=new Uint8Array(s.byteLength+a.byteLength);return c.set(new Uint8Array(s),0),c.set(new Uint8Array(a),s.byteLength),c.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 f=n.decode(e.slice(o,o+a));o=o+a;let c=e.slice(o,e.byteLength);return{join_ref:s,ref:null,topic:l,event:f,payload:c}},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 f=n.decode(e.slice(s,s+i));s=s+i;let c=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),g={status:d,response:p};return{join_ref:l,ref:f,topic:c,event:ml.reply,payload:g}},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}}},xze=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=n.timeout||wze,this.transport=n.transport||G0.WebSocket||Wv,this.establishedConnections=0,this.defaultEncoder=T0.encode.bind(T0),this.defaultDecoder=T0.decode.bind(T0),this.closeWasClean=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Wv?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;b0&&b0.addEventListener&&(b0.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),b0.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=q0(n.params||{}),this.endPoint=`${t}/${ax.websocket}`,this.vsn=n.vsn||Aze,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new cQ(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Wv}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=p2.appendParams(p2.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=q0(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(),Sze,"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===Rs.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(ml.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Rs.connecting:return"connecting";case Rs.open:return"open";case Rs.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 fQ(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 f=this.channels[l];f.isMember(r,i,a,s)&&f.trigger(i,a,o,s)}for(let l=0;l<this.stateChangeCallbacks.message.length;l++){let[,f]=this.stateChangeCallbacks.message[l];f(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())}},ox={exports:{}},GS,NF;function Cze(){if(NF)return GS;NF=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;GS=function(c,d){d=d||{};var p=typeof c;if(p==="string"&&c.length>0)return o(c);if(p==="number"&&isFinite(c))return d.long?l(c):s(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function o(c){if(c=String(c),!(c.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(c);if(d){var p=parseFloat(d[1]),g=(d[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return p*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(c){var d=Math.abs(c);return d>=r?Math.round(c/r)+"d":d>=n?Math.round(c/n)+"h":d>=t?Math.round(c/t)+"m":d>=e?Math.round(c/e)+"s":c+"ms"}function l(c){var d=Math.abs(c);return d>=r?f(c,d,r,"day"):d>=n?f(c,d,n,"hour"):d>=t?f(c,d,t,"minute"):d>=e?f(c,d,e,"second"):c+" ms"}function f(c,d,p,g){var v=d>=p*1.5;return Math.round(c/p)+" "+g+(v?"s":"")}return GS}function Rze(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=o,n.humanize=Cze(),n.destroy=f,Object.keys(e).forEach(c=>{n[c]=e[c]}),n.names=[],n.skips=[],n.formatters={};function t(c){let d=0;for(let p=0;p<c.length;p++)d=(d<<5)-d+c.charCodeAt(p),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(c){let d,p=null,g,v;function b(...R){if(!b.enabled)return;const A=b,$=Number(new Date),D=$-(d||$);A.diff=D,A.prev=d,A.curr=$,d=$,R[0]=n.coerce(R[0]),typeof R[0]!="string"&&R.unshift("%O");let M=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,(U,V)=>{if(U==="%%")return"%";M++;const Z=n.formatters[V];if(typeof Z=="function"){const ie=R[M];U=Z.call(A,ie),R.splice(M,1),M--}return U}),n.formatArgs.call(A,R),(A.log||n.log).apply(A,R)}return b.namespace=c,b.useColors=n.useColors(),b.color=n.selectColor(c),b.extend=r,b.destroy=n.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(g!==n.namespaces&&(g=n.namespaces,v=n.enabled(c)),v),set:R=>{p=R}}),typeof n.init=="function"&&n.init(b),b}function r(c,d){const p=n(this.namespace+(typeof d>"u"?":":d)+c);return p.log=this.log,p}function i(c){n.save(c),n.namespaces=c,n.names=[],n.skips=[];let d;const p=(typeof c=="string"?c:"").split(/[\s,]+/),g=p.length;for(d=0;d<g;d++)p[d]&&(c=p[d].replace(/\*/g,".*?"),c[0]==="-"?n.skips.push(new RegExp("^"+c.slice(1)+"$")):n.names.push(new RegExp("^"+c+"$")))}function a(){const c=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let d,p;for(d=0,p=n.skips.length;d<p;d++)if(n.skips[d].test(c))return!1;for(d=0,p=n.names.length;d<p;d++)if(n.names[d].test(c))return!0;return!1}function s(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function l(c){return c instanceof Error?c.stack||c.message:c}function f(){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 $ze=Rze;(function(e,t){var n={};t.formatArgs=i,t.save=a,t.load=o,t.useColors=r,t.storage=s(),t.destroy=(()=>{let f=!1;return()=>{f||(f=!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(f){if(f[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+f[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;f.splice(1,0,c,"color: inherit");let d=0,p=0;f[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(d++,g==="%c"&&(p=d))}),f.splice(p,0,c)}t.log=console.debug||console.log||(()=>{});function a(f){try{f?t.storage.setItem("debug",f):t.storage.removeItem("debug")}catch{}}function o(){let f;try{f=t.storage.getItem("debug")}catch{}return!f&&typeof Qt<"u"&&"env"in Qt&&(f=n.DEBUG),f}function s(){try{return localStorage}catch{}}e.exports=$ze(t);const{formatters:l}=e.exports;l.j=function(f){try{return JSON.stringify(f)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(ox,ox.exports);var VR=ox.exports;const Ize=VR;var kze=(e,t=!1)=>{const n=Ize(["@arcblock/ws",e].join(":"));return{debug:n,warn:n,info:n,trace:t?n:console.error,error:t?n:console.error}};const Dze=kze;var Oze=(e,t,n)=>class extends e{constructor(i,a={}){super(i,{transport:n,...a}),this._logger=Dze("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:f})=>{l==="ok"?this.emitter.emit(i,f):this._logger.debug("response error",{topic:i,status:l,data:f})})}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 Lze=lQ,{Socket:Pze}=Eze,Mze=Oze;var Bze=Mze(Pze,Lze);const Nze=Bze;var qR={WsClient:Nze};function Fze(e){const t=W.useRef(e);W.useEffect(()=>{t.current=e},[e]),W.useEffect(()=>{const n=r=>{!document.hidden&&t.current&&t.current(r)};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)}},[])}function Uze(e){const t=e||window.location.href;return new URL(t).host}function A0(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 WS={};function Hze({action:e,prefix:t,checkFn:n,extraParams:r,baseUrl:i}){const a=`${t}/token?${y0(r)}`;return WS[a]||(WS[a]=async function(){var d,p;const s=+new Date,l=await n(a,{headers:A0(i)}),f=+new Date;if(f-s<500&&await Lm(500-(f-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 c=Xb(t)?t:`${i}${t}`;throw new Error(`Error generating ${e} qrcode from: ${c}`)}),WS[a]}const jze=()=>{try{const t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;const n=dVe(t);return{token:pVe(n),url:n}}catch(e){return{error:e}}},dQ=()=>Fs(globalThis,"blocklet.appPid")||Fs(globalThis,"blocklet.appId")||Fs(globalThis,"env.appId")||"",Jze=()=>(Fs(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(oX,""),zS=e=>`relay:${dQ()}:${e}`,Vze=()=>window.location.protocol==="https:"?"wss:":"ws:",FF=e=>!e||new URL(e).origin===window.location.origin,UF=e=>["succeed","error","timeout","busy"].includes(e);function qze({action:e,checkFn:t,checkInterval:n,checkTimeout:r,extraParams:i,locale:a,prefix:o,tokenKey:s,encKey:l,onError:f,onSuccess:c,baseUrl:d,autoConnect:p=!0,forceConnected:g=!0,saveConnect:v=!0,useSocket:b=!0,provider:R="wallet"}){const A=ki({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:MF(i,BF),checkFn:t,results:{},action:e,provider:R}),$=B1[a]||B1.en,D=nn(()=>jze(),[]),M=Math.ceil(r/n),F=ki({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:U,decrypt:V}=uGe(),Z=_m(),ie=uf(),fe=_t((..._)=>{const y={[l]:U,...A.extraParams,locale:a,forceConnected:g,autoConnect:p&&!Z.wallet&&!F.cancelWhenScannedCounter&&["ios","android"].includes(Mr.get("connected_wallet_os")),provider:A.provider};return ie&&(y.visitorId=ie),Hze({action:e,prefix:A.prefix,baseUrl:A.baseUrl,checkFn:A.checkFn,extraParams:y})(..._)}),Q=()=>{F.cancelWhenScannedCounter++};W.useEffect(()=>{F.cancelWhenScannedCounter>0&&(i.nw?f(new Error($.retryForbidden)):S())},[F.cancelWhenScannedCounter]);const L=W.useRef(null),T=W.useRef(null);W.useEffect(()=>(b&&FF(A.baseUrl)&&dQ()?(!L.current||L.current.isConnected()===!1||L.current.baseUrl!==A.baseUrl)&&(L.current=new qR.WsClient(`${Vze()}//${Uze(A.baseUrl)}${Jze()}${oX}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),L.current.baseUrl=A.baseUrl,L.current.onOpen(()=>{F.isSocketAvailable=!0}),L.current.connect()):F.isSocketAvailable&&(F.isSocketAvailable=!1),()=>{L.current&&(L.current.disconnect(),L.current=null)}),[A.baseUrl]);const u={...A.extraParams,locale:a,[s]:A.token||(D==null?void 0:D.token),provider:A.provider},h=()=>!A.token||A.loading||UF(A.status)?null:n,E=async()=>{try{u[s]&&A.status==="created"&&await A.checkFn(`${A.prefix}/timeout?${y0(u)}`,{headers:A0(A.baseUrl)})}catch{}try{A.token&&T.current&&(await L.current.unsubscribe(zS(A.token)),T.current=null)}catch{}},S=_t(async(_=!0)=>{_&&E();try{A.loading=!0,A.token="",A.url="",A.store=null,A.extraParams=MF(i,BF),await Lm();const y=await fe(),k=y.extra||{};A.loading=!1,A.token=y.token,A.url=y.url,A.status="created",A.error="",A.checkCount=0,A.appInfo=y.appInfo,A.memberAppInfo=y.memberAppInfo,A.connectedDid=k.connectedDid,A.saveConnect=k.saveConnect}catch(y){A.loading=!1,A.status="error",A.error=`${$.generateError}: ${y.message}`}}),C=W.useRef(null);W.useEffect(()=>{C.current={state:A,params:u}}),W.useEffect(()=>()=>{const{state:_,params:y}=C.current;_.status==="created"&&y[s]&&_.checkFn(`${_.prefix}/timeout?${y0(y)}`,{headers:A0(_.baseUrl)})},[]);const I=async()=>{try{if(D.error)throw D.error;A.loading=!0,A.token=D.token,A.url=D.url,A.inExistingSession=!0;const _=await x();if(_!=null&&_.status&&(_==null?void 0:_.status)!=="created")throw new Error(`${$.invalidSessionStatus} [${_.status}]`)}catch(_){A.status="error",A.error=_.message,f(_,A==null?void 0:A.store,V)}finally{A.loading=!1}};W.useEffect(()=>{if(!A.token&&!A.store&&!A.loading&&!A.error)if(D)I();else{S(!1);return}if(A.status!=="timeout"&&A.checkCount>M){A.status="timeout",E();return}if(A.status==="succeed"&&!F.onSuccessCalled){const _=cX({...A.store,appInfo:A.appInfo,memberAppInfo:A.memberAppInfo});if(FF(A.baseUrl)&&v&&A.saveConnect&&A.store.did&&a2(_,!0),A.store){const{nextWorkflow:y}=A.store;if(y)try{const k=hVe(y,s);A.nextWorkflow=(k==null?void 0:k.nextWorkflow)||y,Object.assign(A,k),A.store=null,A.error="",A.url="",A.appInfo=null,A.memberAppInfo=null,A.checkCount=0,A.status="scanned",A.results={...A.results,[A.token]:A.store},A.checkFn=Yl({baseURL:k.baseUrl,timeout:8e3}).get,x()}catch(k){console.error(`Invalid nextWorkflow: ${y}`,k),A.status="error",A.error=`Invalid nextWorkflow: ${y}: ${k.message}`}else if(A.nextWorkflow&&(A.nextWorkflow="",A.url=""),typeof c=="function"){const k=Object.values({...A.results,[A.token]:A.store});F.onSuccessCalled=!0;const re=k.length>1?k:k[0],N=Rl(re);c(N,V,{sourceAppPid:i==null?void 0:i.sourceAppPid,..._})}}}}),W.useEffect(()=>{if(A.token&&F.isSocketAvailable&&L.current){let _=!1;T.current?T.current.token!==A.token&&(L.current.unsubscribe(zS(T.current.token)),_=!0):_=!0,_&&(T.current=L.current.subscribe(zS(A.token)),T.current.token=A.token,T.current.on("updated",({response:y})=>{let{status:k,error:re}=y;k==="forbidden"&&(re=$.forbidden,k="error"),A.status=k,A.mfaCode=y.mfaCode||0,A.store=y,A.error=re}))}},[A.token,F.isSocketAvailable,L.current]);const x=async(_=!1)=>{var y;if(A.checking||(A.status==="created"&&A.checkCount++,F.isSocketAvailable&&!_))return null;try{A.checking=!0;const k=await A.checkFn(`${A.prefix}/status?${y0(u)}`,{headers:A0(A.baseUrl)}),{status:re,error:N,mfaCode:X=0}=k.data;if(A.store=k.data,A.mfaCode=X,A.checking=!1,A.status=re,re==="error"&&N){const ne=new Error(N);throw ne.response=k,ne}return k.data}catch(k){const{response:re}=k;if(re!=null&&re.status){u[s]&&A.checkFn(`${A.prefix}/timeout?${y0(u)}`,{headers:A0(A.baseUrl)});const N=(y=re==null?void 0:re.data)!=null&&y.error?re.data.error:k.message,X=new Error(N);X.code=re.status,A.status="error",A.checking=!1,A.error=N,f(X,A==null?void 0:A.store,V)}else A.status="error",A.checking=!1,A.error=$.generateError}return null};return dze(x,h()),Fze(()=>{F.isSocketAvailable&&A.token&&UF(A.status)===!1&&x(!0)}),{state:A,generate:S,cancelWhenScanned:Q}}function GR({tokenState:e,locale:t,tokenKey:n}){const{t:r,isWalletWebview:i,connectState:a}=Xs(),o=r("openInWallet"),s=nn(()=>{if(!e.url)return"";const c=new URL(window.location.href);c.searchParams.set("tokenKey",e.token);const d=new URL(e.url);return d.searchParams.set("callback",encodeURIComponent(c)),d.searchParams.set("callback_delay",1500),d.searchParams.set("locale",t),d.href.replace(/^https?:\/\//,"abt://")},[n,e.token]),l=_t(()=>{sn(()=>import("./index-VcmnR0mp.js").then(c=>c.i),__vite__mapDeps([])).then(c=>{c.call||(c=c.default),c.call("authAction",{action:"auth",deepLink:s})}).catch(c=>{console.error("load dsbridge error",c)})}),f={};return i||(f.component="a",f.href=s),Am(()=>{a.autoActiveWebview&&s&&(a.autoActiveWebview=!1,l())}),q.jsxs(Zl,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:St.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...f,onClick:i?l:Bn,children:[q.jsxs(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[q.jsx(Cp,{width:"24px",height:"24px"}),q.jsx(Cr,{sx:{fontSize:"14px",fontWeight:500},children:o})]}),q.jsx(Vn,{icon:qE,fontSize:"1.3rem",color:St.primaryBase})]})}GR.propTypes={tokenState:ge.object.isRequired,locale:ge.string,tokenKey:ge.string};GR.defaultProps={locale:"en",tokenKey:"_t_"};const Gze={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 pQ({onRefresh:e,...t}){const n=r=>{r.stopPropagation(),e()};return q.jsx(yt,{...t,onClick:n,sx:{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(0, 0, 0, 0.1)",cursor:"pointer",...t.sx},children:q.jsx(yt,{sx:{backgroundColor:St.foregroundsFgInteractive,borderRadius:"100%",fontSize:0},children:q.jsx(Vn,{icon:Gze,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})})})}pQ.propTypes={onRefresh:ge.func.isRequired};const By=["scanned","succeed","error","busy"];function WR({onSuccess:e,onError:t,action:n,prefix:r,checkFn:i,checkInterval:a,checkTimeout:o,locale:s,tokenKey:l,encKey:f,baseUrl:c,autoConnect:d,forceConnected:p,saveConnect:g,useSocket:v,allowWallet:b,provider:R,webWalletUrl:A,onRecreateSession:$,onClose:D,messages:M,enabledConnectTypes:F}){var te,ye,pe;if(typeof i!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const U=W.useContext(ph),{connectState:V,extraParams:Z,staticState:ie,changeStatus:fe,isWalletWebview:Q,matchSmallScreen:L,t:T}=Xs(),u=_m(),h=nn(()=>{var ae;return R||(Z==null?void 0:Z.provider)||((ae=U==null?void 0:U.session)==null?void 0:ae.provider)||"wallet"},[Z==null?void 0:Z.provider,(te=U==null?void 0:U.session)==null?void 0:te.provider]);W.useEffect(()=>{I(c)},[c]);const{state:E,generate:S,cancelWhenScanned:C}=qze({action:n,baseUrl:c,checkFn:i,checkInterval:a,checkTimeout:o,extraParams:Z,prefix:r,onError:t,onSuccess:e,locale:s,tokenKey:l,encKey:f,autoConnect:d,forceConnected:p,saveConnect:g,useSocket:v,allowWallet:b,provider:h}),{setBaseUrl:I,oauthConfigList:x,oauthState:_}=wR({defaultStatus:E.status}),y=fK(V==null?void 0:V.sourceAppPid);cf(()=>{ca(y)||S()},[V==null?void 0:V.sourceAppPid]);const k=nn(()=>By.includes(_.status)||By.includes(E.status),[E.status,_.status]);W.useEffect(()=>{By.includes(_.status)?fe(_.status):By.includes(E.status)?fe(E.status):fe("created")},[fe,E.status,_.status]);const re=_t(()=>{$(),_.reset(),E.inExistingSession||S(!1)}),N=_t(()=>{$(),E.inExistingSession||(ie.current.cancelCount++,C())}),X=nn(()=>({confirm:M.confirm,success:M.success,error:E.error||_.error||""}),[M.confirm,M.success,E.error,_.error]),ne=nn(()=>b&&F.includes("mobile")&&!Q,[b,F,Q]),le=lX(A),me=nn(()=>b&&F.includes("web")&&(le||Zb())&&!u.mobile.any,[b,F,(ye=u==null?void 0:u.mobile)==null?void 0:ye.any]),we=nn(()=>b&&F.includes("mobile")&&u.mobile.any,[b,F,(pe=u==null?void 0:u.mobile)==null?void 0:pe.any]),j=nn(()=>{const ae=XGe(["auth0","apple","github","google"],F);return x.filter(he=>ae.includes(he.provider))},[x,F]),P=nn(()=>j.length>0&&["login","invite"].includes(E.action),[j]),K=nn(()=>{const ae=ne||me||we;let he=null;return P&&(he=ae?q.jsxs(q.Fragment,{children:[q.jsx(R8,{sx:{color:St.textMuted,width:L?"200px":"368px",opacity:.6,maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:St.lineStep}},children:"OR"}),q.jsx(d2,{providerList:j,onSuccess:e,onError:t,tokenState:E,locale:s,type:"list"})]}):q.jsxs(q.Fragment,{children:[q.jsx(Cr,{variant:"body2",sx:{mt:1,textAlign:"center",color:St.foregroundsFgSubtile},children:T("loginWithBelow")}),q.jsx(d2,{providerList:j,onSuccess:e,onError:t,tokenState:E,type:"list",locale:s})]})),q.jsxs(q.Fragment,{children:[E.status==="timeout"?q.jsx(pQ,{onRefresh:re,sx:{zIndex:1,animation:"fadeIn 1s","@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}}}}):null,q.jsx(yt,{"data-did-auth-url":E.url,sx:{display:"none"}}),we&&q.jsx(GR,{tokenState:E,locale:s,tokenKey:l}),ne&&q.jsx(UR,{tokenState:E,messages:M,locale:s}),me&&q.jsx(NR,{tokenState:E,webWalletUrl:A,locale:s}),he]})},[E.url,E.status,ne,me,we]);return nn(()=>E.loading||_.loading||!E.token&&!E.error,[E.loading,_.loading])?q.jsx($R,{}):k?q.jsxs(q.Fragment,{children:[q.jsx(yt,{"data-did-auth-url":E.url,sx:{display:"none"}}),q.jsx(GE,{status:_.status||E.status,nextWorkflow:E.nextWorkflow,mfaCode:E.mfaCode,onCancel:N,onRetry:re,onClose:D,messages:X,locale:s,className:"auth-status"})]}):K}WR.propTypes={onError:ge.func,onSuccess:ge.func.isRequired,action:ge.string.isRequired,checkFn:ge.func.isRequired,prefix:ge.string,checkInterval:ge.number,checkTimeout:ge.number,locale:ge.oneOf(["en","zh",""]),tokenKey:ge.string,encKey:ge.string,baseUrl:ge.string,autoConnect:ge.bool,forceConnected:ge.oneOfType([ge.bool,ge.string]),saveConnect:ge.bool,useSocket:ge.bool,allowWallet:ge.bool,provider:ge.oneOf(["wallet","auth0",""]),webWalletUrl:ge.string,onRecreateSession:ge.func,onClose:ge.func,messages:ge.object,enabledConnectTypes:ge.arrayOf(ge.oneOf(["web","mobile","github","apple","google","auth0"]))};WR.defaultProps={prefix:cR,onError:Bn,checkInterval:2*1e3,checkTimeout:aX*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:sX(),onRecreateSession:Bn,onClose:Bn,messages:{},enabledConnectTypes:["web","mobile","github","apple","google","auth0"]};var KS=Tz,Wze=JW,zze=uC,Kze=1/0,Yze=KS&&1/zze(new KS([,-0]))[1]==Kze?function(e){return new KS(e)}:Wze,Zze=Yze,Xze=sC,Qze=zX,eKe=KX,tKe=lC,nKe=Zze,rKe=uC,iKe=200;function aKe(e,t,n){var r=-1,i=Qze,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=eKe;else if(a>=iKe){var f=t?null:nKe(e);if(f)return rKe(f);o=!1,i=tKe,l=new Xze}else l=t?[]:s;e:for(;++r<a;){var c=e[r],d=t?t(c):c;if(c=n||c!==0?c:0,o&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}var hQ=aKe,oKe=rC,sKe=WE,lKe=bm,uKe=hQ,HF=K8,cKe=aE,fKe=lKe(function(e){var t=cKe(e);return HF(t)&&(t=void 0),uKe(oKe(e,1,HF,!0),sKe(t))}),dKe=fKe;const pKe=Ft(dKe);var hKe=QW,mKe=Em;function gKe(e,t){return e&&hKe(e,t,mKe)}var yKe=gKe,vKe=Af;function bKe(e,t){return function(n,r){if(n==null)return n;if(!vKe(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 EKe=bKe,TKe=yKe,AKe=EKe,wKe=AKe(TKe),SKe=wKe,_Ke=SKe,xKe=Af;function CKe(e,t){var n=-1,r=xKe(e)?Array(e.length):[];return _Ke(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var RKe=CKe;function $Ke(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var IKe=$Ke,jF=cm;function kKe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=jF(e),o=t!==void 0,s=t===null,l=t===t,f=jF(t);if(!s&&!f&&!a&&e>t||a&&o&&l&&!s&&!f||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!f&&e<t||f&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var DKe=kKe,OKe=DKe;function LKe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=OKe(i[r],a[r]);if(l){if(r>=s)return l;var f=n[r];return l*(f=="desc"?-1:1)}}return e.index-t.index}var PKe=LKe,YS=zp,MKe=dm,BKe=WE,NKe=RKe,FKe=IKe,UKe=ym,HKe=PKe,jKe=iE,JKe=wa;function VKe(e,t,n){t.length?t=YS(t,function(a){return JKe(a)?function(o){return MKe(o,a.length===1?a[0]:a)}:a}):t=[jKe];var r=-1;t=YS(t,UKe(BKe));var i=NKe(e,function(a,o,s){var l=YS(t,function(f){return f(a)});return{criteria:l,index:++r,value:a}});return FKe(i,function(a,o){return HKe(a,o,n)})}var qKe=VKe,GKe=rC,WKe=qKe,zKe=bm,JF=hz,KKe=zKe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&JF(e,t[0],t[1])?t=[]:n>2&&JF(t[0],t[1],t[2])&&(t=[t[0]]),WKe(e,GKe(t,1),[])}),YKe=KKe;const mQ=Ft(YKe),ZKe=On(qi,"/api/user-session");function gQ({appPid:e,sourceAppPid:t,loginAppPid:n,autoFetch:r=!0,baseUrl:i="/"}={}){const a=uf(),o=nn(()=>Yl({baseURL:On(i,ZKe)},{lazy:!0,lazyTime:500}),[i]),s=_t(async()=>{const{data:g}=await o.get("",{params:{visitorId:a,appPid:e}});return g}),l=ki({loaded:!1,loadingId:null}),f=LOe(s,{manual:!r,onFinally(){l.loaded=!0},refreshDeps:[e,i]}),c=async g=>{var b,R,A;const v=oE(g,["userDid","visitorId","passportId"]);try{l.loadingId=g.id;const{data:$}=await o.post("login",{...v,appPid:n});return $}catch($){const D=$.response?((R=(b=$.response)==null?void 0:b.data)==null?void 0:R.error)||((A=$.response)==null?void 0:A.data):$.message;throw Ci.error(D),console.error("Quick login error",$),$}finally{l.loadingId=null}},d=nn(()=>{if(!f.data)return[];const g=new Date().getTime(),v=mQ(f.data,b=>g-new Date(b.updatedAt).getTime());return pKe(v,b=>[b.userDid].join("_"))},[f.data,t,e]),p=nn(()=>!!(d&&d.length>0),[d]);return{loadingId:l.loadingId,userSessions:d,quickLoginEnabled:p,loginUserSession:c,loading:f.loading,loaded:f.loaded,refresh:f.refreshAsync}}const XKe={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"/>'},QKe={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 zR({appInfo:e,...t}){const[n,r]=W.useState(!1);if(n||!(e.appUrl||e.appLogo))return q.jsx(Fl,{did:e.appPid,size:32});let i=e.appLogo||"";return Xb(i)||(i=On(e.appUrl||"",i)),q.jsx(Wd,{src:i,alt:e.appName||"Blocklet Icon",width:32,height:32,...t,onError:()=>r(!0)})}zR.propTypes={appInfo:ge.object.isRequired};const eYe=e=>e?e.split(":").pop():"";function zE({appInfo:e,active:t,appLogo:n}){return q.jsxs(yt,{sx:{display:"flex",alignItems:"center",fontWeight:600,color:St.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:St.textMuted,fontSize:"12px"}},children:[n||q.jsx(yt,{sx:{borderRadius:"8px",overflow:"hidden",fontSize:0},children:q.jsx(zR,{appInfo:e})}),q.jsxs(yt,{className:"app-info-content",children:[q.jsx(yt,{className:"app-info-name",children:e.appName}),e.appPid&&q.jsx(EE,{size:12,className:"app-info-did",copyable:!1,color:St.textMuted,compact:!1,responsive:!1,children:eYe(e.appPid)})]}),t?q.jsx(Gl,{size:"small",color:"success",children:q.jsx(ITe,{icon:QKe,color:"success"})}):null]})}zE.propTypes={appInfo:ge.object.isRequired,active:ge.bool,appLogo:ge.node};zE.defaultProps={active:!1,appLogo:null};function sx({appInfo:e}){const t=W.useRef(null),n=ki({hoverOnButton:!1,hoverOnPopover:!1}),r=nn(()=>n.hoverOnButton||n.hoverOnPopover,[n.hoverOnButton,n.hoverOnPopover]);return q.jsxs(q.Fragment,{children:[q.jsx(yt,{component:"span",ref:t,sx:{color:St.foregroundsFgInteractive,cursor:"help"},onClick:()=>{n.hoverOnButton=!0},onMouseEnter:()=>{n.hoverOnButton=!0},onMouseLeave:()=>{setTimeout(()=>{n.hoverOnButton=!1},200)},children:e.appName}),q.jsx(KG,{open:r,sx:{pointerEvents:"none"},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${St.gray6}, 0px 0px 0px 1px ${St.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(yt,{component:"span",sx:{pointerEvents:"auto"},onMouseEnter:()=>{n.hoverOnPopover=!0},onMouseLeave:()=>{n.hoverOnPopover=!1},children:q.jsx(zE,{appInfo:e,appLogo:q.jsx(zR,{appInfo:e})})})})]})}sx.propTypes={appInfo:ge.object.isRequired};function VF(){const{appInfoList:e,t,extraParams:n,connectState:r}=Xs(),i=W.useRef(null),a=ki({open:!1});return q.jsxs(q.Fragment,{children:[q.jsx(yt,{component:"span",ref:i,sx:{textTransform:"lowercase",color:St.foregroundsFgInteractive,cursor:"pointer"},onClick:()=>{a.open=!0},children:t("switch")}),q.jsx(vAe,{anchorEl:i.current,open:a.open,onClose:()=>{a.open=!1},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${St.gray6}, 0px 0px 0px 1px ${St.gray6}`,borderRadius:2}}},children:e.map(o=>q.jsx(M3,{onClick:()=>{a.open=!1,r.sourceAppPid=o.sourceAppPid},children:q.jsx(zE,{appInfo:o,active:o.sourceAppPid===(n==null?void 0:n.sourceAppPid)})},o.appPid))})]})}function KR({locale:e,disableSwitchApp:t}){const{appInfoList:n,extraParams:r,connectState:i,blocklet:a}=Xs(),o=nn(()=>n.find(f=>Zd.isUndefined(r==null?void 0:r.sourceAppPid)?!0:Zd.isNull(f.sourceAppPid)?f.appPid===(a==null?void 0:a.appPid):f.sourceAppPid===(r==null?void 0:r.sourceAppPid)),[r==null?void 0:r.sourceAppPid,n]),s=!t&&n.length>1;Am(()=>{(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=nn(()=>e==="zh"?q.jsxs(q.Fragment,{children:["您正在使用 ",q.jsx(sx,{appInfo:o,appInfoList:n})," 账户来连接站点",s?q.jsxs(q.Fragment,{children:[",点击",q.jsx(VF,{appInfoList:n})]}):null]}):q.jsxs(q.Fragment,{children:["You're using ",q.jsx(sx,{appInfo:o})," account for site access",s?q.jsxs(q.Fragment,{children:[". Click to ",q.jsx(VF,{appInfoList:n})]}):null]}),[e,o,n,s]);return Zd.isEmpty(n)?null:q.jsxs(yt,{sx:{fontSize:"13px",color:St.foregroundsFgSubtile,lineHeight:1.5},children:[l,s&&q.jsx(yt,{component:"span",sx:{display:"inline-block",ml:.5,fontSize:"13px",height:"16px",lineHeight:1,verticalAlign:"middle"},children:q.jsx(yt,{component:Vn,icon:XKe,sx:{verticalAlign:"middle"}})})]})}KR.propTypes={locale:ge.string,disableSwitchApp:ge.bool};KR.defaultProps={locale:"en",disableSwitchApp:!1};var YR={};Object.defineProperty(YR,"__esModule",{value:!0});var yQ=YR.default=void 0;tYe(W);var ZS=q;function tYe(e){return e&&e.__esModule?e:{default:e}}function qF(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 GF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qF(Object(n),!0).forEach(function(r){nYe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nYe(e,t,n){return t=rYe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rYe(e){var t=iYe(e,"string");return typeof t=="symbol"?t:String(t)}function iYe(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 ZR=function(t){return(0,ZS.jsxs)("svg",GF(GF({},t),{},{children:[(0,ZS.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,ZS.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)"})]}))};ZR.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"};ZR.displayName="did-logo-colorful";yQ=YR.default=ZR;function aYe({...e}){return q.jsxs(yt,{...e,sx:{display:"flex",alignItems:"center",color:St.foregroundsFgMuted,gap:.5,...e.sx},children:[q.jsx(yQ,{}),"Power By DID Connect"]})}function XR({children:e,initHeight:t,slotProps:n}){var s;const[r,i]=W.useState(t),a=W.useRef(null),o=wm(a);return W.useEffect(()=>{o!=null&&o.height&&i(o.height)},[o==null?void 0:o.height,r]),q.jsx(yt,{...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(yt,{...n==null?void 0:n.container,ref:a,children:e})})}XR.propTypes={initHeight:ge.number,children:ge.node.isRequired,slotProps:ge.object};XR.defaultProps={initHeight:0,slotProps:{}};const Ny="did-connect",WF="quick-connect";function QR({mode:e,isFullScreen:t,hideCloseButton:n,...r}){var Q;const i=ki({showTab:Ny}),{connectState:a,blocklet:o}=Xs(),{extraContent:s,onSuccess:l,action:f,onClose:c,options:d}=r,p=nn(()=>(a==null?void 0:a.sourceAppPid)||WK(),[a==null?void 0:a.sourceAppPid]),{quickLoginEnabled:g,loading:v,userSessions:b,loginUserSession:R,refresh:A}=gQ({appPid:p,loginAppPid:o==null?void 0:o.appPid,sourceAppPid:a==null?void 0:a.sourceAppPid,autoFetch:["login"].includes(f)}),$=nn(()=>{var L;return((L=r==null?void 0:r.messages)==null?void 0:L.title)||lVe},[(Q=r==null?void 0:r.messages)==null?void 0:Q.title]),D=_t(async(...L)=>{var E,S,C;const T=await R(...L),[u]=L,h={};u&&((E=u==null?void 0:u.user)!=null&&E.did&&(h.connected_did=u.user.did),(S=u==null?void 0:u.user)!=null&&S.pk&&(h.connected_pk=u.user.pk),(C=u==null?void 0:u.extra)!=null&&C.walletOS&&(h.connected_wallet_os=u.extra.walletOS)),await l({...T,encrypted:!1},I=>I,h)});W.useEffect(()=>{(d==null?void 0:d.showQuickConnect)!==!1&&!v&&g&&(i.showTab=WF)},[v,g,d==null?void 0:d.showQuickConnect]);const M=HOe(v,{wait:100}),F=_t(()=>{i.showTab=Ny}),U=_t(()=>{i.showTab=WF}),V=nn(()=>i.showTab===Ny||!g,[i.showTab,g]),Z=nn(()=>{let L=!0;return(v||M)&&(L=!1),g||(L=!1),d.showQuickConnect===!1&&(L=!1),i.showTab!==Ny&&(L=!1),L},[g,i.showTab,v,M]),ie=nn(()=>q.jsx(yt,{onClick:c,sx:{fontSize:"1.5rem",width:"1.5rem",height:"1.5rem",cursor:"pointer",color:St.foregroundsFgSubtile,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:q.jsx(Vn,{icon:jX})}),[c]);let fe=null;return v||M?fe=q.jsx($R,{}):V?fe=q.jsx(WR,{...r,onClose:c}):fe=q.jsx(BR,{userSessions:b,onLogin:D,onRetry:A,onClose:c,messages:r.messages,onLoginAnother:F}),q.jsxs(dEe,{variant:"outlined",sx:{color:St.foregroundsFgBase,backgroundColor:"white",borderRadius:2,borderColor:St.strokeBorderBase,height:"100%",display:"flex",flexDirection:"column"},children:[q.jsx(LEe,{title:q.jsxs(q.Fragment,{children:[Z&&q.jsx(Gl,{size:"small",disabled:a.status!=="created",onClick:U,disableRipple:!0,sx:{fontSize:"0.75em"},children:q.jsx(Vn,{icon:Hqe,color:St.textMuted})}),$]}),titleTypographyProps:{display:"flex",alignItems:"center",variant:"h6",lineHeight:"28px",fontWeight:600},action:n?null:ie,sx:{px:2.5,".MuiCardHeader-action":{margin:0,alignSelf:"center"}}}),q.jsx(SEe,{sx:{borderTop:`1px solid ${St.strokeBorderBase}`,borderBottom:`1px solid ${St.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(XR,{slotProps:{root:{sx:{display:"inline-block",width:"100%",verticalAlign:"middle"}},container:{sx:{display:"flex",flexDirection:"column",gap:1}}},children:[q.jsx(KR,{locale:r.locale,disableSwitchApp:r.disableSwitchApp}),fe,s?q.jsx(yt,{children:s}):null]})}),q.jsx(vEe,{sx:{py:2,px:2.5,justifyContent:"center"},children:q.jsx(aYe,{sx:{fontSize:"12px"}})})]})}QR.propTypes={action:ge.string.isRequired,onSuccess:ge.func,onClose:ge.func,messages:ge.object,extraContent:ge.any,disableSwitchApp:ge.bool,mode:ge.oneOf(["fullScreen","dialog","normal"]),isFullScreen:ge.bool,options:ge.object,hideCloseButton:ge.bool,locale:ge.string};QR.defaultProps={onSuccess:Bn,onClose:Bn,mode:"normal",isFullScreen:!1,extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!0,locale:"en"};function e$(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(IR,{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(QR,{...e})})}e$.propTypes={checkFn:ge.func.isRequired,extraParams:ge.object,blocklet:ge.object.isRequired,action:ge.string.isRequired,locale:ge.string};e$.defaultProps={extraParams:{},locale:"en"};const oYe=aGe(Jqe(lGe(e$))),sYe=W.forwardRef((e,t)=>{const{api:n}=W.useContext(ph),r={containerEl:null,popup:!0,checkFn:(n==null?void 0:n.get)||Bn,onSuccess:()=>{setTimeout(()=>{f()},2e3)},messages:{title:"DID Connect",scan:"Scan QR code to complete this action",confirm:"Confirm on your DID Wallet",success:"Success!"}},i=ki({show:!1,...Rl(r)}),[a,o]=W.useState({}),s=_t(d=>{const{containerEl:p,checkFn:g,popup:v,onSuccess:b,messages:R,...A}=Rl(d);typeof g=="function"&&(i.checkFn=g),typeof b=="function"&&(i.onSuccess=(...$)=>{b(...$),setTimeout(()=>{f()},2e3)}),v!==void 0&&(i.popup=v),R!==void 0&&(i.messages=R),p!==void 0&&(i.containerEl=p),o(A),i.show=!0}),l=_t(()=>{const d=Rl(r);Object.keys(d).forEach(p=>{i[p]=d[p]})}),f=_t(()=>{i.show=!1,l()});W.useImperativeHandle(t,()=>({open:s,close:f}),[s,f]);const c=q.jsx(oYe,{open:!0,popup:i.popup,messages:i.messages,onClose:f,onSuccess:i.onSuccess,checkFn:i.checkFn,...a});return i.containerEl?W1.createPortal(c,i.containerEl):i.show&&c});function lYe(){const e=W.useRef(null),t=_t((...o)=>{var s;(s=e.current)==null||s.open(...o)}),n=_t(async(o={},{baseUrl:s,locale:l="en",blocklet:f=globalThis==null?void 0:globalThis.blocklet}={})=>{var R;if(ca(s)){const A=Pm(),$=fh();s=A?$.appUrl:window.location.origin}const{onSuccess:c,onClose:d,onError:p,...g}=o;if(!((R=g==null?void 0:g.extraParams)!=null&&R.provider))throw Bc(p)&&p("Must have extraParams.provider"),new Error("Must have extraParams.provider");g!=null&&g.prefix||(g.prefix=window.location.origin+On(f==null?void 0:f.prefix,cR));const v=new URLSearchParams;v.set("params",btoa(encodeURIComponent(JSON.stringify(g)))),v.set("appPid",f==null?void 0:f.appPid),v.set("locale",l);const b=Fqe(On(s||"/",qi,`/connect?${v.toString()}`));try{const A=await Uqe({popup:b,closeTimeout:2e3});return Bc(c)&&c({...A,encrypted:!1}),{...A,encrypted:!1}}catch(A){throw A.message==="Popup closed"?Bc(d)&&d():Bc(p)&&p(A),A}}),r=_t((...o)=>{var s;(s=e.current)==null||s.close(...o)}),i=nn(()=>q.jsx(sYe,{ref:e})),a=nn(()=>({open:t,close:r,openPopup:n}));return{connectHolder:i,connectApi:a}}const ei={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")},mc={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:"通行证和会话已经更新"}},"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 lx={exports:{}};const uYe="2.0.0",vQ=256,cYe=Number.MAX_SAFE_INTEGER||9007199254740991,fYe=16,dYe=vQ-6,pYe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var KE={MAX_LENGTH:vQ,MAX_SAFE_COMPONENT_LENGTH:fYe,MAX_SAFE_BUILD_LENGTH:dYe,MAX_SAFE_INTEGER:cYe,RELEASE_TYPES:pYe,SEMVER_SPEC_VERSION:uYe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},XS={};const hYe=typeof Qt=="object"&&XS&&XS.NODE_DEBUG&&/\bsemver\b/i.test(XS.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var YE=hYe;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=KE,a=YE;t=e.exports={};const o=t.re=[],s=t.safeRe=[],l=t.src=[],f=t.t={};let c=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",i],[d,r]],g=b=>{for(const[R,A]of p)b=b.split(`${R}*`).join(`${R}{0,${A}}`).split(`${R}+`).join(`${R}{1,${A}}`);return b},v=(b,R,A)=>{const $=g(R),D=c++;a(b,D,R),f[b]=D,l[D]=R,o[D]=new RegExp(R,A?"g":void 0),s[D]=new RegExp($,A?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),v("MAINVERSION",`(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${l[f.NUMERICIDENTIFIER]}|${l[f.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${l[f.NUMERICIDENTIFIERLOOSE]}|${l[f.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${l[f.PRERELEASEIDENTIFIER]}(?:\\.${l[f.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${l[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[f.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${d}+`),v("BUILD",`(?:\\+(${l[f.BUILDIDENTIFIER]}(?:\\.${l[f.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${l[f.MAINVERSION]}${l[f.PRERELEASE]}?${l[f.BUILD]}?`),v("FULL",`^${l[f.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${l[f.MAINVERSIONLOOSE]}${l[f.PRERELEASELOOSE]}?${l[f.BUILD]}?`),v("LOOSE",`^${l[f.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${l[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${l[f.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:${l[f.PRERELEASE]})?${l[f.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:${l[f.PRERELEASELOOSE]})?${l[f.BUILD]}?)?)?`),v("XRANGE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAINLOOSE]}$`),v("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),v("COERCERTL",l[f.COERCE],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${l[f.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${l[f.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${l[f.LONECARET]}${l[f.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${l[f.LONECARET]}${l[f.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${l[f.GTLT]}\\s*(${l[f.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]}|${l[f.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${l[f.XRANGEPLAIN]})\\s+-\\s+(${l[f.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${l[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[f.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(lx,lx.exports);var Mm=lx.exports;const mYe=Object.freeze({loose:!0}),gYe=Object.freeze({}),yYe=e=>e?typeof e!="object"?mYe:e:gYe;var t$=yYe;const zF=/^[0-9]+$/,bQ=(e,t)=>{const n=zF.test(e),r=zF.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},vYe=(e,t)=>bQ(t,e);var EQ={compareIdentifiers:bQ,rcompareIdentifiers:vYe};const Fy=YE,{MAX_LENGTH:KF,MAX_SAFE_INTEGER:Uy}=KE,{safeRe:YF,t:ZF}=Mm,bYe=t$,{compareIdentifiers:sd}=EQ;let EYe=class Ts{constructor(t,n){if(n=bYe(n),t instanceof Ts){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>KF)throw new TypeError(`version is longer than ${KF} characters`);Fy("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?YF[ZF.LOOSE]:YF[ZF.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>Uy||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Uy||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Uy||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<Uy)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(Fy("SemVer.compare",this.version,this.options,t),!(t instanceof Ts)){if(typeof t=="string"&&t===this.version)return 0;t=new Ts(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof Ts||(t=new Ts(t,this.options)),sd(this.major,t.major)||sd(this.minor,t.minor)||sd(this.patch,t.patch)}comparePre(t){if(t instanceof Ts||(t=new Ts(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(Fy("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 sd(r,i)}while(++n)}compareBuild(t){t instanceof Ts||(t=new Ts(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(Fy("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 sd(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]),sd(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 aa=EYe;const XF=aa,TYe=(e,t,n=!1)=>{if(e instanceof XF)return e;try{return new XF(e,t)}catch(r){if(!n)return null;throw r}};var hh=TYe;const AYe=hh,wYe=(e,t)=>{const n=AYe(e,t);return n?n.version:null};var SYe=wYe;const _Ye=hh,xYe=(e,t)=>{const n=_Ye(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var CYe=xYe;const QF=aa,RYe=(e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new QF(e instanceof QF?e.version:e,n).inc(t,r,i).version}catch{return null}};var $Ye=RYe;const eU=hh,IYe=(e,t)=>{const n=eU(e,null,!0),r=eU(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 c=l?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};var kYe=IYe;const DYe=aa,OYe=(e,t)=>new DYe(e,t).major;var LYe=OYe;const PYe=aa,MYe=(e,t)=>new PYe(e,t).minor;var BYe=MYe;const NYe=aa,FYe=(e,t)=>new NYe(e,t).patch;var UYe=FYe;const HYe=hh,jYe=(e,t)=>{const n=HYe(e,t);return n&&n.prerelease.length?n.prerelease:null};var JYe=jYe;const tU=aa,VYe=(e,t,n)=>new tU(e,n).compare(new tU(t,n));var ps=VYe;const qYe=ps,GYe=(e,t,n)=>qYe(t,e,n);var WYe=GYe;const zYe=ps,KYe=(e,t)=>zYe(e,t,!0);var YYe=KYe;const nU=aa,ZYe=(e,t,n)=>{const r=new nU(e,n),i=new nU(t,n);return r.compare(i)||r.compareBuild(i)};var n$=ZYe;const XYe=n$,QYe=(e,t)=>e.sort((n,r)=>XYe(n,r,t));var eZe=QYe;const tZe=n$,nZe=(e,t)=>e.sort((n,r)=>tZe(r,n,t));var rZe=nZe;const iZe=ps,aZe=(e,t,n)=>iZe(e,t,n)>0;var ZE=aZe;const oZe=ps,sZe=(e,t,n)=>oZe(e,t,n)<0;var r$=sZe;const lZe=ps,uZe=(e,t,n)=>lZe(e,t,n)===0;var TQ=uZe;const cZe=ps,fZe=(e,t,n)=>cZe(e,t,n)!==0;var AQ=fZe;const dZe=ps,pZe=(e,t,n)=>dZe(e,t,n)>=0;var i$=pZe;const hZe=ps,mZe=(e,t,n)=>hZe(e,t,n)<=0;var a$=mZe;const gZe=TQ,yZe=AQ,vZe=ZE,bZe=i$,EZe=r$,TZe=a$,AZe=(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 gZe(e,n,r);case"!=":return yZe(e,n,r);case">":return vZe(e,n,r);case">=":return bZe(e,n,r);case"<":return EZe(e,n,r);case"<=":return TZe(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var wQ=AZe;const wZe=aa,SZe=hh,{safeRe:Hy,t:jy}=Mm,_Ze=(e,t)=>{if(e instanceof wZe)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(Hy[jy.COERCE]);else{let r;for(;(r=Hy[jy.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),Hy[jy.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;Hy[jy.COERCERTL].lastIndex=-1}return n===null?null:SZe(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var xZe=_Ze,QS,rU;function CZe(){return rU||(rU=1,QS=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),QS}var RZe=qn;qn.Node=hf;qn.create=qn;function qn(e){var t=this;if(t instanceof qn||(t=new qn),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}qn.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t};qn.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};qn.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};qn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)IZe(this,arguments[e]);return this.length};qn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)kZe(this,arguments[e]);return this.length};qn.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};qn.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};qn.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;n!==null;r++)e.call(t,n.value,r,this),n=n.next};qn.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;n!==null;r--)e.call(t,n.value,r,this),n=n.prev};qn.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value};qn.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value};qn.prototype.map=function(e,t){t=t||this;for(var n=new qn,r=this.head;r!==null;)n.push(e.call(t,r.value,this)),r=r.next;return n};qn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new qn,r=this.tail;r!==null;)n.push(e.call(t,r.value,this)),r=r.prev;return n};qn.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;r!==null;i++)n=e(n,r.value,i),r=r.next;return n};qn.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;r!==null;i--)n=e(n,r.value,i),r=r.prev;return n};qn.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e};qn.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e};qn.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new qn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,i=this.head;i!==null&&r<e;r++)i=i.next;for(;i!==null&&r<t;r++,i=i.next)n.push(i.value);return n};qn.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new qn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,i=this.tail;i!==null&&r>t;r--)i=i.prev;for(;i!==null&&r>e;r--,i=i.prev)n.push(i.value);return n};qn.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,i=this.head;i!==null&&r<e;r++)i=i.next;for(var a=[],r=0;i&&r<t;r++)a.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var r=0;r<n.length;r++)i=$Ze(this,i,n[r]);return a};qn.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};function $Ze(e,t,n){var r=t===e.head?new hf(n,null,t,e):new hf(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function IZe(e,t){e.tail=new hf(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function kZe(e,t){e.head=new hf(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function hf(e,t,n,r){if(!(this instanceof hf))return new hf(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{CZe()(qn)}catch{}const DZe=RZe,Rc=Symbol("max"),vl=Symbol("length"),ld=Symbol("lengthCalculator"),W0=Symbol("allowStale"),Hc=Symbol("maxAge"),gl=Symbol("dispose"),iU=Symbol("noDisposeOnSet"),ci=Symbol("lruList"),Ko=Symbol("cache"),SQ=Symbol("updateAgeOnGet"),e_=()=>1;class OZe{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Rc]=t.max||1/0;const n=t.length||e_;if(this[ld]=typeof n!="function"?e_:n,this[W0]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Hc]=t.maxAge||0,this[gl]=t.dispose,this[iU]=t.noDisposeOnSet||!1,this[SQ]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Rc]=t||1/0,s0(this)}get max(){return this[Rc]}set allowStale(t){this[W0]=!!t}get allowStale(){return this[W0]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Hc]=t,s0(this)}get maxAge(){return this[Hc]}set lengthCalculator(t){typeof t!="function"&&(t=e_),t!==this[ld]&&(this[ld]=t,this[vl]=0,this[ci].forEach(n=>{n.length=this[ld](n.value,n.key),this[vl]+=n.length})),s0(this)}get lengthCalculator(){return this[ld]}get length(){return this[vl]}get itemCount(){return this[ci].length}rforEach(t,n){n=n||this;for(let r=this[ci].tail;r!==null;){const i=r.prev;aU(this,t,r,n),r=i}}forEach(t,n){n=n||this;for(let r=this[ci].head;r!==null;){const i=r.next;aU(this,t,r,n),r=i}}keys(){return this[ci].toArray().map(t=>t.key)}values(){return this[ci].toArray().map(t=>t.value)}reset(){this[gl]&&this[ci]&&this[ci].length&&this[ci].forEach(t=>this[gl](t.key,t.value)),this[Ko]=new Map,this[ci]=new DZe,this[vl]=0}dump(){return this[ci].map(t=>h2(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[ci]}set(t,n,r){if(r=r||this[Hc],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const i=r?Date.now():0,a=this[ld](n,t);if(this[Ko].has(t)){if(a>this[Rc])return Xd(this,this[Ko].get(t)),!1;const l=this[Ko].get(t).value;return this[gl]&&(this[iU]||this[gl](t,l.value)),l.now=i,l.maxAge=r,l.value=n,this[vl]+=a-l.length,l.length=a,this.get(t),s0(this),!0}const o=new LZe(t,n,a,i,r);return o.length>this[Rc]?(this[gl]&&this[gl](t,n),!1):(this[vl]+=o.length,this[ci].unshift(o),this[Ko].set(t,this[ci].head),s0(this),!0)}has(t){if(!this[Ko].has(t))return!1;const n=this[Ko].get(t).value;return!h2(this,n)}get(t){return t_(this,t,!0)}peek(t){return t_(this,t,!1)}pop(){const t=this[ci].tail;return t?(Xd(this,t),t.value):null}del(t){Xd(this,this[Ko].get(t))}load(t){this.reset();const n=Date.now();for(let r=t.length-1;r>=0;r--){const i=t[r],a=i.e||0;if(a===0)this.set(i.k,i.v);else{const o=a-n;o>0&&this.set(i.k,i.v,o)}}}prune(){this[Ko].forEach((t,n)=>t_(this,n,!1))}}const t_=(e,t,n)=>{const r=e[Ko].get(t);if(r){const i=r.value;if(h2(e,i)){if(Xd(e,r),!e[W0])return}else n&&(e[SQ]&&(r.value.now=Date.now()),e[ci].unshiftNode(r));return i.value}},h2=(e,t)=>{if(!t||!t.maxAge&&!e[Hc])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Hc]&&n>e[Hc]},s0=e=>{if(e[vl]>e[Rc])for(let t=e[ci].tail;e[vl]>e[Rc]&&t!==null;){const n=t.prev;Xd(e,t),t=n}},Xd=(e,t)=>{if(t){const n=t.value;e[gl]&&e[gl](n.key,n.value),e[vl]-=n.length,e[Ko].delete(n.key),e[ci].removeNode(t)}};class LZe{constructor(t,n,r,i,a){this.key=t,this.value=n,this.length=r,this.now=i,this.maxAge=a||0}}const aU=(e,t,n,r)=>{let i=n.value;h2(e,i)&&(Xd(e,n),e[W0]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var PZe=OZe,n_,oU;function hs(){if(oU)return n_;oU=1;class e{constructor(u,h){if(h=r(h),u instanceof e)return u.loose===!!h.loose&&u.includePrerelease===!!h.includePrerelease?u:new e(u.raw,h);if(u instanceof i)return this.raw=u.value,this.set=[[u]],this.format(),this;if(this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease,this.raw=u.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(E=>this.parseRange(E.trim())).filter(E=>E.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const E=this.set[0];if(this.set=this.set.filter(S=>!v(S[0])),this.set.length===0)this.set=[E];else if(this.set.length>1){for(const S of this.set)if(S.length===1&&b(S[0])){this.set=[S];break}}}this.format()}format(){return this.range=this.set.map(u=>u.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(u){const E=((this.options.includePrerelease&&p)|(this.options.loose&&g))+":"+u,S=n.get(E);if(S)return S;const C=this.options.loose,I=C?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];u=u.replace(I,Q(this.options.includePrerelease)),a("hyphen replace",u),u=u.replace(s[l.COMPARATORTRIM],f),a("comparator trim",u),u=u.replace(s[l.TILDETRIM],c),a("tilde trim",u),u=u.replace(s[l.CARETTRIM],d),a("caret trim",u);let x=u.split(" ").map(re=>A(re,this.options)).join(" ").split(/\s+/).map(re=>fe(re,this.options));C&&(x=x.filter(re=>(a("loose invalid filter",re,this.options),!!re.match(s[l.COMPARATORLOOSE])))),a("range list",x);const _=new Map,y=x.map(re=>new i(re,this.options));for(const re of y){if(v(re))return[re];_.set(re.value,re)}_.size>1&&_.has("")&&_.delete("");const k=[..._.values()];return n.set(E,k),k}intersects(u,h){if(!(u instanceof e))throw new TypeError("a Range is required");return this.set.some(E=>R(E,h)&&u.set.some(S=>R(S,h)&&E.every(C=>S.every(I=>C.intersects(I,h)))))}test(u){if(!u)return!1;if(typeof u=="string")try{u=new o(u,this.options)}catch{return!1}for(let h=0;h<this.set.length;h++)if(L(this.set[h],u,this.options))return!0;return!1}}n_=e;const t=PZe,n=new t({max:1e3}),r=t$,i=XE(),a=YE,o=aa,{safeRe:s,t:l,comparatorTrimReplace:f,tildeTrimReplace:c,caretTrimReplace:d}=Mm,{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:g}=KE,v=T=>T.value==="<0.0.0-0",b=T=>T.value==="",R=(T,u)=>{let h=!0;const E=T.slice();let S=E.pop();for(;h&&E.length;)h=E.every(C=>S.intersects(C,u)),S=E.pop();return h},A=(T,u)=>(a("comp",T,u),T=F(T,u),a("caret",T),T=D(T,u),a("tildes",T),T=V(T,u),a("xrange",T),T=ie(T,u),a("stars",T),T),$=T=>!T||T.toLowerCase()==="x"||T==="*",D=(T,u)=>T.trim().split(/\s+/).map(h=>M(h,u)).join(" "),M=(T,u)=>{const h=u.loose?s[l.TILDELOOSE]:s[l.TILDE];return T.replace(h,(E,S,C,I,x)=>{a("tilde",T,E,S,C,I,x);let _;return $(S)?_="":$(C)?_=`>=${S}.0.0 <${+S+1}.0.0-0`:$(I)?_=`>=${S}.${C}.0 <${S}.${+C+1}.0-0`:x?(a("replaceTilde pr",x),_=`>=${S}.${C}.${I}-${x} <${S}.${+C+1}.0-0`):_=`>=${S}.${C}.${I} <${S}.${+C+1}.0-0`,a("tilde return",_),_})},F=(T,u)=>T.trim().split(/\s+/).map(h=>U(h,u)).join(" "),U=(T,u)=>{a("caret",T,u);const h=u.loose?s[l.CARETLOOSE]:s[l.CARET],E=u.includePrerelease?"-0":"";return T.replace(h,(S,C,I,x,_)=>{a("caret",T,S,C,I,x,_);let y;return $(C)?y="":$(I)?y=`>=${C}.0.0${E} <${+C+1}.0.0-0`:$(x)?C==="0"?y=`>=${C}.${I}.0${E} <${C}.${+I+1}.0-0`:y=`>=${C}.${I}.0${E} <${+C+1}.0.0-0`:_?(a("replaceCaret pr",_),C==="0"?I==="0"?y=`>=${C}.${I}.${x}-${_} <${C}.${I}.${+x+1}-0`:y=`>=${C}.${I}.${x}-${_} <${C}.${+I+1}.0-0`:y=`>=${C}.${I}.${x}-${_} <${+C+1}.0.0-0`):(a("no pr"),C==="0"?I==="0"?y=`>=${C}.${I}.${x}${E} <${C}.${I}.${+x+1}-0`:y=`>=${C}.${I}.${x}${E} <${C}.${+I+1}.0-0`:y=`>=${C}.${I}.${x} <${+C+1}.0.0-0`),a("caret return",y),y})},V=(T,u)=>(a("replaceXRanges",T,u),T.split(/\s+/).map(h=>Z(h,u)).join(" ")),Z=(T,u)=>{T=T.trim();const h=u.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return T.replace(h,(E,S,C,I,x,_)=>{a("xRange",T,E,S,C,I,x,_);const y=$(C),k=y||$(I),re=k||$(x),N=re;return S==="="&&N&&(S=""),_=u.includePrerelease?"-0":"",y?S===">"||S==="<"?E="<0.0.0-0":E="*":S&&N?(k&&(I=0),x=0,S===">"?(S=">=",k?(C=+C+1,I=0,x=0):(I=+I+1,x=0)):S==="<="&&(S="<",k?C=+C+1:I=+I+1),S==="<"&&(_="-0"),E=`${S+C}.${I}.${x}${_}`):k?E=`>=${C}.0.0${_} <${+C+1}.0.0-0`:re&&(E=`>=${C}.${I}.0${_} <${C}.${+I+1}.0-0`),a("xRange return",E),E})},ie=(T,u)=>(a("replaceStars",T,u),T.trim().replace(s[l.STAR],"")),fe=(T,u)=>(a("replaceGTE0",T,u),T.trim().replace(s[u.includePrerelease?l.GTE0PRE:l.GTE0],"")),Q=T=>(u,h,E,S,C,I,x,_,y,k,re,N,X)=>($(E)?h="":$(S)?h=`>=${E}.0.0${T?"-0":""}`:$(C)?h=`>=${E}.${S}.0${T?"-0":""}`:I?h=`>=${h}`:h=`>=${h}${T?"-0":""}`,$(y)?_="":$(k)?_=`<${+y+1}.0.0-0`:$(re)?_=`<${y}.${+k+1}.0-0`:N?_=`<=${y}.${k}.${re}-${N}`:T?_=`<${y}.${k}.${+re+1}-0`:_=`<=${_}`,`${h} ${_}`.trim()),L=(T,u,h)=>{for(let E=0;E<T.length;E++)if(!T[E].test(u))return!1;if(u.prerelease.length&&!h.includePrerelease){for(let E=0;E<T.length;E++)if(a(T[E].semver),T[E].semver!==i.ANY&&T[E].semver.prerelease.length>0){const S=T[E].semver;if(S.major===u.major&&S.minor===u.minor&&S.patch===u.patch)return!0}return!1}return!0};return n_}var r_,sU;function XE(){if(sU)return r_;sU=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,d){if(d=n(d),c instanceof t){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),o("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(c){const d=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],p=c.match(d);if(!p)throw new TypeError(`Invalid comparator: ${c}`);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(c){if(o("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new s(c,this.options)}catch{return!1}return a(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new l(this.value,d).test(c.semver):(d=n(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||a(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||a(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}r_=t;const n=t$,{safeRe:r,t:i}=Mm,a=wQ,o=YE,s=aa,l=hs();return r_}const MZe=hs(),BZe=(e,t,n)=>{try{t=new MZe(t,n)}catch{return!1}return t.test(e)};var QE=BZe;const NZe=hs(),FZe=(e,t)=>new NZe(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var UZe=FZe;const HZe=aa,jZe=hs(),JZe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new jZe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===-1)&&(r=o,i=new HZe(r,n))}),r};var VZe=JZe;const qZe=aa,GZe=hs(),WZe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new GZe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===1)&&(r=o,i=new qZe(r,n))}),r};var zZe=WZe;const i_=aa,KZe=hs(),lU=ZE,YZe=(e,t)=>{e=new KZe(e,t);let n=new i_("0.0.0");if(e.test(n)||(n=new i_("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 i_(o.semver.version);switch(o.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!a||lU(s,a))&&(a=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),a&&(!n||lU(n,a))&&(n=a)}return n&&e.test(n)?n:null};var ZZe=YZe;const XZe=hs(),QZe=(e,t)=>{try{return new XZe(e,t).range||"*"}catch{return null}};var eXe=QZe;const tXe=aa,_Q=XE(),{ANY:nXe}=_Q,rXe=hs(),iXe=QE,uU=ZE,cU=r$,aXe=a$,oXe=i$,sXe=(e,t,n,r)=>{e=new tXe(e,r),t=new rXe(t,r);let i,a,o,s,l;switch(n){case">":i=uU,a=aXe,o=cU,s=">",l=">=";break;case"<":i=cU,a=oXe,o=uU,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(iXe(e,t,r))return!1;for(let f=0;f<t.set.length;++f){const c=t.set[f];let d=null,p=null;if(c.forEach(g=>{g.semver===nXe&&(g=new _Q(">=0.0.0")),d=d||g,p=p||g,i(g.semver,d.semver,r)?d=g:o(g.semver,p.semver,r)&&(p=g)}),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 o$=sXe;const lXe=o$,uXe=(e,t,n)=>lXe(e,t,">",n);var cXe=uXe;const fXe=o$,dXe=(e,t,n)=>fXe(e,t,"<",n);var pXe=dXe;const fU=hs(),hXe=(e,t,n)=>(e=new fU(e,n),t=new fU(t,n),e.intersects(t,n));var mXe=hXe;const gXe=QE,yXe=ps;var vXe=(e,t,n)=>{const r=[];let i=null,a=null;const o=e.sort((c,d)=>yXe(c,d,n));for(const c of o)gXe(c,t,n)?(a=c,i||(i=c)):(a&&r.push([i,a]),a=null,i=null);i&&r.push([i,null]);const s=[];for(const[c,d]of r)c===d?s.push(c):!d&&c===o[0]?s.push("*"):d?c===o[0]?s.push(`<=${d}`):s.push(`${c} - ${d}`):s.push(`>=${c}`);const l=s.join(" || "),f=typeof t.raw=="string"?t.raw:String(t);return l.length<f.length?l:t};const dU=hs(),s$=XE(),{ANY:a_}=s$,l0=QE,l$=ps,bXe=(e,t,n={})=>{if(e===t)return!0;e=new dU(e,n),t=new dU(t,n);let r=!1;e:for(const i of e.set){for(const a of t.set){const o=TXe(i,a,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},EXe=[new s$(">=0.0.0-0")],pU=[new s$(">=0.0.0")],TXe=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===a_){if(t.length===1&&t[0].semver===a_)return!0;n.includePrerelease?e=EXe:e=pU}if(t.length===1&&t[0].semver===a_){if(n.includePrerelease)return!0;t=pU}const r=new Set;let i,a;for(const g of e)g.operator===">"||g.operator===">="?i=hU(i,g,n):g.operator==="<"||g.operator==="<="?a=mU(a,g,n):r.add(g.semver);if(r.size>1)return null;let o;if(i&&a){if(o=l$(i.semver,a.semver,n),o>0)return null;if(o===0&&(i.operator!==">="||a.operator!=="<="))return null}for(const g of r){if(i&&!l0(g,String(i),n)||a&&!l0(g,String(a),n))return null;for(const v of t)if(!l0(g,String(v),n))return!1;return!0}let s,l,f,c,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 g of t){if(c=c||g.operator===">"||g.operator===">=",f=f||g.operator==="<"||g.operator==="<=",i){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator===">"||g.operator===">="){if(s=hU(i,g,n),s===g&&s!==i)return!1}else if(i.operator===">="&&!l0(i.semver,String(g),n))return!1}if(a){if(d&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===d.major&&g.semver.minor===d.minor&&g.semver.patch===d.patch&&(d=!1),g.operator==="<"||g.operator==="<="){if(l=mU(a,g,n),l===g&&l!==a)return!1}else if(a.operator==="<="&&!l0(a.semver,String(g),n))return!1}if(!g.operator&&(a||i)&&o!==0)return!1}return!(i&&f&&!a&&o!==0||a&&c&&!i&&o!==0||p||d)},hU=(e,t,n)=>{if(!e)return t;const r=l$(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},mU=(e,t,n)=>{if(!e)return t;const r=l$(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};var AXe=bXe;const o_=Mm,gU=KE,wXe=aa,yU=EQ,SXe=hh,_Xe=SYe,xXe=CYe,CXe=$Ye,RXe=kYe,$Xe=LYe,IXe=BYe,kXe=UYe,DXe=JYe,OXe=ps,LXe=WYe,PXe=YYe,MXe=n$,BXe=eZe,NXe=rZe,FXe=ZE,UXe=r$,HXe=TQ,jXe=AQ,JXe=i$,VXe=a$,qXe=wQ,GXe=xZe,WXe=XE(),zXe=hs(),KXe=QE,YXe=UZe,ZXe=VZe,XXe=zZe,QXe=ZZe,eQe=eXe,tQe=o$,nQe=cXe,rQe=pXe,iQe=mXe,aQe=vXe,oQe=AXe;var xQ={parse:SXe,valid:_Xe,clean:xXe,inc:CXe,diff:RXe,major:$Xe,minor:IXe,patch:kXe,prerelease:DXe,compare:OXe,rcompare:LXe,compareLoose:PXe,compareBuild:MXe,sort:BXe,rsort:NXe,gt:FXe,lt:UXe,eq:HXe,neq:jXe,gte:JXe,lte:VXe,cmp:qXe,coerce:GXe,Comparator:WXe,Range:zXe,satisfies:KXe,toComparators:YXe,maxSatisfying:ZXe,minSatisfying:XXe,minVersion:QXe,validRange:eQe,outside:tQe,gtr:nQe,ltr:rQe,intersects:iQe,simplifyRange:aQe,subset:oQe,SemVer:wXe,re:o_.re,src:o_.src,tokens:o_.t,SEMVER_SPEC_VERSION:gU.SEMVER_SPEC_VERSION,RELEASE_TYPES:gU.RELEASE_TYPES,compareIdentifiers:yU.compareIdentifiers,rcompareIdentifiers:yU.rcompareIdentifiers};const vU=Ft(xQ);async function CQ(...e){return new Promise((t,n)=>{sn(()=>import("./index-VcmnR0mp.js").then(r=>r.i),__vite__mapDeps([])).then(r=>{r.call||(r=r.default),r.call(...e,i=>{try{const a=JSON.parse(i);if(a.code===0){const o=JSON.parse(a.data);t(o)}else n(new Error(a.error))}catch{t(i)}})}).catch(r=>{console.error("load dsbridge error",r)})})}const sQe=[`${qi}/connect`,`${qi}/login`,`${qi}/invite`,`${qi}/issue-passport`];async function lQe(){const e=(window==null?void 0:window.blocklet)||{},t=window.location.pathname,{componentId:n,CHAIN_TYPE:r="arcblock",appPid:i}=e;if(sQe.includes(t))return null;const a=MX();try{const o=`${window.location.origin}${qi}/api/user/loginByWallet`;return await CQ("arcLogin",{target:o,chainType:r,appPid:i,componentId:n,apps:a.map(l=>{let f=l==null?void 0:l.appLogo;return Xb(f)||(f=On(l.appUrl,f)),{appName:l.appName,appPid:l.appPid,appUrl:l.appUrl,appLogo:f,sourceAppPid:l.sourceAppPid}})})}catch(o){return console.error(o),null}}async function uQe(){return await CQ("arcGetVisitorId")}function cQe({platform:e,version:t}={}){return!!(e==="ios"&&t&&vU.gte(t,"4.15.6")||e==="android"&&t&&vU.gte(t,"4.15.1"))}const{Provider:fQe,Consumer:bU}=ph,EU={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"};function dQe(e=oVe,t="ls",n={},r={}){var f;let i="/";(f=globalThis==null?void 0:globalThis.blocklet)!=null&&f.prefix&&(i=globalThis.blocklet.prefix),typeof r=="boolean"&&(r={appendAuthServicePrefix:r,extraParams:{}}),kDe(r,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:sVe});const a=wM(e,t,n),o=wM(r.refreshTokenStorageKey,"ls");function s(c){var Me,He;const{connectApi:d,connectHolder:p}=lYe(),g=_m(),v=ki({extraParams:{},options:{},currentLocale:c.locale,allowWallet:void 0,openMode:"window",get autoConnect(){return typeof c.autoConnect=="boolean"?c.autoConnect:!!c.autoLogin},get prefix(){return r.appendAuthServicePrefix||c.appendAuthServicePrefix?On(qi,c.prefix):c.prefix}}),b=ki({action:c.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:"",get locale(){return c.locale||v.currentLocale||pX()}}),{confirmApi:R,confirmHolder:A}=OPe(),$=nn(()=>new ODe,[]),D=_t((xe,ke,Je)=>{const De={login:[ei.LOGIN,ei.CANCEL_LOGIN],"bind-wallet":[ei.BIND_WALLET,ei.CANCEL_BIND_WALLET],"switch-passport":[ei.SWITCH_PASSPORT,ei.CANCEL_SWITCH_PASSPORT],"switch-profile":[ei.SWITCH_PROFILE,ei.CANCEL_SWITCH_PROFILE],"switch-did":[ei.LOGIN,ei.CANCEL_LOGIN]};if(!Object.keys(De).includes(xe))return;const G=async(...B)=>{Bc(ke)&&await ke(...B),$.emit(xe,...B)};$.once(De[xe][0],G),$.once(De[xe][1],async(...B)=>{Bc(G)&&$.off(De[xe][0],G),Bc(Je)&&await Je(...B),$.emit(`cancel-${xe}`,...B)})}),M=fK(b.initialized,(xe,ke)=>xe!==ke||xe===!0&&ke===!0),{handleRefreshUser:F,handleRefreshToken:U,renewToken:V,clearSession:Z,handleLoginResult:ie,decrypt:fe,service:Q,getSessionToken:L,getRefreshToken:T,setRefreshToken:u,setSessionToken:h}=xqe({state:b,pageState:v,sessionTokenStorage:a,refreshTokenStorage:o,serviceHost:c.serviceHost,apiOptions:c.apiOptions,lazyRefreshToken:c.lazyRefreshToken}),E=_t((xe,ke={},Je={})=>{const De=xe;typeof De=="object"&&(xe=De.onSuccess,ke=De.extraParams||{},Je=De.options||{},Je.origin=De.origin||""),(!b.user||Je.origin==="switch-did")&&(Je.origin==="switch-did"?D("switch-did",xe,De==null?void 0:De.onCancel):D("login",xe,De==null?void 0:De.onCancel),v.extraParams=ke,v.options=Je,b.action="login",Se())}),S=_t(async(xe,ke={},Je={})=>{var Te;const De=xe;typeof De=="object"&&(xe=De.onSuccess,ke=De.extraParams||{},Je=De.options||{});const{params:G}=gF();if(ca(ke==null?void 0:ke.forceConnected)&&(G!=null&&G.forceConnected)&&(ke.forceConnected=G.forceConnected,ca(Je.showQuickConnect)&&(Je.showQuickConnect=!1)),ca(ke==null?void 0:ke.sourceAppPid)&&(G!=null&&G.sourceAppPid)&&(ke.sourceAppPid=G.sourceAppPid),(ke==null?void 0:ke.openMode)==="redirect"){const Ae=(ke==null?void 0:ke.redirect)||"/",_e=new URL(`${qi}/login`,window.location.origin);_e.searchParams.set("redirect",Ae),ke!=null&&ke.forceConnected&&_e.searchParams.set("forceConnected",ke==null?void 0:ke.forceConnected),Je!=null&&Je.origin&&_e.searchParams.set("origin",Je.origin),window.location.href=_e.href;return}let B=ke==null?void 0:ke.sourceAppPid;ca(B)&&z&&(B=te.appPid),await Nz(()=>b.initialized),typeof Je=="string"&&(Je={origin:Je});const H=Rl(ke);v.allowWallet=void 0;const se=(H==null?void 0:H.openMode)||((Te=c==null?void 0:c.extraParams)==null?void 0:Te.openMode);ca(se)?v.openMode="window":v.openMode=se,B?(b.baseUrl=globalThis.blocklet.appUrl,E(xe,H,Je)):(b.baseUrl="",E(xe,H,Je))}),C=uf(),I=_t(async xe=>{const ke=On(qi,"/api/user/logout");await fetch(ke,{method:"POST",body:JSON.stringify({visitorId:C}),headers:{"Content-Type":"application/json"}}),Z(),he(),b.user=null,b.provider="",b.walletOS="",b.error="",b.loading=!1,$.emit("logout"),typeof xe=="function"&&xe()}),{userSessions:x,refresh:_,loaded:y,loginUserSession:k}=gQ({appPid:WK(b.user),loginAppPid:(Me=globalThis==null?void 0:globalThis.blocklet)==null?void 0:Me.appPid,sourceAppPid:(He=b==null?void 0:b.user)==null?void 0:He.sourceAppPid,autoFetch:!1}),re=_t((xe,ke={},Je={})=>{const De=xe;typeof De=="object"&&(xe=De.onSuccess,ke=De.extraParams||{},Je=De.options||{}),typeof Je=="string"&&(Je={origin:Je}),Je!=null&&Je.userSession?k(Je.userSession).then(G=>{a2({connected_did:Je.userSession.user.did,connected_pk:Je.userSession.user.pk,connected_wallet_os:Je.userSession.extra.walletOS,connected_app:P1()},!0),D("switch-did",xe),ie({...G,encrypted:!1}),F(!0).then(()=>{$.emit(ei.LOGIN,G,fe)})}):(ca(ke==null?void 0:ke.forceConnected)&&(ke.forceConnected=!1),S(xe,ke,{...Je,origin:"switch-did"}))}),N=_t((xe,ke={})=>{const Je=xe;typeof Je=="object"&&(xe=Je.onSuccess,ke=Je.extraParams||{}),b.user&&(D("switch-profile",xe,Je==null?void 0:Je.onCancel),v.extraParams=ke,v.options={},b.action="switch-profile",Se())}),X=_t((xe,ke={})=>{const Je=xe;typeof Je=="object"&&(xe=Je.onSuccess,ke=Je.extraParams||{}),b.user&&(D("switch-passport",xe,Je==null?void 0:Je.onCancel),v.extraParams=ke,v.options={},b.action="switch-passport",Se())}),ne=_t((xe,ke={})=>{const Je=xe;typeof Je=="object"&&(xe=Je.onSuccess),b.user&&(D("bind-wallet",xe,Je==null?void 0:Je.onCancel),v.extraParams=ke,v.options={},b.action="bind-wallet",Se())}),le=_t(xe=>{v.extraParams={},v.options={},ie(xe),b.loading=!1,F(!0).then(()=>{b.action==="login"?$.emit(ei.LOGIN,xe,fe):b.action==="switch-passport"&&$.emit(ei.SWITCH_PASSPORT,xe,fe)})}),me=_t(xe=>{v.extraParams={},v.options={},ie(xe),b.loading=!1,F(!0).then(()=>{$.emit(ei.BIND_WALLET,xe,fe)})}),we=_t(xe=>{v.extraParams={},v.options={},b.loading=!1,F(!0).then(()=>{$.emit(ei.SWITCH_PROFILE,xe,fe)})}),j=_t(xe=>{v.extraParams={},v.options={},he();const ke={login:ei.CANCEL_LOGIN,"switch-profile":ei.CANCEL_SWITCH_PROFILE,"switch-passport":ei.CANCEL_SWITCH_PASSPORT,"bind-wallet":ei.CANCEL_BIND_WALLET};$.emit(ke[xe])}),P=_t((xe,...ke)=>{try{Ve[xe](...ke)}catch(Je){console.error("Catch error in onSuccess",{action:xe,args:ke,err:Je})}}),{federatedMaster:K,federatedEnabled:z,master:te}=Aqe({locale:b.locale,decrypt:fe,login:E,logout:I,handleLoginResult:ie,handleRefreshUser:F,setRefreshToken:u,setSessionToken:h}),{checkMatch:ye}=Nqe({protectedRoutes:c.protectedRoutes||[]}),pe=dE(x),ae=_t(async()=>(y||(await _(),await Lm()),pe.current)),he=_t(()=>{b.open=!1,d.close()}),Se=async()=>{var B,H,se,Te,Ae,_e,We;let xe=b.action;((B=v==null?void 0:v.options)==null?void 0:B.origin)==="switch-did"&&(xe=(H=v==null?void 0:v.options)==null?void 0:H.origin);const ke=mc[xe],Je=ke[b.locale]||ke.en,De={...r.extraParams,...c.extraParams,...v.extraParams,previousUserDid:(se=b==null?void 0:b.user)==null?void 0:se.did,email:(Te=b==null?void 0:b.user)==null?void 0:Te.email};if(xe==="switch-did"&&(De!=null&&De.forceConnected)){const Be=(je,ft={})=>Zp(mc["switch-specified-did"],je,b.locale,"en",ft);Je.title=Be("title"),Je.scan=Be("scan",{did:De.forceConnected}),Je.confirm=Be("confirm"),Je.success=Be("success")}De==null||delete De.openMode;const G={action:b.action,locale:b.locale,extraParams:De,options:{...c.options||{},...v.options},checkTimeout:c.timeout,webWalletUrl:c.webWalletUrl,messages:Je,useSocket:c.useSocket,...E6(c,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...oE(v.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:v.prefix,allowWallet:ca(v.allowWallet)?b.action!=="login"||(((Ae=globalThis.blocklet)==null?void 0:Ae.DID_CONNECT_ALLOW_WALLET)||"1")==="1":v.allowWallet,onSuccess(...Be){P(b.action,...Be),setTimeout(()=>{b.open=!1},2e3)},onClose(...Be){j(b.action,...Be)},onError(Be){console.error(Be)}};if(b.open=!0,["login"].includes(b.action)&&v.openMode==="window"&&!g.wallet)try{const Be={...G,baseUrl:window.location.origin};Xb(v.prefix)||(Be.prefix=On(window.location.origin,c.serviceHost==="/"?"":c.serviceHost,v.prefix)),(_e=Be.extraParams)!=null&&_e.provider||(Be.extraParams.provider=((We=b==null?void 0:b.user)==null?void 0:We.provider)||"wallet"),await d.openPopup(Be,{locale:b.locale})}catch(Be){Be.message==="Timeout"?Ci.error(EU[b.locale]||EU.en):console.error(Be)}else d.open(G)},be=()=>{const{params:xe,url:ke}=gF();if(xe){const{switchBehavior:Je,forceConnected:De,sourceAppPid:G,showClose:B}=xe;De===b.user.did?window.history.replaceState(null,"trim",ke):Je==="required"?re(()=>{},{openMode:"redirect",redirect:ke,sourceAppPid:G,forceConnected:De}):Je==="disabled"?window.history.replaceState(null,"trim",ke):setTimeout(()=>{R.open({title:mc.switchAccountDialog[b.locale].title,content:q.jsxs(q.Fragment,{children:[q.jsx(Cr,{variant:"body1",sx:{textAlign:"center",mb:2},children:mc.switchAccountDialog[b.locale].description}),q.jsxs(yt,{sx:{display:"flex",alignItems:"center",color:St.foregroundsFgBase},children:[q.jsxs(yt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1},children:[q.jsx(Fl,{did:b.user.did,shape:"circle",variant:"circle",size:80}),q.jsx(yp,{did:b.user.did,showAvatar:!1,compact:!0,responsive:!1}),mc.switchAccountDialog[b.locale].currentAccount]}),q.jsx(yt,{sx:{display:"flex",justifyContent:"center",px:2},children:q.jsx(yt,{component:Vn,icon:mPe,fontSize:24,color:St.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(yt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1,fontWeight:500},children:[q.jsx(Fl,{did:De,shape:"circle",variant:"circle",size:80}),q.jsx(yp,{did:De,showAvatar:!1,compact:!0,responsive:!1}),mc.switchAccountDialog[b.locale].nextAccount]})]})]}),showCloseButton:B,showCancelButton:!1,confirmButtonText:mc.switchAccountDialog[b.locale].confirm,onConfirm(H){H(),re(()=>{window.location.replace(ke)},{sourceAppPid:G,forceConnected:De},{showQuickConnect:!1})}})},1e3)}},Ne={api:Q,events:$,storage:a,connectApi:d,session:{...b,loading:v.autoConnect&&!b.user||b.loading,login:S,logout:I,switchDid:re,autoSwitchDid:be,switchProfile:N,switchPassport:X,bindWallet:ne,refresh:F,updateConnectedInfo:a2,federatedMaster:K,useOAuth:wR,OAuthProvider:l2,OAuthConsumer:iqe,OAuthContext:AR,useDid:IX,WrapDid:OX,getUserSessions:ae}},Ve={login:le,"switch-profile":we,"switch-passport":le,"bind-wallet":me};return cf(()=>{if(b.initialized){const xe=!M;$.emit("change",{user:Rl(b.user),isFirst:xe})}},[b.user,b.initialized,$]),cf(()=>{b.initialized&&b.user&&be()},[b.initialized]),Am(async()=>{const xe=Mr.get("connected_app"),ke=P1();if(c.autoDisconnect&&xe&&ke&&xe!==ke){Z(),b.initialized=!0,v.autoConnect?Se():he();return}const Je=L();let De="web";if(g.mobile.apple.device?De="ios":g.mobile.android.device&&(De="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&g.wallet&&cQe({version:g.walletVersion,platform:De})){if(!C){const B=await uQe();BW(B)}if(!Je)try{b.loading=!0;const B=await lQe();if(B){b.initialized=!0,le({sessionToken:B.sessionToken,refreshToken:B.refreshToken,encrypted:!1});return}}finally{b.loading=!1}}if(Je){await F(!0),b.initialized=!0;return}if(typeof window<"u"){const B=new URL(window.location.href),H=B.searchParams.get("loginToken");if(H){ie({loginToken:H,encrypted:!1}),B.searchParams.delete("loginToken"),window.history.replaceState({},window.title,B.href);return}}if(T()){await U(!0),b.initialized=!0;return}try{}catch(B){console.error("Federated: tryAutoLogin failed",B)}finally{b.initialized=!0}v.autoConnect?Se():he()}),ye()&&!b.initialized?q.jsx(cp,{children:q.jsx(om,{})}):q.jsx(fQe,{value:Ne,children:q.jsxs(l2,{locale:b.locale,onSwitchPassport:({sessionToken:xe,refreshToken:ke})=>{le({sessionToken:xe,refreshToken:ke,encrypted:!1})},onBindOAuth:()=>{F()},children:[!b.open&&typeof c.children=="function"?c.children(b):c.children,p,A,r.rolling&&q.jsx(hX,{callback:()=>V()})]})})}s.propTypes={children:ge.any.isRequired,serviceHost:ge.string,action:ge.string,prefix:ge.string,appendAuthServicePrefix:ge.bool,locale:ge.string,timeout:ge.number,autoConnect:ge.bool,autoDisconnect:ge.bool,useSocket:ge.bool,extraParams:ge.object,options:ge.object,webWalletUrl:ge.string,protectedRoutes:ge.arrayOf(ge.string),apiOptions:ge.object,lazyRefreshToken:ge.bool},s.defaultProps={serviceHost:i,locale:"",action:"login",prefix:cR,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:aX*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function l(c){return function(p){return q.jsx(U3,{children:q.jsx(bU,{children:g=>q.jsx(c,{...p,...g})})})}}return{SessionProvider:c=>q.jsx(U3,{children:q.jsx(s,{...c})}),SessionConsumer:bU,SessionContext:ph,withSession:l}}let RQ="/";window.env&&(RQ=window.env.groupPathPrefix||window.env.pathPrefix||"/");function $Q(e,t){return[void 0,null,""].includes(e)?t:e/86400}var ij,aj,oj;const pQe=$Q((oj=(aj=(ij=window.blocklet)==null?void 0:ij.settings)==null?void 0:aj.session)==null?void 0:oj.cacheTtl,1/144);var sj,lj,uj;const hQe=$Q((uj=(lj=(sj=window.blocklet)==null?void 0:sj.settings)==null?void 0:lj.session)==null?void 0:uj.ttl,7),{SessionProvider:mQe,SessionContext:gQe,SessionConsumer:Agt,withSession:wgt}=dQe("login_token","cookie",{returnDomain:!1,path:RQ,expireInDays:pQe},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays:hQe});function IQ(){return W.useContext(gQe)}function yQe({children:e}){const t=rG({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return q.jsx(Y7,{injectFirst:!0,children:q.jsx(nG,{theme:t,children:q.jsx(vq,{theme:t,children:q.jsx(j8,{translations:ICe,fallbackLocale:"en",children:q.jsx(U3,{children:q.jsx(c$,{theme:t,children:e})})})})})})}const u$=new URL(window.location.href),kQ=u$.searchParams.get("mode")||"",vQe=u$.pathname.includes("embed")&&kQ==="dialog",bQe=u$.pathname.includes("embed")&&kQ!=="dialog";function c$({children:e,theme:t}){var i,a,o;const{locale:n}=Qb(),r=Vl`
|
|
490
490
|
${vQe?"body { background-color: transparent }":""}
|
|
491
491
|
${bQe?".MuiModal-backdrop { background-color: transparent !important }":""}
|
|
492
492
|
a {
|
|
@@ -545,7 +545,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
545
545
|
parent
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
}`}),{headers:{"Content-Type":"application/json",Accept:"application/json"},timeout:6e4}),r=Fs(n.data,"data.getAssetState.state");return r&&r.data.typeUrl==="json"&&(r.data.value=JSON.parse(r.data.value)),r}function nyt(e){return ZIe(Fs(e,"data.value.expirationDate",[]))}const ryt=(e,t)=>{if(typeof e=="string"){let n=decodeURIComponent(e==null?void 0:e.trim());/^https?:\/\//.test(n)||(n=`https://${n}`),n=oit(n,"/");try{new URL(n)}catch{throw new Error("Invalid Blocklet Store URL")}return t!=null&&t.some(i=>[e,n].includes(i.url))?{isNew:!1,decoded:n}:{isNew:!0,decoded:n}}return{isNew:!1,decoded:""}};var cj;const iyt=((cj=window.env)==null?void 0:cj.groupPathPrefix)||"/",ayt=[Xt.ROLES.ADMIN,Xt.ROLES.OWNER],Vit=e=>{if(e.endsWith(Xt.DEFAULT_IP_DOMAIN_SUFFIX)){const n=e.split(".").shift().match(Xt.IP);if(n)return e.replace(n[0].slice(1),Xt.SLOT_FOR_IP_DNS_SITE)}return e},oyt=({fromBlocklet:e,nodeInfo:t,blocklet:n})=>{var a,o;const r=e?(a=n==null?void 0:n.meta)==null?void 0:a.did:t==null?void 0:t.did,i=e?((o=n==null?void 0:n.settings)==null?void 0:o.storeList)||[]:(t==null?void 0:t.blockletRegistryList)||[];return{teamDid:r,storeList:i}},qy=e=>e?e.endsWith(Xt.DEFAULT_DID_DOMAIN)||e.endsWith(Xt.DEFAULT_IP_DOMAIN_SUFFIX)||e.endsWith(Xt.DEFAULT_SLP_DOMAIN):!1,syt=e=>(e||[]).sort((t,n)=>qy(t.value)&&qy(n.value)?0:qy(t.value)?1:qy(n.value)?-1:1),lyt=e=>Hee(Bit(e)),uyt=({launcherUrl:e="",nftId:t="",locale:n="en"})=>On(e,`/instances/${t}/renewal?locale=${n}&return-url=${encodeURIComponent(window.location.href)}`),cyt=async({launcherUrl:e="",nftId:t="",locale:n="en"})=>{var i;if(!e)return"";let r=On(e,"/instances");try{const{data:a}=await Fee.get(On(e,"__blocklet__.js?type=json"),{timeout:5e3}),o=(i=a.componentMountPoints)==null?void 0:i.find(l=>l.did==="z8iZy4P83i6AgnNdNUexsh2kBcsDHoqcwPavn"),s=new URL(e);r=On(s.origin,o==null?void 0:o.mountPoint,"/nfts")}catch(a){console.error(a)}return On(r,`/${t}/subscription?locale=${n}&return-url=${encodeURIComponent(window.location.href)}`)},fyt=(e=16)=>[...Array(e)].map(()=>Math.random().toString(36)[2]).join(""),dyt=e=>e.filter(t=>t.isProtected),pyt=e=>encodeURIComponent((e||"").split("/").slice(-1)[0].slice(0,7)),qit=e=>(e.environments||[]).some(t=>t.required),hyt=e=>{var t,n;return!!((n=(t=e.requirements)==null?void 0:t.fuels)!=null&&n.length)||qit(e)};var pt={},Git=hQ;function Wit(e){return e&&e.length?Git(e):[]}var Wee=Wit;const myt=Ft(Wee);class zit{constructor(t){this.value=t,this.next=void 0}}let Kit=class{constructor(){this.clear()}enqueue(t){const n=new zit(t);this._head?(this._tail.next=n,this._tail=n):(this._head=n,this._tail=n),this._size++}dequeue(){const t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};var Yit=Kit;const Zit=Yit,Xit=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=new Zit;let n=0;const r=()=>{n--,t.size>0&&t.dequeue()()},i=async(s,l,...f)=>{n++;const c=(async()=>s(...f))();l(c);try{await c}catch{}r()},a=(s,l,...f)=>{t.enqueue(i.bind(null,s,l,...f)),(async()=>(await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()))()},o=(s,...l)=>new Promise(f=>{a(s,f,...l)});return Object.defineProperties(o,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),o};var Qit=Xit,N$={};Object.defineProperty(N$,"__esModule",{value:!0});const eat=e=>!!(e!=null&&e.main);var yyt=N$.default=eat,gh=et&&et.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pt,"__esModule",{value:!0});pt.isPackBlocklet=pt.isGatewayBlocklet=wat=pt.isAccessible=pt.isRunning=pt.isBeforeInstalled=Aat=pt.isInProgress=pt.getBlockletServices=Ste=pt.getBlockletAppIdList=Eat=pt.getRolesFromAuthConfig=pt.isPreferenceKey=pt.isExternalBlocklet=pt.getBlockletChainInfo=pt.getChainInfo=pt.getConnectAppUrl=pt.getParentComponentName=pt.filterComponentsV2=oat=pt.findComponentByIdV2=pt.findComponentV2=pt.findComponentById=pt.findComponent=pt.getComponentBundleId=pt.getComponentName=pt.getComponentId=Ete=pt.replaceSlotToIp=pt.getComponentWhoCanAccess=bat=pt.getWhoCanAccess=vat=pt.findServiceFromMeta=pt.findWebInterfacePort=yat=pt.findWebInterface=pt.fixBlockletStatus=gat=pt.getAppDescription=mat=pt.getDisplayName=hat=pt.getAppName=pat=pt.hasRunnableComponent=pt.wipeSensitiveData=sat=pt.isEnvShareable=pt.isEnvShareableToClient=cat=pt.getComponentMissingConfigs=uat=pt.getAppMissingConfigs=lat=pt.getSharedConfigObj=dat=pt.isDeletableBlocklet=pt.forEachComponentV2Sync=pt.forEachComponentV2=aat=pt.forEachChildSync=pt.forEachChild=K0=pt.forEachBlockletSync=pt.forEachBlocklet=pt.isFreeComponent=fat=pt.isFreeBlocklet=pt.getAppUrl=void 0;pt.hasResourceType=rat=pt.hasStartEngine=void 0;const Jc=gh(pm),tat=gh(Wee),PU=gh(bK),zee=gh(Qit),nat=gh(Xt),Nn=Pa,F$=gh(N$);var rat=pt.hasStartEngine=F$.default;const{NODE_SERVICES:g2,SLOT_FOR_IP_DNS_SITE:iat,WHO_CAN_ACCESS:y2,WHO_CAN_ACCESS_PREFIX_ROLES:MU}=nat.default,Fm=(e,t=[])=>`${t.map(n=>n&&n.meta?n.meta.did:"").join("/")}${t.length?"/":""}${e&&e.meta?e.meta.did:""}`;pt.getComponentId=Fm;const Kee=(e,t=[])=>`${t.map(n=>n&&n.meta?n.meta.name:"").join("/")}${t.length?"/":""}${e&&e.meta?e.meta.name:""}`;pt.getComponentName=Kee;const Yee=e=>`${e.meta.bundleName}@${e.meta.version}`;pt.getComponentBundleId=Yee;const Zee=e=>{if(!e)return"";const t=e.split("/");return t.pop(),!t.length||(t[t.length-1].startsWith("@")&&t.pop(),!t.length)?"":t.join("/")};pt.getParentComponentName=Zee;const Ou=(e,t,{parallel:n=!1,concurrencyLimit:r=5,sync:i,params:a,_parent:o,_root:s,_level:l=0,_tasks:f,_ancestors:c=[],_limit:d}={})=>{const p=s||o||e,g=Fm(e,c),v=c.concat(e);if(i){const A=t(e,{parent:o,root:p,level:l,params:a,ancestors:c,id:g});if(e.children)for(const $ of e.children)Ou($,t,{sync:i,params:A,_parent:e,_root:p,_level:l+1,_ancestors:v});return null}if(!n)return new Promise(async(A,$)=>{try{const D=await t(e,{parent:o,root:p,level:l,ancestors:c,params:a,id:g});if(e.children)for(const M of e.children)await Ou(M,t,{params:D,_parent:e,_root:p,_level:l+1,_ancestors:v});A(null)}catch(D){$(D)}});const b=d||(0,zee.default)(r),R=f||[];if(R.push(b(()=>t(e,{parent:o,root:p,level:l,ancestors:c,id:g}))),e.children)for(const A of e.children)Ou(A,t,{parallel:n,_parent:e,_root:p,_level:l+1,_tasks:R,_ancestors:v,_limit:b});return f?null:Promise.all(R)};pt.forEachBlocklet=Ou;const $p=(e,t)=>Ou(e,t,{sync:!0});var K0=pt.forEachBlockletSync=$p;const U$=(e,t,{parallel:n=!1,concurrencyLimit:r=5,sync:i}={})=>{if(i){if(e.children)for(const s of e.children)t(s);return null}if(!n)return new Promise(async(s,l)=>{try{if(e.children)for(const f of e.children)await t(f);s(null)}catch(f){l(f)}});const a=(0,zee.default)(r),o=[];if(e.children)for(const s of e.children)o.push(a(()=>t(s)));return Promise.all(o)};pt.forEachComponentV2=U$;const H$=(e,t)=>U$(e,t,{sync:!0});pt.forEachComponentV2Sync=H$;const j$=(e,t,n)=>Ou(e,(r,i)=>i.level===0?{}:t(r,i),n);pt.forEachChild=j$;const J$=(e,t)=>j$(e,t,{sync:!0});var aat=pt.forEachChildSync=J$;const aT=(e,t,{_ancestors:n=[],returnAncestors:r=!1}={})=>{if(!t)return null;if(t(e,{ancestors:n}))return r?{component:e,ancestors:n}:e;for(const i of e.children||[]){const a=n.concat(e),o=aT(i,t,{_ancestors:a,returnAncestors:r});if(o)return o}return null};pt.findComponent=aT;const Xee=(e,t,{returnAncestors:n=!1}={})=>(Array.isArray(t)&&(t=t.join("/")),aT(e,(r,{ancestors:i})=>{const a=Fm(r,i);return t===a},{returnAncestors:n}));pt.findComponentById=Xee;const V$=(e,t)=>{if(!t)return null;for(const n of e.children||[])if(t(n,e))return n;return null};pt.findComponentV2=V$;const Qee=(e,t)=>t?(Array.isArray(t)&&(t=t.join("/")),V$(e,(n,r)=>{if(t.includes("/")){const i=Fm(n,[r]);return t===i}return t===n.meta.did})):null;var oat=pt.findComponentByIdV2=Qee;const ete=(e,t)=>{if(!t)return[];const n=[];for(const r of e.children||[])t(r,e)&&n.push(r);return n};pt.filterComponentsV2=ete;const tte=e=>!!e&&!!(e.key||e.name)&&!e.secure&&e.shared!==!1&&!Nn.BLOCKLET_CONFIGURABLE_KEY[e.key||e.name];pt.isEnvShareableToClient=tte;const v2=e=>!!e&&!!(e.key||e.name)&&!e.secure&&!!e.shared&&!Nn.BLOCKLET_CONFIGURABLE_KEY[e.key||e.name];var sat=pt.isEnvShareable=v2;const oT=(e,t)=>{const n={};return!e||!t||(Array.isArray(e.configs)&&e.configs.forEach(({key:r,value:i,secure:a})=>{if(!v2({key:r,secure:a,shared:!0}))return;const o=(e.configObj||{})[r]||i,s=(t.configs||[]).find(l=>l.key===r);(!s||v2(s)||!s.value&&!(t.configObj||{})[s.key])&&(n[r]=o)}),(e.configs||[]).forEach(({key:r,value:i})=>{[Nn.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_HOST,Nn.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_ID,Nn.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_TYPE].includes(r)&&(n[Nn.CHAIN_PROP_MAP[r]]=i)})),n};var lat=pt.getSharedConfigObj=oT;const sT=e=>e.key.startsWith(Nn.BLOCKLET_PREFERENCE_PREFIX)===!0;pt.isPreferenceKey=sT;const nte=(e,t)=>!!(e.required&&(!e.value&&!t[e.key]||Object.values(Nn.CHAIN_PROP_MAP).includes(e.key)&&Object.keys(t).includes(e.key)&&!t[e.key])),rte=(e={})=>{const t=[];return H$(e,n=>{var a;if(((a=n.meta)==null?void 0:a.group)===Nn.BlockletGroup.gateway)return;const r=n.configs||[],i=oT(e,n);r.forEach(o=>{nte(o,i)&&t.push({did:n.meta.did,key:o.key,description:o.description})})}),t.filter(n=>!sT(n))};var uat=pt.getAppMissingConfigs=rte;const ite=(e={},t={})=>{const n=[],r=e.configs||[],i=oT(t,e);return r.forEach(a=>{nte(a,i)&&n.push({did:e.meta.did,key:a.key,description:a.description})}),n};var cat=pt.getComponentMissingConfigs=ite;const ate=e=>e.payment?(e.payment.price||[]).map(n=>n.value||0).every(n=>n===0):!0;var fat=pt.isFreeBlocklet=ate;const ote=e=>!e.payment||!e.payment.componentPrice?!0:!e.payment.componentPrice.length;pt.isFreeComponent=ote;const ste=e=>e&&(Ou(e,t=>{t.configs&&(t.configs=t.configs.filter(n=>!sT(n)),t.configs.forEach(n=>{n.secure&&(n.value=n.value?"__encrypted__":"")})),(t.environments||[]).forEach(n=>{["BLOCKLET_APP_SK","BLOCKLET_APP_PSK"].includes(n.key)&&(n.value="__encrypted__")}),(t.migratedFrom||[]).forEach(n=>{n.appSk="__encrypted__"}),delete e.configObj,delete e.environmentObj},{sync:!0}),e);pt.wipeSensitiveData=ste;const lte=e=>{if(!e)return!1;const t=e.environments.find(n=>n.key==="BLOCKLET_DELETABLE");return t?t.value==="yes":!0};var dat=pt.isDeletableBlocklet=lte;const ute=e=>(e==null?void 0:e.group)===Nn.BlockletGroup.gateway;pt.isGatewayBlocklet=ute;const cte=e=>(e==null?void 0:e.group)===Nn.BlockletGroup.pack;pt.isPackBlocklet=cte;const fte=e=>{let t=!1;return $p(e,n=>{n.meta.group!==Nn.BlockletGroup.gateway&&(t=!0)}),t};var pat=pt.hasRunnableComponent=fte;const b2=(e,t=!1)=>{if(!e)return"";const{meta:n}=e;let r;if(!t&&e.environments){const i=e.environments.find(a=>a.key==="BLOCKLET_APP_NAME");i&&i.value&&(r=i.value)}return r||n.title||n.name};var hat=pt.getAppName=b2,mat=pt.getDisplayName=b2;const dte=(e,t=!1)=>{if(!e)return"";const{meta:n}=e;let r;if(!t&&e.environments){const i=e.environments.find(a=>a.key==="BLOCKLET_APP_DESCRIPTION");i&&i.value&&(r=i.value)}return r||n.description||n.name};var gat=pt.getAppDescription=dte;function pte(e){var r,i,a;const t=(a=(i=(r=e==null?void 0:e.site)==null?void 0:r.domainAliases)==null?void 0:i.sort((o,s)=>{var l,f,c,d;return(l=o.accessibility)!=null&&l.accessible&&((f=s.accessibility)!=null&&f.accessible)?+o.isProtected-+s.isProtected:+((c=s.accessibility)==null?void 0:c.accessible)-+((d=o.accessibility)==null?void 0:d.accessible)}))==null?void 0:a.map(o=>{var f;const s=(f=o==null?void 0:o.domainStatus)!=null&&f.isHttps?"https://":"http://",l=o==null?void 0:o.value;return`${s}${l}`}).filter(Boolean);return t==null?void 0:t[0]}pt.getAppUrl=pte;const hte=e=>{e&&($p(e,t=>{t.status=(0,Nn.fromBlockletStatus)(t.status),t.source!==void 0&&(t.source=(0,Nn.fromBlockletSource)(t.source))}),e.settings&&(e.settings.children||[]).forEach(t=>{$p(t,n=>{n.status=(0,Nn.fromBlockletStatus)(n.status),n.source!==void 0&&(n.source=(0,Nn.fromBlockletSource)(n.source))})}))};pt.fixBlockletStatus=hte;const lT=e=>{if(!e)return null;const t=e.meta||e||{},{interfaces:n=[]}=t;return Array.isArray(n)?n.find(r=>r.type===Nn.BLOCKLET_INTERFACE_TYPE_WEB):null};var yat=pt.findWebInterface=lT;const mte=e=>{if(!e)return null;const t=lT(e),{ports:n}=e;return!t||!n?null:n[t.port]};pt.findWebInterfacePort=mte;const uT=(e,t)=>{const n=[t];t===g2.AUTH&&n.push(g2.AUTH_SERVICE);const r=lT(e);return r?(r.services||[]).find(i=>n.includes(i.name)):null};var vat=pt.findServiceFromMeta=uT;const gte=e=>{if(!e)return y2.ALL;if((0,Jc.default)(e,"settings.whoCanAccess"))return e.settings.whoCanAccess;const t=uT(e.meta,g2.AUTH);return(0,Jc.default)(t,"config.whoCanAccess")?t.config.whoCanAccess:y2.ALL};var bat=pt.getWhoCanAccess=gte;const yte=(e,t)=>{const n=(e.configs||[]).find(i=>i.key===Nn.BLOCKLET_CONFIGURABLE_KEY.COMPONENT_ACCESS_WHO);if(n)return n.value;if(t&&(0,Jc.default)(t,"settings.whoCanAccess")&&(0,Jc.default)(t,"settings.whoCanAccess")!==y2.ALL)return(0,Jc.default)(t,"settings.whoCanAccess");const r=uT(e.meta,g2.AUTH);return(0,Jc.default)(r,"config.whoCanAccess")?r.config.whoCanAccess:y2.ALL};pt.getComponentWhoCanAccess=yte;const vte=({request:e,baseUrl:t})=>{const n=e.headers["x-blocklet-did"]||"",r=e.headers["x-blocklet-real-did"]||"",i=e.headers["x-path-prefix"]||"/",a=e.headers["x-group-path-prefix"]||"/";let o=t;return n!==r&&i!==a&&(o=(0,PU.default)((0,PU.default)(o,"/").replace(i,a),"")),o};pt.getConnectAppUrl=vte;const bte=(e,t)=>{const n=(t||"").includes(":")?":":/\./;return(e||"").replace(iat,(t||"").replace(new RegExp(n,"g"),"-"))};var Ete=pt.replaceSlotToIp=bte;const Y0=e=>{const t=Object.entries(Nn.CHAIN_INFO_CONFIG).reduce((n,r)=>{const[i,[a,o]]=r;return n[a]=(0,Jc.default)(e,i)||o,n},{});return t.type==="ethereum"&&t.id==="none"&&(t.id="1"),t};pt.getChainInfo=Y0;const Tte=e=>{const t=Y0({});if(!e)return t;const n=Y0(e.configObj);if(n.host!=="none")return n;let r;return J$(e,i=>{if(r&&r.host!=="none")return;const a=Y0(i.configObj);a.host!=="none"&&(r=a)}),r||t};pt.getBlockletChainInfo=Tte;const Ate=e=>!!(e!=null&&e.controller);pt.isExternalBlocklet=Ate;const wte=e=>e.whoCanAccess.startsWith(MU)?e.whoCanAccess.substring(MU.length).split(","):[];var Eat=pt.getRolesFromAuthConfig=wte;const Tat=e=>{const t=Array.isArray(e.migratedFrom)?e.migratedFrom.map(n=>n.appDid):[];return(0,tat.default)([e.appDid,e.appPid,...t].filter(Boolean))};var Ste=pt.getBlockletAppIdList=Tat;const _te=e=>{const t=[];return e&&$p(e,n=>{var i;(((i=n.meta)==null?void 0:i.interfaces)||[]).filter(a=>a.type===Nn.BLOCKLET_INTERFACE_TYPE_SERVICE).forEach(a=>{const o=a.port||{};t.push({name:a.name,protocol:a.protocol,port:Number(o.external),upstreamPort:Number((n.ports||{})[o.internal])})})}),t};pt.getBlockletServices=_te;const xte=e=>[Nn.BlockletStatus.downloading,Nn.BlockletStatus.waiting,Nn.BlockletStatus.starting,Nn.BlockletStatus.installing,Nn.BlockletStatus.stopping,Nn.BlockletStatus.upgrading,"downloading","waiting","starting","installing","extracting","stopping","upgrading","restarting","deleting"].includes(e);var Aat=pt.isInProgress=xte;const Cte=e=>[Nn.BlockletStatus.added,Nn.BlockletStatus.waiting,Nn.BlockletStatus.downloading,Nn.BlockletStatus.installing,"added","waiting","downloading","installing"].includes(e);pt.isBeforeInstalled=Cte;const Rte=e=>[Nn.BlockletStatus.running,"running"].includes(e);pt.isRunning=Rte;const $te=e=>[Nn.BlockletStatus.running,Nn.BlockletStatus.waiting,Nn.BlockletStatus.downloading,"running","waiting","downloading"].includes(e);var wat=pt.isAccessible=$te;const Ite=(e,{type:t,did:n}={type:"",did:""})=>{var r,i,a;return e?!(0,F$.default)(e.meta)&&((a=(i=(r=e.meta)==null?void 0:r.resource)==null?void 0:i.bundles)==null?void 0:a.length)>0&&(e.meta.resource.bundles||[]).some(o=>o.type===t&&o.did===n):!1};pt.hasResourceType=Ite;pt.default={isFreeBlocklet:ate,isFreeComponent:ote,forEachBlocklet:Ou,forEachBlockletSync:$p,forEachChild:j$,forEachChildSync:J$,forEachComponentV2:U$,forEachComponentV2Sync:H$,isDeletableBlocklet:lte,getSharedConfigObj:oT,getAppMissingConfigs:rte,getComponentMissingConfigs:ite,isEnvShareableToClient:tte,isEnvShareable:v2,wipeSensitiveData:ste,hasRunnableComponent:fte,getAppName:b2,getAppDescription:dte,getAppUrl:pte,getDisplayName:b2,fixBlockletStatus:hte,findWebInterface:lT,findWebInterfacePort:mte,findServiceFromMeta:uT,getWhoCanAccess:gte,getComponentWhoCanAccess:yte,replaceSlotToIp:bte,getComponentId:Fm,getComponentName:Kee,getComponentBundleId:Yee,findComponent:aT,findComponentById:Xee,findComponentV2:V$,findComponentByIdV2:Qee,filterComponentsV2:ete,getParentComponentName:Zee,getConnectAppUrl:vte,getChainInfo:Y0,getBlockletChainInfo:Tte,isExternalBlocklet:Ate,isPreferenceKey:sT,getRolesFromAuthConfig:wte,getBlockletServices:_te,isInProgress:xte,isBeforeInstalled:Cte,isRunning:Rte,isAccessible:$te,isGatewayBlocklet:ute,isPackBlocklet:cte,hasStartEngine:F$.default,hasResourceType:Ite};const vyt=(e,t=!1)=>{const n=e.routing.adminPath;return t?encodeURIComponent(On(window.location.origin,n)):On(window.location.origin,n)},Sat=async(e,{getIP:t}={})=>{if(!e||!e.length)return[];if(!t||!e.some(r=>r.value.includes(Xt.SLOT_FOR_IP_DNS_SITE)))return e;const n=await t();return n?e.map(r=>{try{return r.value=Ete(r.value,n),r}catch{return r}}).filter(Boolean):e},_at=e=>{const t={didSpace:null};return K0(e,n=>{var r,i;t.didSpace===Pa.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED||t.didSpace===Pa.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP||(i=(r=n==null?void 0:n.meta)==null?void 0:r.capabilities)!=null&&i.didSpace&&(t.didSpace=n.meta.capabilities.didSpace)}),t},BU=async(e,{fixRuntime:t=!0,oldBlocklet:n,getIP:r}={})=>{if(e.site||(e.site={domainAliases:[],rules:[]}),e.site.rules.forEach(i=>{i.from.pathPrefix=Hee(i.from.pathPrefix||"/")}),e.site.rules=mQ(e.site.rules,i=>i.from.pathPrefix),t===!0)e.site.domainAliases=await Sat(e.site.domainAliases,{getIP:r}),e.appRuntimeInfo&&(e.appRuntimeInfo.startAt=new Date-e.appRuntimeInfo.uptime),K0(e,i=>{i.runtimeInfo&&(i.runtimeInfo.startAt=new Date-i.runtimeInfo.uptime)});else if(t==="merge-old"&&n){e.site.domainAliases=n.site.domainAliases,e.appRuntimeInfo=n.appRuntimeInfo;const i={};K0(n,(a,{id:o})=>{i[o]=a}),K0(e,(a,{id:o})=>{const s=i[o];s&&(a.runtimeInfo=s.runtimeInfo,a.diskInfo=s.diskInfo,a.engine=s.engine)})}else e.site.domainAliases=[];e.capabilities=_at(e)},NU="arcblock",byt=(e,t=!1)=>{let n;return t?(n=(e.configs||[]).find(r=>r.key==="BLOCKLET_APP_CHAIN_TYPE"),n&&n.value||(n=(e.environments||[]).find(r=>["CHAIN_TYPE","BLOCKLET_APP_CHAIN_TYPE"].includes(r.key)),n&&n.value)?n.value:NU):(n=(e.environments||[]).find(r=>["CHAIN_TYPE","BLOCKLET_APP_CHAIN_TYPE"].includes(r.name)),n&&n.default?n.default:NU)},Eyt=e=>!LX(e==null?void 0:e.controller),xat=gSe(e=>{const{origin:t,hostname:n}=new URL(e);return n===window.location.hostname?!0:Jee(On(t,Xt.WELLKNOWN_PING_PREFIX))}),ud={};function Cat({urls:e,checkAccessible:t=Jee,disableCache:n=!1}){const r=W.useRef(e.filter(c=>ud[c]).map(c=>ud[c])),i=r.current.length===e.length,[a,o]=W.useState(i?r.current:[]),[s,l]=W.useState(!i),f=W.useMemo(()=>!s&&a.length?a[0]:null,[a,s]);return W.useEffect(()=>{(e==null?void 0:e.length)>0&&!i&&(async()=>{let d;l(!0),n?(d=await LU.evaluateURLs(e,{checkAccessible:t}),d.forEach(p=>{ud[p.url]=p})):((await LU.evaluateURLs(e.filter(g=>!ud[g]),{checkAccessible:t})).forEach(g=>{ud[g.url]=g}),d=e.map(g=>ud[g]).sort((g,v)=>v.score-g.score)),o(d),l(!1)})()},[e,n,i]),{urlsState:a,loading:s,recommendedUrlState:f,recommendedUrl:f==null?void 0:f.url}}function Rat(e){var o;const t=W.useMemo(()=>e.map(s=>Gee(s)),[e]),{urlsState:n,loading:r,recommendedUrl:i}=Cat({urls:t,checkAccessible:xat});let a;if(r)a={domainsAccessibility:e.reduce((s,l)=>({...s,[l]:{loading:!0}}),{}),recommendedDomain:null};else{const s=n.reduce((f,c)=>{const d=new URL(c.url).hostname;return f[d]={...c,domain:d},f},{}),l=((o=n.find(f=>f.accessible))==null?void 0:o.url)||i;a={domainsAccessibility:s,recommendedDomain:l?new URL(l).hostname:null}}return a}const $at=(e,t)=>{const n=typeof t!="number"?Number(t):t;if(Number.isNaN(n)||n<=0)return 0;const r=Math.floor(e/n*100);return Math.min(Math.max(r,0),100)},Ip="ttl-";function Iat(e,t,n=0){if(t==null){localStorage.removeItem(Ip+e);return}const r={value:t,expiry:Date.now()+n};localStorage.setItem(Ip+e,JSON.stringify(r))}function kat(e){Dte();const t=localStorage.getItem(Ip+e);if(!t)return null;const n=JSON.parse(t);return Date.now()>n.expiry?(localStorage.removeItem(Ip+e),null):n.value}function kte(e){localStorage.removeItem(Ip+e)}let u_=null;function Dte(e=!1){const t=Date.now();if(!(!e&&u_&&t-u_<60*1e3*5)){u_=t;for(let n=0;n<localStorage.length;n++){const r=localStorage.key(n);if(r.startsWith(Ip)){const i=localStorage.getItem(r);if(i){let a;try{a=JSON.parse(i)}catch{continue}t>a.expiry&&localStorage.removeItem(r)}}}}}Dte();const E2=e=>`blocklet-status-${e}`,Dat={installed:1,starting:1,running:1,stopped:1,upgrading:1,restarting:1,deleting:1};function FU(e){if(e){const t=e.children||[];let n=!1;t.forEach(r=>{var i,a;if(r.status==="downloading"){const o=kat(E2((i=r.meta)==null?void 0:i.bundleDid));r.status=o||r.status,o==="extracting"&&(n=!0)}else Dat[e.status]&&kte(E2((a=r.meta)==null?void 0:a.bundleDid))}),n&&(e.status="extracting")}}function Oat({did:e,client:t,useSubscription:n,getIP:r,useLocaleContext:i,disableSubscription:a,getOptionalComponents:o}){var C,I,x,_,y,k,re,N,X;const{t:s,locale:l}=i(),[f,c]=W.useState(null),[d,p]=W.useState(!1),[g,v]=W.useState(!1),[b,R]=W.useState(),[A,$]=W.useState({cpu:[],memory:[]}),[D,M]=W.useState({}),F=(I=(C=b==null?void 0:b.site)==null?void 0:C.domainAliases)!=null&&I.length?JSON.stringify(b.site.domainAliases.map(ne=>ne.value)):"",U=W.useMemo(()=>{var ne;return(((ne=b==null?void 0:b.site)==null?void 0:ne.domainAliases)||[]).map(le=>le.value)},[F]),{domainsAccessibility:V,recommendedDomain:Z}=Rat(U),ie=async()=>{v(!0);try{const{blocklet:ne}=await t.getBlocklet({input:{did:e,attachRuntimeInfo:!0,getOptionalComponents:o}});await BU(ne,{getIP:r}),FU(ne),R(ne)}catch(ne){Ci.error(ne.message)}finally{v(!1)}},fe=async()=>{try{const ne=await t.getBlockletRuntimeHistory({input:{did:e,hours:6}});ne&&$({cpu:ne.history.map(le=>({date:le.date,value:le.cpu})),memory:ne.history.map(le=>({date:le.date,value:le.mem}))})}catch(ne){Ci.error(ne.message)}},Q=async({showError:ne=!0,attachRuntimeInfo:le=!0}={})=>{if(!d)try{p(!0),c(null);const{blocklet:me}=await t.getBlocklet({input:{did:e,getOptionalComponents:o}});if(me)R(we=>(BU(me,{fixRuntime:"merge-old",oldBlocklet:we}),FU(me),me)),p(!1),le&&(ie(),fe());else throw new Error(s("blocklet.notFound"))}catch(me){p(!1),c(me),ne&&Ci.error(me.message)}},L=ne=>{var le;((le=ne==null?void 0:ne.meta)==null?void 0:le.did)===b.meta.did&&Q({showError:!1})},T=ne=>{var le;((le=ne==null?void 0:ne.meta)==null?void 0:le.did)===b.meta.did&&Q({attachRuntimeInfo:!1,showError:!1})},u=ne=>{var le,me;!ne||((le=ne.meta)==null?void 0:le.did)!==((me=b==null?void 0:b.meta)==null?void 0:me.did)||(ne.status==="extracting"&&R(we=>{if(!we)return we;const j=we.children||[];return j.forEach(P=>{var K,z,te;((K=P.meta)==null?void 0:K.bundleDid)===((z=ne.component)==null?void 0:z.did)&&(Iat(E2((te=P.meta)==null?void 0:te.bundleDid),ne.status,1e3*60*5),P.status=ne.status)}),{...we,children:j,status:ne.status}}),ne.status==="downloading"&&ne.total&&R(we=>{if(!we)return we;const j=we.children||[];let P=we.progress||0;return j.forEach(K=>{var z,te,ye;((z=K.meta)==null?void 0:z.bundleDid)===((te=ne.component)==null?void 0:te.did)&&(K.progress=$at(ne.current,ne.total),K.status=ne.status,K.progress>P&&(P=K.progress),kte(E2((ye=K.meta)==null?void 0:ye.bundleDid)))}),{...we,children:j,progress:P}}))},h=()=>{e&&F&&t.checkDomains({input:{did:e}}).catch(ne=>{console.error(ne)})},E=async ne=>{const{blocklet:le}=await t.configNavigations({input:{did:e,navigations:ne}});R(le)};W.useEffect(()=>{F&&!a&&h()},[F,a]),n(Pa.BlockletEvents.domainStatus,ne=>{M(le=>({...le,[ne.domain]:{...le[ne.domain],...ne}}))},[(x=b==null?void 0:b.meta)==null?void 0:x.did,!a]),n(Pa.BlockletEvents.statusChange,ne=>{var le;((le=ne==null?void 0:ne.meta)==null?void 0:le.did)===b.meta.did&&(R(me=>{const we={...me};return we.status=Pa.fromBlockletStatus(ne.status),(we.children||[]).forEach(j=>{const P=ne.children.find(K=>{var z,te;return((z=K.meta)==null?void 0:z.did)===((te=j.meta)==null?void 0:te.did)});P&&(j.status=Pa.fromBlockletStatus(P.status))}),we}),T(ne))},[(_=b==null?void 0:b.meta)==null?void 0:_.did,!a]),n(Pa.BlockletEvents.storeChange,T,[(y=b==null?void 0:b.meta)==null?void 0:y.did,!a]),n(Pa.BlockletEvents.installed,L,[(k=b==null?void 0:b.meta)==null?void 0:k.did,!a]),n(Pa.BlockletEvents.upgraded,L,[(re=b==null?void 0:b.meta)==null?void 0:re.did,!a]),n(Pa.BlockletEvents.updated,L,[(N=b==null?void 0:b.meta)==null?void 0:N.did,!a]),n(Pa.BlockletEvents.downloadBundleProgress,u,[(X=b==null?void 0:b.meta)==null?void 0:X.did,!a]);const S=b?Hi(b,{site:{domainAliases:b.site.domainAliases.map(ne=>{const le=ne.value,me=Vit(le);return ne.domainStatus=E6(D[me],["domain","meta"]),ne.accessibility=E6(V[le],["domain"]),ne.href=Nit({blocklet:b,domain:ne,params:Hit(b,l)}),ne})}}):null;return{loading:d,loadingRuntimeInfo:g,error:f,blocklet:S,runtimeHistory:A,recommendedDomain:Z||"",actions:{refreshBlocklet:Q,refreshDomainStatus:h,setBlocklet:R,configNavigations:E}}}var Ote={exports:{}};/*!
|
|
548
|
+
}`}),{headers:{"Content-Type":"application/json",Accept:"application/json"},timeout:6e4}),r=Fs(n.data,"data.getAssetState.state");return r&&r.data.typeUrl==="json"&&(r.data.value=JSON.parse(r.data.value)),r}function nyt(e){return ZIe(Fs(e,"data.value.expirationDate",[]))}const ryt=(e,t)=>{if(typeof e=="string"){let n=decodeURIComponent(e==null?void 0:e.trim());/^https?:\/\//.test(n)||(n=`https://${n}`),n=oit(n,"/");try{new URL(n)}catch{throw new Error("Invalid Blocklet Store URL")}return t!=null&&t.some(i=>[e,n].includes(i.url))?{isNew:!1,decoded:n}:{isNew:!0,decoded:n}}return{isNew:!1,decoded:""}};var cj;const iyt=((cj=window.env)==null?void 0:cj.groupPathPrefix)||"/",ayt=[Xt.ROLES.ADMIN,Xt.ROLES.OWNER],Vit=e=>{if(e.endsWith(Xt.DEFAULT_IP_DOMAIN_SUFFIX)){const n=e.split(".").shift().match(Xt.IP);if(n)return e.replace(n[0].slice(1),Xt.SLOT_FOR_IP_DNS_SITE)}return e},oyt=({fromBlocklet:e,nodeInfo:t,blocklet:n})=>{var a,o;const r=e?(a=n==null?void 0:n.meta)==null?void 0:a.did:t==null?void 0:t.did,i=e?((o=n==null?void 0:n.settings)==null?void 0:o.storeList)||[]:(t==null?void 0:t.blockletRegistryList)||[];return{teamDid:r,storeList:i}},qy=e=>e?e.endsWith(Xt.DEFAULT_DID_DOMAIN)||e.endsWith(Xt.DEFAULT_IP_DOMAIN_SUFFIX)||e.endsWith(Xt.DEFAULT_SLP_DOMAIN):!1,syt=e=>(e||[]).sort((t,n)=>qy(t.value)&&qy(n.value)?0:qy(t.value)?1:qy(n.value)?-1:1),lyt=e=>Hee(Bit(e)),uyt=({launcherUrl:e="",nftId:t="",locale:n="en"})=>On(e,`/instances/${t}/renewal?locale=${n}&return-url=${encodeURIComponent(window.location.href)}`),cyt=async({launcherUrl:e="",nftId:t="",locale:n="en"})=>{var i;if(!e)return"";let r=On(e,"/instances");try{const{data:a}=await Fee.get(On(e,"__blocklet__.js?type=json"),{timeout:5e3}),o=(i=a.componentMountPoints)==null?void 0:i.find(l=>l.did==="z8iZy4P83i6AgnNdNUexsh2kBcsDHoqcwPavn"),s=new URL(e);r=On(s.origin,o==null?void 0:o.mountPoint,"/nfts")}catch(a){console.error(a)}return On(r,`/${t}/subscription?locale=${n}&return-url=${encodeURIComponent(window.location.href)}`)},fyt=(e=16)=>[...Array(e)].map(()=>Math.random().toString(36)[2]).join(""),dyt=e=>e.filter(t=>t.isProtected),pyt=e=>encodeURIComponent((e||"").split("/").slice(-1)[0].slice(0,7)),qit=e=>(e.environments||[]).some(t=>t.required),hyt=e=>{var t,n;return!!((n=(t=e.requirements)==null?void 0:t.fuels)!=null&&n.length)||qit(e)};var pt={},Git=hQ;function Wit(e){return e&&e.length?Git(e):[]}var Wee=Wit;const myt=Ft(Wee);class zit{constructor(t){this.value=t,this.next=void 0}}let Kit=class{constructor(){this.clear()}enqueue(t){const n=new zit(t);this._head?(this._tail.next=n,this._tail=n):(this._head=n,this._tail=n),this._size++}dequeue(){const t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};var Yit=Kit;const Zit=Yit,Xit=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=new Zit;let n=0;const r=()=>{n--,t.size>0&&t.dequeue()()},i=async(s,l,...f)=>{n++;const c=(async()=>s(...f))();l(c);try{await c}catch{}r()},a=(s,l,...f)=>{t.enqueue(i.bind(null,s,l,...f)),(async()=>(await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()))()},o=(s,...l)=>new Promise(f=>{a(s,f,...l)});return Object.defineProperties(o,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),o};var Qit=Xit,N$={};Object.defineProperty(N$,"__esModule",{value:!0});const eat=e=>!!(e!=null&&e.main);var yyt=N$.default=eat,gh=et&&et.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pt,"__esModule",{value:!0});pt.isPackBlocklet=pt.isGatewayBlocklet=wat=pt.isAccessible=pt.isRunning=pt.isBeforeInstalled=Aat=pt.isInProgress=pt.getBlockletServices=Ste=pt.getBlockletAppIdList=Eat=pt.getRolesFromAuthConfig=pt.isPreferenceKey=pt.isExternalBlocklet=pt.getBlockletChainInfo=pt.getChainInfo=pt.getConnectAppUrl=pt.getParentComponentName=pt.filterComponentsV2=oat=pt.findComponentByIdV2=pt.findComponentV2=pt.findComponentById=pt.findComponent=pt.getComponentBundleId=pt.getComponentName=pt.getComponentId=Ete=pt.replaceSlotToIp=pt.getComponentWhoCanAccess=bat=pt.getWhoCanAccess=vat=pt.findServiceFromMeta=pt.findWebInterfacePort=yat=pt.findWebInterface=pt.fixBlockletStatus=gat=pt.getAppDescription=mat=pt.getDisplayName=hat=pt.getAppName=pat=pt.hasRunnableComponent=pt.wipeSensitiveData=sat=pt.isEnvShareable=pt.isEnvShareableToClient=cat=pt.getComponentMissingConfigs=uat=pt.getAppMissingConfigs=lat=pt.getSharedConfigObj=dat=pt.isDeletableBlocklet=pt.forEachComponentV2Sync=pt.forEachComponentV2=aat=pt.forEachChildSync=pt.forEachChild=K0=pt.forEachBlockletSync=pt.forEachBlocklet=pt.isFreeComponent=fat=pt.isFreeBlocklet=pt.getAppUrl=void 0;pt.hasResourceType=rat=pt.hasStartEngine=void 0;const Jc=gh(pm),tat=gh(Wee),PU=gh(bK),zee=gh(Qit),nat=gh(Xt),Nn=Pa,F$=gh(N$);var rat=pt.hasStartEngine=F$.default;const{NODE_SERVICES:g2,SLOT_FOR_IP_DNS_SITE:iat,WHO_CAN_ACCESS:y2,WHO_CAN_ACCESS_PREFIX_ROLES:MU}=nat.default,Fm=(e,t=[])=>`${t.map(n=>n&&n.meta?n.meta.did:"").join("/")}${t.length?"/":""}${e&&e.meta?e.meta.did:""}`;pt.getComponentId=Fm;const Kee=(e,t=[])=>`${t.map(n=>n&&n.meta?n.meta.name:"").join("/")}${t.length?"/":""}${e&&e.meta?e.meta.name:""}`;pt.getComponentName=Kee;const Yee=e=>`${e.meta.bundleName}@${e.meta.version}`;pt.getComponentBundleId=Yee;const Zee=e=>{if(!e)return"";const t=e.split("/");return t.pop(),!t.length||(t[t.length-1].startsWith("@")&&t.pop(),!t.length)?"":t.join("/")};pt.getParentComponentName=Zee;const Ou=(e,t,{parallel:n=!1,concurrencyLimit:r=5,sync:i,params:a,_parent:o,_root:s,_level:l=0,_tasks:f,_ancestors:c=[],_limit:d}={})=>{const p=s||o||e,g=Fm(e,c),v=c.concat(e);if(i){const A=t(e,{parent:o,root:p,level:l,params:a,ancestors:c,id:g});if(e.children)for(const $ of e.children)Ou($,t,{sync:i,params:A,_parent:e,_root:p,_level:l+1,_ancestors:v});return null}if(!n)return new Promise(async(A,$)=>{try{const D=await t(e,{parent:o,root:p,level:l,ancestors:c,params:a,id:g});if(e.children)for(const M of e.children)await Ou(M,t,{params:D,_parent:e,_root:p,_level:l+1,_ancestors:v});A(null)}catch(D){$(D)}});const b=d||(0,zee.default)(r),R=f||[];if(R.push(b(()=>t(e,{parent:o,root:p,level:l,ancestors:c,id:g}))),e.children)for(const A of e.children)Ou(A,t,{parallel:n,_parent:e,_root:p,_level:l+1,_tasks:R,_ancestors:v,_limit:b});return f?null:Promise.all(R)};pt.forEachBlocklet=Ou;const $p=(e,t)=>Ou(e,t,{sync:!0});var K0=pt.forEachBlockletSync=$p;const U$=(e,t,{parallel:n=!1,concurrencyLimit:r=5,sync:i}={})=>{if(i){if(e.children)for(const s of e.children)t(s);return null}if(!n)return new Promise(async(s,l)=>{try{if(e.children)for(const f of e.children)await t(f);s(null)}catch(f){l(f)}});const a=(0,zee.default)(r),o=[];if(e.children)for(const s of e.children)o.push(a(()=>t(s)));return Promise.all(o)};pt.forEachComponentV2=U$;const H$=(e,t)=>U$(e,t,{sync:!0});pt.forEachComponentV2Sync=H$;const j$=(e,t,n)=>Ou(e,(r,i)=>i.level===0?{}:t(r,i),n);pt.forEachChild=j$;const J$=(e,t)=>j$(e,t,{sync:!0});var aat=pt.forEachChildSync=J$;const aT=(e,t,{_ancestors:n=[],returnAncestors:r=!1}={})=>{if(!t)return null;if(t(e,{ancestors:n}))return r?{component:e,ancestors:n}:e;for(const i of e.children||[]){const a=n.concat(e),o=aT(i,t,{_ancestors:a,returnAncestors:r});if(o)return o}return null};pt.findComponent=aT;const Xee=(e,t,{returnAncestors:n=!1}={})=>(Array.isArray(t)&&(t=t.join("/")),aT(e,(r,{ancestors:i})=>{const a=Fm(r,i);return t===a},{returnAncestors:n}));pt.findComponentById=Xee;const V$=(e,t)=>{if(!t)return null;for(const n of e.children||[])if(t(n,e))return n;return null};pt.findComponentV2=V$;const Qee=(e,t)=>t?(Array.isArray(t)&&(t=t.join("/")),V$(e,(n,r)=>{if(t.includes("/")){const i=Fm(n,[r]);return t===i}return t===n.meta.did})):null;var oat=pt.findComponentByIdV2=Qee;const ete=(e,t)=>{if(!t)return[];const n=[];for(const r of e.children||[])t(r,e)&&n.push(r);return n};pt.filterComponentsV2=ete;const tte=e=>!!e&&!!(e.key||e.name)&&!e.secure&&e.shared!==!1&&!Nn.BLOCKLET_CONFIGURABLE_KEY[e.key||e.name];pt.isEnvShareableToClient=tte;const v2=e=>!!e&&!!(e.key||e.name)&&!e.secure&&!!e.shared&&!Nn.BLOCKLET_CONFIGURABLE_KEY[e.key||e.name];var sat=pt.isEnvShareable=v2;const oT=(e,t)=>{const n={};return!e||!t||(Array.isArray(e.configs)&&e.configs.forEach(({key:r,value:i,secure:a})=>{if(!v2({key:r,secure:a,shared:!0}))return;const o=(e.configObj||{})[r]||i,s=(t.configs||[]).find(l=>l.key===r);(!s||v2(s)||!s.value&&!(t.configObj||{})[s.key])&&(n[r]=o)}),(e.configs||[]).forEach(({key:r,value:i})=>{[Nn.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_HOST,Nn.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_ID,Nn.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_TYPE].includes(r)&&(n[Nn.CHAIN_PROP_MAP[r]]=i)})),n};var lat=pt.getSharedConfigObj=oT;const sT=e=>e.key.startsWith(Nn.BLOCKLET_PREFERENCE_PREFIX)===!0;pt.isPreferenceKey=sT;const nte=(e,t)=>!!(e.required&&(!e.value&&!t[e.key]||Object.values(Nn.CHAIN_PROP_MAP).includes(e.key)&&Object.keys(t).includes(e.key)&&!t[e.key])),rte=(e={})=>{const t=[];return H$(e,n=>{var a;if(((a=n.meta)==null?void 0:a.group)===Nn.BlockletGroup.gateway)return;const r=n.configs||[],i=oT(e,n);r.forEach(o=>{nte(o,i)&&t.push({did:n.meta.did,key:o.key,description:o.description})})}),t.filter(n=>!sT(n))};var uat=pt.getAppMissingConfigs=rte;const ite=(e={},t={})=>{const n=[],r=e.configs||[],i=oT(t,e);return r.forEach(a=>{nte(a,i)&&n.push({did:e.meta.did,key:a.key,description:a.description})}),n};var cat=pt.getComponentMissingConfigs=ite;const ate=e=>e.payment?(e.payment.price||[]).map(n=>n.value||0).every(n=>n===0):!0;var fat=pt.isFreeBlocklet=ate;const ote=e=>!e.payment||!e.payment.componentPrice?!0:!e.payment.componentPrice.length;pt.isFreeComponent=ote;const ste=e=>e&&(Ou(e,t=>{t.configs&&(t.configs=t.configs.filter(n=>!sT(n)),t.configs.forEach(n=>{n.secure&&(n.value=n.value?"__encrypted__":"")})),(t.environments||[]).forEach(n=>{["BLOCKLET_APP_SK","BLOCKLET_APP_PSK"].includes(n.key)&&(n.value="__encrypted__")}),(t.migratedFrom||[]).forEach(n=>{n.appSk="__encrypted__"}),delete e.configObj,delete e.environmentObj},{sync:!0}),e);pt.wipeSensitiveData=ste;const lte=e=>{if(!e)return!1;const t=e.environments.find(n=>n.key==="BLOCKLET_DELETABLE");return t?t.value==="yes":!0};var dat=pt.isDeletableBlocklet=lte;const ute=e=>(e==null?void 0:e.group)===Nn.BlockletGroup.gateway;pt.isGatewayBlocklet=ute;const cte=e=>(e==null?void 0:e.group)===Nn.BlockletGroup.pack;pt.isPackBlocklet=cte;const fte=e=>{let t=!1;return $p(e,n=>{n.meta.group!==Nn.BlockletGroup.gateway&&(t=!0)}),t};var pat=pt.hasRunnableComponent=fte;const b2=(e,t=!1)=>{if(!e)return"";const{meta:n}=e;let r;if(!t&&e.environments){const i=e.environments.find(a=>a.key==="BLOCKLET_APP_NAME");i&&i.value&&(r=i.value)}return r||n.title||n.name};var hat=pt.getAppName=b2,mat=pt.getDisplayName=b2;const dte=(e,t=!1)=>{if(!e)return"";const{meta:n}=e;let r;if(!t&&e.environments){const i=e.environments.find(a=>a.key==="BLOCKLET_APP_DESCRIPTION");i&&i.value&&(r=i.value)}return r||n.description||n.name};var gat=pt.getAppDescription=dte;function pte(e){var r,i,a;const t=(a=(i=(r=e==null?void 0:e.site)==null?void 0:r.domainAliases)==null?void 0:i.sort((o,s)=>{var l,f,c,d;return(l=o.accessibility)!=null&&l.accessible&&((f=s.accessibility)!=null&&f.accessible)?+o.isProtected-+s.isProtected:+((c=s.accessibility)==null?void 0:c.accessible)-+((d=o.accessibility)==null?void 0:d.accessible)}))==null?void 0:a.map(o=>{var f;const s=(f=o==null?void 0:o.domainStatus)!=null&&f.isHttps?"https://":"http://",l=o==null?void 0:o.value;return`${s}${l}`}).filter(Boolean);return t==null?void 0:t[0]}pt.getAppUrl=pte;const hte=e=>{e&&($p(e,t=>{t.status=(0,Nn.fromBlockletStatus)(t.status),t.source!==void 0&&(t.source=(0,Nn.fromBlockletSource)(t.source))}),e.settings&&(e.settings.children||[]).forEach(t=>{$p(t,n=>{n.status=(0,Nn.fromBlockletStatus)(n.status),n.source!==void 0&&(n.source=(0,Nn.fromBlockletSource)(n.source))})}))};pt.fixBlockletStatus=hte;const lT=e=>{if(!e)return null;const t=e.meta||e||{},{interfaces:n=[]}=t;return Array.isArray(n)?n.find(r=>r.type===Nn.BLOCKLET_INTERFACE_TYPE_WEB):null};var yat=pt.findWebInterface=lT;const mte=e=>{if(!e)return null;const t=lT(e),{ports:n}=e;return!t||!n?null:n[t.port]};pt.findWebInterfacePort=mte;const uT=(e,t)=>{const n=[t];t===g2.AUTH&&n.push(g2.AUTH_SERVICE);const r=lT(e);return r?(r.services||[]).find(i=>n.includes(i.name)):null};var vat=pt.findServiceFromMeta=uT;const gte=e=>{if(!e)return y2.ALL;if((0,Jc.default)(e,"settings.whoCanAccess"))return e.settings.whoCanAccess;const t=uT(e.meta,g2.AUTH);return(0,Jc.default)(t,"config.whoCanAccess")?t.config.whoCanAccess:y2.ALL};var bat=pt.getWhoCanAccess=gte;const yte=(e,t)=>{const n=(e.configs||[]).find(i=>i.key===Nn.BLOCKLET_CONFIGURABLE_KEY.COMPONENT_ACCESS_WHO);if(n)return n.value;if(t&&(0,Jc.default)(t,"settings.whoCanAccess")&&(0,Jc.default)(t,"settings.whoCanAccess")!==y2.ALL)return(0,Jc.default)(t,"settings.whoCanAccess");const r=uT(e.meta,g2.AUTH);return(0,Jc.default)(r,"config.whoCanAccess")?r.config.whoCanAccess:y2.ALL};pt.getComponentWhoCanAccess=yte;const vte=({request:e,baseUrl:t})=>{const n=e.headers["x-blocklet-did"]||"",r=e.headers["x-blocklet-real-did"]||"",i=e.headers["x-path-prefix"]||"/",a=e.headers["x-group-path-prefix"]||"/";let o=t;return n!==r&&i!==a&&(o=(0,PU.default)((0,PU.default)(o,"/").replace(i,a),"")),o};pt.getConnectAppUrl=vte;const bte=(e,t)=>{const n=(t||"").includes(":")?":":/\./;return(e||"").replace(iat,(t||"").replace(new RegExp(n,"g"),"-"))};var Ete=pt.replaceSlotToIp=bte;const Y0=e=>{const t=Object.entries(Nn.CHAIN_INFO_CONFIG).reduce((n,r)=>{const[i,[a,o]]=r;return n[a]=(0,Jc.default)(e,i)||o,n},{});return t.type==="ethereum"&&t.id==="none"&&(t.id="1"),t};pt.getChainInfo=Y0;const Tte=e=>{const t=Y0({});if(!e)return t;const n=Y0(e.configObj);if(n.host!=="none")return n;let r;return J$(e,i=>{if(r&&r.host!=="none")return;const a=Y0(i.configObj);a.host!=="none"&&(r=a)}),r||t};pt.getBlockletChainInfo=Tte;const Ate=e=>!!(e!=null&&e.controller);pt.isExternalBlocklet=Ate;const wte=e=>e.whoCanAccess.startsWith(MU)?e.whoCanAccess.substring(MU.length).split(","):[];var Eat=pt.getRolesFromAuthConfig=wte;const Tat=e=>{const t=Array.isArray(e.migratedFrom)?e.migratedFrom.map(n=>n.appDid):[];return(0,tat.default)([e.appDid,e.appPid,...t].filter(Boolean))};var Ste=pt.getBlockletAppIdList=Tat;const _te=e=>{const t=[];return e&&$p(e,n=>{var i;(((i=n.meta)==null?void 0:i.interfaces)||[]).filter(a=>a.type===Nn.BLOCKLET_INTERFACE_TYPE_SERVICE).forEach(a=>{const o=a.port||{};t.push({name:a.name,protocol:a.protocol,port:Number(o.external),upstreamPort:Number((n.ports||{})[o.internal])})})}),t};pt.getBlockletServices=_te;const xte=e=>[Nn.BlockletStatus.downloading,Nn.BlockletStatus.waiting,Nn.BlockletStatus.starting,Nn.BlockletStatus.installing,Nn.BlockletStatus.stopping,Nn.BlockletStatus.upgrading,"downloading","waiting","starting","installing","extracting","stopping","upgrading","restarting","deleting"].includes(e);var Aat=pt.isInProgress=xte;const Cte=e=>[Nn.BlockletStatus.added,Nn.BlockletStatus.waiting,Nn.BlockletStatus.downloading,Nn.BlockletStatus.installing,"added","waiting","downloading","installing"].includes(e);pt.isBeforeInstalled=Cte;const Rte=e=>[Nn.BlockletStatus.running,"running"].includes(e);pt.isRunning=Rte;const $te=e=>[Nn.BlockletStatus.running,Nn.BlockletStatus.waiting,Nn.BlockletStatus.downloading,"running","waiting","downloading"].includes(e);var wat=pt.isAccessible=$te;const Ite=(e,{type:t,did:n}={type:"",did:""})=>{var r,i,a;return e?!(0,F$.default)(e.meta)&&((a=(i=(r=e.meta)==null?void 0:r.resource)==null?void 0:i.bundles)==null?void 0:a.length)>0&&(e.meta.resource.bundles||[]).some(o=>o.type===t&&o.did===n):!1};pt.hasResourceType=Ite;pt.default={isFreeBlocklet:ate,isFreeComponent:ote,forEachBlocklet:Ou,forEachBlockletSync:$p,forEachChild:j$,forEachChildSync:J$,forEachComponentV2:U$,forEachComponentV2Sync:H$,isDeletableBlocklet:lte,getSharedConfigObj:oT,getAppMissingConfigs:rte,getComponentMissingConfigs:ite,isEnvShareableToClient:tte,isEnvShareable:v2,wipeSensitiveData:ste,hasRunnableComponent:fte,getAppName:b2,getAppDescription:dte,getAppUrl:pte,getDisplayName:b2,fixBlockletStatus:hte,findWebInterface:lT,findWebInterfacePort:mte,findServiceFromMeta:uT,getWhoCanAccess:gte,getComponentWhoCanAccess:yte,replaceSlotToIp:bte,getComponentId:Fm,getComponentName:Kee,getComponentBundleId:Yee,findComponent:aT,findComponentById:Xee,findComponentV2:V$,findComponentByIdV2:Qee,filterComponentsV2:ete,getParentComponentName:Zee,getConnectAppUrl:vte,getChainInfo:Y0,getBlockletChainInfo:Tte,isExternalBlocklet:Ate,isPreferenceKey:sT,getRolesFromAuthConfig:wte,getBlockletServices:_te,isInProgress:xte,isBeforeInstalled:Cte,isRunning:Rte,isAccessible:$te,isGatewayBlocklet:ute,isPackBlocklet:cte,hasStartEngine:F$.default,hasResourceType:Ite};const vyt=(e,t=!1)=>{const n=e.routing.adminPath;return t?encodeURIComponent(On(window.location.origin,n)):On(window.location.origin,n)},Sat=async(e,{getIP:t}={})=>{if(!e||!e.length)return[];if(!t||!e.some(r=>r.value.includes(Xt.SLOT_FOR_IP_DNS_SITE)))return e;const n=await t();return n?e.map(r=>{try{return r.value=Ete(r.value,n),r}catch{return r}}).filter(Boolean):e},_at=e=>{const t={didSpace:null};return K0(e,n=>{var r,i;t.didSpace===Pa.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED||t.didSpace===Pa.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP||(i=(r=n==null?void 0:n.meta)==null?void 0:r.capabilities)!=null&&i.didSpace&&(t.didSpace=n.meta.capabilities.didSpace)}),t},BU=async(e,{fixRuntime:t=!0,oldBlocklet:n,getIP:r}={})=>{if(e.site||(e.site={domainAliases:[],rules:[]}),e.site.rules.forEach(i=>{i.from.pathPrefix=Hee(i.from.pathPrefix||"/")}),e.site.rules=mQ(e.site.rules,i=>i.from.pathPrefix),t===!0)e.site.domainAliases=await Sat(e.site.domainAliases,{getIP:r}),e.appRuntimeInfo&&(e.appRuntimeInfo.startAt=new Date-e.appRuntimeInfo.uptime),K0(e,i=>{i.runtimeInfo&&(i.runtimeInfo.startAt=new Date-i.runtimeInfo.uptime)});else if(t==="merge-old"&&n){e.site.domainAliases=n.site.domainAliases,e.appRuntimeInfo=n.appRuntimeInfo;const i={};K0(n,(a,{id:o})=>{i[o]=a}),K0(e,(a,{id:o})=>{const s=i[o];s&&(a.runtimeInfo=s.runtimeInfo,a.diskInfo=s.diskInfo,a.engine=s.engine)})}else e.site.domainAliases=[];e.capabilities=_at(e)},NU="arcblock",byt=(e,t=!1)=>{let n;return t?(n=(e.configs||[]).find(r=>r.key==="BLOCKLET_APP_CHAIN_TYPE"),n&&n.value||(n=(e.environments||[]).find(r=>["CHAIN_TYPE","BLOCKLET_APP_CHAIN_TYPE"].includes(r.key)),n&&n.value)?n.value:NU):(n=(e.environments||[]).find(r=>["CHAIN_TYPE","BLOCKLET_APP_CHAIN_TYPE"].includes(r.name)),n&&n.default?n.default:NU)},Eyt=e=>!LX(e==null?void 0:e.controller),xat=gSe(e=>{const{origin:t,hostname:n}=new URL(e);return n===window.location.hostname?!0:Jee(On(t,Xt.WELLKNOWN_PING_PREFIX))}),ud={};function Cat({urls:e,checkAccessible:t=Jee,disableCache:n=!1}){const r=W.useRef(e.filter(c=>ud[c]).map(c=>ud[c])),i=r.current.length===e.length,[a,o]=W.useState(i?r.current:[]),[s,l]=W.useState(!i),f=W.useMemo(()=>!s&&a.length?a[0]:null,[a,s]);return W.useEffect(()=>{(e==null?void 0:e.length)>0&&!i&&(async()=>{let d;l(!0),n?(d=await LU.evaluateURLs(e,{checkAccessible:t}),d.forEach(p=>{ud[p.url]=p})):((await LU.evaluateURLs(e.filter(g=>!ud[g]),{checkAccessible:t})).forEach(g=>{ud[g.url]=g}),d=e.map(g=>ud[g]).sort((g,v)=>v.score-g.score)),o(d),l(!1)})()},[e,n,i]),{urlsState:a,loading:s,recommendedUrlState:f,recommendedUrl:f==null?void 0:f.url}}function Rat(e){var o;const t=W.useMemo(()=>e.map(s=>Gee(s)),[e]),{urlsState:n,loading:r,recommendedUrl:i}=Cat({urls:t,checkAccessible:xat});let a;if(r)a={domainsAccessibility:e.reduce((s,l)=>({...s,[l]:{loading:!0}}),{}),recommendedDomain:null};else{const s=n.reduce((f,c)=>{const d=new URL(c.url).hostname;return f[d]={...c,domain:d},f},{}),l=((o=n.find(f=>f.accessible))==null?void 0:o.url)||i;a={domainsAccessibility:s,recommendedDomain:l?new URL(l).hostname:null}}return a}const $at=(e,t)=>{const n=typeof t!="number"?Number(t):t;if(Number.isNaN(n)||n<=0)return 0;const r=Math.floor(e/n*100);return Math.min(Math.max(r,0),100)},Ip="ttl-";function Iat(e,t,n=0){if(t==null){localStorage.removeItem(Ip+e);return}const r={value:t,expiry:Date.now()+n};localStorage.setItem(Ip+e,JSON.stringify(r))}function kat(e){Dte();const t=localStorage.getItem(Ip+e);if(!t)return null;const n=JSON.parse(t);return Date.now()>n.expiry?(localStorage.removeItem(Ip+e),null):n.value}function kte(e){localStorage.removeItem(Ip+e)}let u_=null;function Dte(e=!1){const t=Date.now();if(!(!e&&u_&&t-u_<60*1e3*5)){u_=t;for(let n=0;n<localStorage.length;n++){const r=localStorage.key(n);if(r.startsWith(Ip)){const i=localStorage.getItem(r);if(i){let a;try{a=JSON.parse(i)}catch{continue}t>a.expiry&&localStorage.removeItem(r)}}}}}Dte();const E2=e=>`blocklet-status-${e}`,Dat={installed:1,starting:1,running:1,stopped:1,upgrading:1,restarting:1,deleting:1};function FU(e){if(e){const t=e.children||[];let n=!1;t.forEach(r=>{var i,a;if(r.status==="downloading"){const o=kat(E2((i=r.meta)==null?void 0:i.bundleDid));r.status=o||r.status,o==="extracting"&&(n=!0)}else Dat[e.status]&&kte(E2((a=r.meta)==null?void 0:a.bundleDid))}),n&&(e.status="extracting")}}function Oat({did:e,client:t,useSubscription:n,getIP:r,useLocaleContext:i,disableSubscription:a,getOptionalComponents:o=!1}){var C,I,x,_,y,k,re,N,X;const{t:s,locale:l}=i(),[f,c]=W.useState(null),[d,p]=W.useState(!1),[g,v]=W.useState(!1),[b,R]=W.useState(),[A,$]=W.useState({cpu:[],memory:[]}),[D,M]=W.useState({}),F=(I=(C=b==null?void 0:b.site)==null?void 0:C.domainAliases)!=null&&I.length?JSON.stringify(b.site.domainAliases.map(ne=>ne.value)):"",U=W.useMemo(()=>{var ne;return(((ne=b==null?void 0:b.site)==null?void 0:ne.domainAliases)||[]).map(le=>le.value)},[F]),{domainsAccessibility:V,recommendedDomain:Z}=Rat(U),ie=async()=>{v(!0);try{const{blocklet:ne}=await t.getBlocklet({input:{did:e,attachRuntimeInfo:!0,getOptionalComponents:o}});await BU(ne,{getIP:r}),FU(ne),R(ne)}catch(ne){Ci.error(ne.message)}finally{v(!1)}},fe=async()=>{try{const ne=await t.getBlockletRuntimeHistory({input:{did:e,hours:6}});ne&&$({cpu:ne.history.map(le=>({date:le.date,value:le.cpu})),memory:ne.history.map(le=>({date:le.date,value:le.mem}))})}catch(ne){Ci.error(ne.message)}},Q=async({showError:ne=!0,attachRuntimeInfo:le=!0}={})=>{if(!d)try{p(!0),c(null);const{blocklet:me}=await t.getBlocklet({input:{did:e,getOptionalComponents:o}});if(me)R(we=>(BU(me,{fixRuntime:"merge-old",oldBlocklet:we}),FU(me),me)),p(!1),le&&(ie(),fe());else throw new Error(s("blocklet.notFound"))}catch(me){p(!1),c(me),ne&&Ci.error(me.message)}},L=ne=>{var le;((le=ne==null?void 0:ne.meta)==null?void 0:le.did)===b.meta.did&&Q({showError:!1})},T=ne=>{var le;((le=ne==null?void 0:ne.meta)==null?void 0:le.did)===b.meta.did&&Q({attachRuntimeInfo:!1,showError:!1})},u=ne=>{var le,me;!ne||((le=ne.meta)==null?void 0:le.did)!==((me=b==null?void 0:b.meta)==null?void 0:me.did)||(ne.status==="extracting"&&R(we=>{if(!we)return we;const j=we.children||[];return j.forEach(P=>{var K,z,te;((K=P.meta)==null?void 0:K.bundleDid)===((z=ne.component)==null?void 0:z.did)&&(Iat(E2((te=P.meta)==null?void 0:te.bundleDid),ne.status,1e3*60*5),P.status=ne.status)}),{...we,children:j,status:ne.status}}),ne.status==="downloading"&&ne.total&&R(we=>{if(!we)return we;const j=we.children||[];let P=we.progress||0;return j.forEach(K=>{var z,te,ye;((z=K.meta)==null?void 0:z.bundleDid)===((te=ne.component)==null?void 0:te.did)&&(K.progress=$at(ne.current,ne.total),K.status=ne.status,K.progress>P&&(P=K.progress),kte(E2((ye=K.meta)==null?void 0:ye.bundleDid)))}),{...we,children:j,progress:P}}))},h=()=>{e&&F&&t.checkDomains({input:{did:e}}).catch(ne=>{console.error(ne)})},E=async ne=>{const{blocklet:le}=await t.configNavigations({input:{did:e,navigations:ne}});R(le)};W.useEffect(()=>{F&&!a&&h()},[F,a]),n(Pa.BlockletEvents.domainStatus,ne=>{M(le=>({...le,[ne.domain]:{...le[ne.domain],...ne}}))},[(x=b==null?void 0:b.meta)==null?void 0:x.did,!a]),n(Pa.BlockletEvents.statusChange,ne=>{var le;((le=ne==null?void 0:ne.meta)==null?void 0:le.did)===b.meta.did&&(R(me=>{const we={...me};return we.status=Pa.fromBlockletStatus(ne.status),(we.children||[]).forEach(j=>{const P=ne.children.find(K=>{var z,te;return((z=K.meta)==null?void 0:z.did)===((te=j.meta)==null?void 0:te.did)});P&&(j.status=Pa.fromBlockletStatus(P.status))}),we}),T(ne))},[(_=b==null?void 0:b.meta)==null?void 0:_.did,!a]),n(Pa.BlockletEvents.storeChange,T,[(y=b==null?void 0:b.meta)==null?void 0:y.did,!a]),n(Pa.BlockletEvents.installed,L,[(k=b==null?void 0:b.meta)==null?void 0:k.did,!a]),n(Pa.BlockletEvents.upgraded,L,[(re=b==null?void 0:b.meta)==null?void 0:re.did,!a]),n(Pa.BlockletEvents.updated,L,[(N=b==null?void 0:b.meta)==null?void 0:N.did,!a]),n(Pa.BlockletEvents.downloadBundleProgress,u,[(X=b==null?void 0:b.meta)==null?void 0:X.did,!a]);const S=b?Hi(b,{site:{domainAliases:b.site.domainAliases.map(ne=>{const le=ne.value,me=Vit(le);return ne.domainStatus=E6(D[me],["domain","meta"]),ne.accessibility=E6(V[le],["domain"]),ne.href=Nit({blocklet:b,domain:ne,params:Hit(b,l)}),ne})}}):null;return{loading:d,loadingRuntimeInfo:g,error:f,blocklet:S,runtimeHistory:A,recommendedDomain:Z||"",actions:{refreshBlocklet:Q,refreshDomainStatus:h,setBlocklet:R,configNavigations:E}}}var Ote={exports:{}};/*!
|
|
549
549
|
* EventEmitter v5.2.9 - git.io/ee
|
|
550
550
|
* Unlicense - http://unlicense.org/
|
|
551
551
|
* Oliver Caldwell - https://oli.me.uk/
|
|
@@ -1292,10 +1292,10 @@ ${r.length}`,o=Nt.from(a),s=Nt.concat([o,i]);return kst.default.keccak256s(s)}et
|
|
|
1292
1292
|
`)&&e.flags==="s")}),Qht=Za,e0t=Ya,t0t=e0t.RegExp,n0t=Qht(function(){var e=t0t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Bd=Ah,CT=Sa,r0t=xT,i0t=_ht,a0t=$ht,o0t=mI,s0t=zht,l0t=_re.get,u0t=Xht,c0t=n0t,f0t=o0t("native-string-replace",String.prototype.replace),I2=RegExp.prototype.exec,Dx=I2,d0t=CT("".charAt),p0t=CT("".indexOf),h0t=CT("".replace),F_=CT("".slice),Ox=function(){var e=/a/,t=/b*/g;return Bd(I2,e,"a"),Bd(I2,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),Mre=a0t.BROKEN_CARET,Lx=/()??/.exec("")[1]!==void 0,m0t=Ox||Lx||Mre||u0t||c0t;m0t&&(Dx=function(t){var n=this,r=l0t(n),i=r0t(t),a=r.raw,o,s,l,f,c,d,p;if(a)return a.lastIndex=n.lastIndex,o=Bd(Dx,a,i),n.lastIndex=a.lastIndex,o;var g=r.groups,v=Mre&&n.sticky,b=Bd(i0t,n),R=n.source,A=0,$=i;if(v&&(b=h0t(b,"y",""),p0t(b,"g")===-1&&(b+="g"),$=F_(i,n.lastIndex),n.lastIndex>0&&(!n.multiline||n.multiline&&d0t(i,n.lastIndex-1)!==`
|
|
1293
1293
|
`)&&(R="(?: "+R+")",$=" "+$,A++),s=new RegExp("^(?:"+R+")",b)),Lx&&(s=new RegExp("^"+R+"$(?!\\s)",b)),Ox&&(l=n.lastIndex),f=Bd(I2,v?s:n,$),v?f?(f.input=F_(f.input,A),f[0]=F_(f[0],A),f.index=n.lastIndex,n.lastIndex+=f[0].length):n.lastIndex=0:Ox&&f&&(n.lastIndex=n.global?f.index+f[0].length:l),Lx&&f&&f.length>1&&Bd(f0t,f[0],s,function(){for(c=1;c<arguments.length-2;c++)arguments[c]===void 0&&(f[c]=void 0)}),f&&g)for(f.groups=d=s0t(null),c=0;c<g.length;c++)p=g[c],d[p[0]]=f[p[1]];return f});var _I=Dx,g0t=kre,UH=_I;g0t({target:"RegExp",proto:!0,forced:/./.exec!==UH},{exec:UH});var y0t=cI,Bre=Function.prototype,HH=Bre.apply,jH=Bre.call,v0t=typeof Reflect=="object"&&Reflect.apply||(y0t?jH.bind(HH):function(){return jH.apply(HH,arguments)}),b0t=Km,E0t=Sa,Nre=function(e){if(b0t(e)==="Function")return E0t(e)},JH=Nre,VH=Cre,T0t=_I,qH=Za,Fre=If,A0t=gI,w0t=Fre("species"),U_=RegExp.prototype,S0t=function(e,t,n,r){var i=Fre(e),a=!qH(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!qH(function(){var f=!1,c=/a/;return e==="split"&&(c={},c.constructor={},c.constructor[w0t]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return f=!0,null},c[i](""),!f});if(!a||!o||n){var s=JH(/./[i]),l=t(i,""[e],function(f,c,d,p,g){var v=JH(f),b=c.exec;return b===T0t||b===U_.exec?a&&!g?{done:!0,value:s(c,d,p)}:{done:!0,value:v(d,c,p)}:{done:!1}});VH(String.prototype,e,l[0]),VH(U_,i,l[1])}r&&A0t(U_[i],"sham",!0)},xI=Sa,_0t=_T,x0t=xT,C0t=Ym,R0t=xI("".charAt),GH=xI("".charCodeAt),$0t=xI("".slice),WH=function(e){return function(t,n){var r=x0t(C0t(t)),i=_0t(n),a=r.length,o,s;return i<0||i>=a?e?"":void 0:(o=GH(r,i),o<55296||o>56319||i+1===a||(s=GH(r,i+1))<56320||s>57343?e?R0t(r,i):o:e?$0t(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},I0t={codeAt:WH(!1),charAt:WH(!0)},k0t=I0t.charAt,D0t=function(e,t,n){return t+(n?k0t(e,t).length:1)},CI=Sa,O0t=mre,L0t=Math.floor,H_=CI("".charAt),P0t=CI("".replace),j_=CI("".slice),M0t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,B0t=/\$([$&'`]|\d{1,2})/g,N0t=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,l=B0t;return i!==void 0&&(i=O0t(i),l=M0t),P0t(a,l,function(f,c){var d;switch(H_(c,0)){case"$":return"$";case"&":return e;case"`":return j_(t,0,n);case"'":return j_(t,o);case"<":d=i[j_(c,1,-1)];break;default:var p=+c;if(p===0)return f;if(p>s){var g=L0t(p/10);return g===0?f:g<=s?r[g-1]===void 0?H_(c,1):r[g-1]+H_(c,1):f}d=r[p-1]}return d===void 0?"":d})},zH=Ah,F0t=kf,U0t=Xa,H0t=Km,j0t=_I,J0t=TypeError,V0t=function(e,t){var n=e.exec;if(U0t(n)){var r=zH(n,e,t);return r!==null&&F0t(r),r}if(H0t(e)==="RegExp")return zH(j0t,e,t);throw J0t("RegExp#exec called on incompatible receiver")},q0t=v0t,KH=Ah,RT=Sa,G0t=S0t,W0t=Za,z0t=kf,K0t=Xa,Y0t=fI,Z0t=_T,X0t=EI,dd=xT,Q0t=Ym,e1t=D0t,t1t=pre,n1t=N0t,r1t=V0t,i1t=If,Px=i1t("replace"),a1t=Math.max,o1t=Math.min,s1t=RT([].concat),J_=RT([].push),YH=RT("".indexOf),ZH=RT("".slice),l1t=function(e){return e===void 0?e:String(e)},u1t=function(){return"a".replace(/./,"$0")==="$0"}(),XH=function(){return/./[Px]?/./[Px]("a","$0")==="":!1}(),c1t=!W0t(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"});G0t("replace",function(e,t,n){var r=XH?"$":"$0";return[function(a,o){var s=Q0t(this),l=Y0t(a)?void 0:t1t(a,Px);return l?KH(l,a,s,o):KH(t,dd(s),a,o)},function(i,a){var o=z0t(this),s=dd(i);if(typeof a=="string"&&YH(a,r)===-1&&YH(a,"$<")===-1){var l=n(t,o,s,a);if(l.done)return l.value}var f=K0t(a);f||(a=dd(a));var c=o.global;if(c){var d=o.unicode;o.lastIndex=0}for(var p=[];;){var g=r1t(o,s);if(g===null||(J_(p,g),!c))break;var v=dd(g[0]);v===""&&(o.lastIndex=e1t(s,X0t(o.lastIndex),d))}for(var b="",R=0,A=0;A<p.length;A++){g=p[A];for(var $=dd(g[0]),D=a1t(o1t(Z0t(g.index),s.length),0),M=[],F=1;F<g.length;F++)J_(M,l1t(g[F]));var U=g.groups;if(f){var V=s1t([$],M,D,s);U!==void 0&&J_(V,U);var Z=dd(q0t(a,void 0,V))}else Z=n1t($,s,D,M,U,a);D>=R&&(b+=ZH(s,R,D)+Z,R=D+$.length)}return b+ZH(s,R)}]},!c1t||!u1t||XH);var f1t=wh,d1t=Km,p1t=If,h1t=p1t("match"),m1t=function(e){var t;return f1t(e)&&((t=e[h1t])!==void 0?!!t:d1t(e)=="RegExp")},g1t=m1t,y1t=TypeError,v1t=function(e){if(g1t(e))throw y1t("The method doesn't accept regular expressions");return e},b1t=If,E1t=b1t("match"),T1t=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[E1t]=!1,"/./"[e](t)}catch{}}return!1},A1t=kre,Ure=Nre,w1t=wT.f,S1t=EI,QH=xT,_1t=v1t,x1t=Ym,C1t=T1t,ej=Ure("".endsWith),R1t=Ure("".slice),$1t=Math.min,Hre=C1t("endsWith"),I1t=!Hre&&!!function(){var e=w1t(String.prototype,"endsWith");return e&&!e.writable}();A1t({target:"String",proto:!0,forced:!I1t&&!Hre},{endsWith:function(t){var n=QH(x1t(this));_1t(t);var r=arguments.length>1?arguments[1]:void 0,i=n.length,a=r===void 0?i:$1t(S1t(r),i),o=QH(t);return ej?ej(n,o,a):R1t(n,a-o.length,a)===o}});const k1t={name:"Query"},D1t={name:"Mutation"},O1t=null,L1t=[{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}],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}],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}],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:"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:"RequestChangeBlockletStoreInput",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}],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:"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}],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}],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}],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:"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:"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}],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:"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}],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:"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}],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:"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:"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}],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}],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}],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}],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}],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:"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}],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}],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}],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}],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}],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}],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:"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:"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:"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:"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}],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}],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:"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:"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:"RequestChangeBlockletStoreInput",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:"RequestChangeBlockletStoreInput",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}],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:"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.
|
|
1294
1294
|
|
|
1295
|
-
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}],P1t=[{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}]}],M1t={queryType:k1t,mutationType:D1t,subscriptionType:O1t,types:L1t,directives:P1t},B1t=Wne,N1t=M1t;let F1t=class extends B1t{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 N1t}_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 U1t=F1t;const H1t=lQ,j1t=U1t;class J1t extends j1t{_getSocketOptions(){return{}}_getEventImplementation(){return H1t}}var V1t=J1t;const q1t=Ft(V1t),G1t=(window.env?window.env.apiPrefix:"/")||"/",bl=new q1t(()=>`${G1t}/api/gql?locale=${h6()}`.replace(/\/+/g,"/").trim());function W1t({wsClient:e,event:t,cb:n=()=>{},deps:r=[]}){W.useEffect(()=>{const i=e&&(!r.length||r.every(Boolean));return i&&e.on(t,n),()=>{i&&e.off(t,n)}},r)}let qc;function jre(){const e=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),t=`//${window.location.host}${e}/admin`;return new qR.WsClient(t,{heartbeatIntervalMs:100*1e3,params:()=>({token:Mr.get("login_token")})})}function Jre(){return qc||(qc=jre()),qc}const RI=(e,t=()=>{},n=[])=>{e=`${window.blocklet.did}/${e}`;const{session:r}=IQ();!qc&&r.user&&(qc=Jre(),qc.connect()),W1t({wsClient:qc,event:e,cb:t,deps:n})};let V_=null;const z1t=async()=>{try{return(await zm.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},K1t=()=>(V_||(V_=z1t()),V_),{Provider:Y1t,Consumer:Lyt}=S$,Z1t=e=>e&&Fs(e,"settings.publicToStore")?e.settings.publicToStore:!1,X1t=(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},Q1t=(()=>{const e={endpoint:"",data:{}};return async t=>{if(e.endpoint===t)return e.data;const r=await Kne(t).getConfig();return e.endpoint=t,e.data=r,r}})(),{did:pd,appId:emt}=window.env;function X0({children:e,mode:t}){const[n,r]=W.useState(null),[i,a]=W.useState(!1),[o,s]=W.useState(),[l,f]=W.useState({}),[c,d]=W.useState(),[p,g]=W.useState(),v=t==="setup",{loading:b,loadingRuntimeInfo:R,error:A,blocklet:$,recommendedDomain:D,runtimeHistory:M,actions:{refreshBlocklet:F,refreshDomainStatus:U,setBlocklet:V}}=Oat({did:pd,client:bl,useSubscription:RI,getIP:K1t,useLocaleContext:Qb}),Z=async()=>{try{a(!0),r(null);const{data:h}=await zm.get("/blocklet/meta");f(h),a(!1)}catch(h){a(!1),r(h),Ci.error(h.message)}},ie=async({showError:h=!0}={})=>{var k,re;if(!((re=(k=l==null?void 0:l.requirements)==null?void 0:k.fuels)!=null&&re.length))return null;const{endpoint:E,value:S,address:C}=l.requirements.fuels[0],I=X1t(E,$),x=S;let _=S;const y={endpoint:I,symbol:"",need:x,current:0,owe:Number(x)>0};try{const N=Kne(I),{config:X}=await Q1t(I),ne=JSON.parse(X).token;let le=C;le||(le=ne.address),g({address:ne.address,symbol:ne.symbol,decimal:ne.decimal});const{getAccountState:{state:me},getTokenState:{state:we}}=await N.doBatchQuery({getAccountState:{address:emt},getTokenState:{address:le}});we&&(y.symbol=we.symbol);const j=((me==null?void 0:me.tokens)||[]).find(P=>P.address===le);if(j){const P=ai.fromTokenToUnit(x,j.decimal||18);y.current=ai.fromUnitToToken(j.value,j.decimal||18),y.owe=P.gt(new ai.BN(j.value)),_=Math.max(0,ai.fromUnitToToken(P.sub(new ai.BN(j.value)),j.decimal||18))}}catch(N){h&&Ci.error(N.message)}return d({...y,deficiency:_}),y},fe=async({configs:h,childDid:E})=>(await bl.configBlocklet({input:{did:[pd].concat(E).filter(Boolean),configs:h}}),F()),Q=async h=>{const{blocklet:E}=await bl.updateWhoCanAccess({input:{did:[pd],whoCanAccess:h}});V(E)},L=async h=>{const{blocklet:E}=await bl.configPublicToStore({input:{did:pd,publicToStore:h}});V(E)},T=async h=>{const{blocklet:E}=await bl.configNavigations({input:{did:pd,navigations:h}});V(E)};W.useEffect(()=>{v&&Z(),F({showError:!1})},[]),W.useEffect(()=>{if(!$||!($!=null&&$.controller))return;const{controller:h}=$;Jit(h.chainHost,h.nftId).then(E=>{E.expirationDate=ux.getNftExpirationDate(E),E.expired=ux.isNFTExpired(E),s(E)}).catch(E=>console.error(E))},[$==null?void 0:$.appPid]);const u={loading:i||b,loadingRuntimeInfo:R,error:n||A,blocklet:$,did:pd,recommendedDomain:D,runtimeHistory:M,appIdList:$?Ste($):[],env:window.blocklet||{},meta:l,gas:c,tokenInfo:p,getPublicInstance:Z1t,nftState:o,client:bl,mode:t,actions:{refreshBlocklet:F,refreshDomainStatus:U,setBlocklet:V,refreshMeta:Z,refreshFuel:ie,configBlocklet:fe,configWhoCanAccess:Q,configPublicToStore:L,configNavigations:T}};return q.jsx(Y1t,{value:u,children:e})}X0.propTypes={children:ge.any,mode:ge.oneOf(["dashboard","setup"]).isRequired};X0.defaultProps={children:null};function Pyt(){return W.useContext(S$)}const $I=W.createContext({});function Myt(){const{node:e}=W.useContext($I);return{...e,inService:e.type==="service",inDaemon:e.type==="daemon"}}const{Provider:tmt,Consumer:Byt}=$I,nmt=`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function tj({children:e}){const{serverDid:t,serverVersion:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}=window.env,s={api:bl,restApi:zm,prefix:Xt.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix:nmt,getSessionInHeader:()=>({}),ws:{getWsClient:Jre,create:jre,useSubscription:RI},type:"service",info:{did:t,version:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}};return q.jsx(tmt,{value:{node:s},children:e})}function Nyt(){const{node:e}=W.useContext($I);return e}const Vre=W.createContext({}),{Provider:rmt,Consumer:Fyt}=Vre;function imt({children:e}){const{did:t}=window.env,[n,r]=W.useState([]),[i,a]=W.useState({total:0,pageSize:10,pageCount:0,page:1}),[o,s]=W.useState(!1),l=async({page:c=1}={})=>{if(!o){s(!0);try{const d=await bl.getBlockletNotifications({input:{paging:{page:c},teamDid:t}});r(d.list),a(d.paging),s(!1)}catch(d){Ci.error(d.message),s(!1)}}};W.useEffect(()=>{l()},[]),RI(Xt.EVENTS.NOTIFICATION_BLOCKLET_CREATE,c=>{r(d=>[c,...d||[]])});const f={loading:o,refresh:l,data:n||[],paging:i,api:bl};return q.jsx(rmt,{value:{notifications:f},children:e})}function Uyt(){const{notifications:e}=W.useContext(Vre);return e}const amt=W.lazy(()=>sn(()=>import("./login-kqUJ5Zy_.js"),__vite__mapDeps([0,1,2]))),omt=W.lazy(()=>sn(()=>import("./connect-YLbdrcyy.js"),__vite__mapDeps([3,4,1,5,6]))),smt=W.lazy(()=>sn(()=>import("./exchange-passport-yCBnyVYx.js"),__vite__mapDeps([7,5,6,8]))),lmt=W.lazy(()=>sn(()=>import("./issue-passport-gmkPNmza.js"),__vite__mapDeps([9,10,11,1,12,13,8]))),umt=W.lazy(()=>sn(()=>import("./lost-passport-e2_Aixuz.js"),__vite__mapDeps([14,13,15,16,6,8,1,17,18,19]))),cmt=W.lazy(()=>sn(()=>import("./start-PVNjbt4-.js"),__vite__mapDeps([20,21,16,6,22,23,24]))),fmt=W.lazy(()=>sn(()=>import("./setup-hZt95TOJ.js"),__vite__mapDeps([25,26,27,28,29,4,30,31,23,24,22]))),dmt=W.lazy(()=>sn(()=>import("./invite-hdpCzq3L.js"),__vite__mapDeps([32,10,11,1,12,13,8]))),pmt=W.lazy(()=>sn(()=>import("./transfer-Plp5xICV.js"),__vite__mapDeps([33,13,23,24]))),hmt=W.lazy(()=>sn(()=>import("./dashboard-D4mJn4NA.js").then(e=>e.o),__vite__mapDeps([34,35,36,37,12,38,39,40,41,42,18,43,21,44,45,46,47,48,17,29,4,30,31,6,49,50,51,52,28,53,54,55,24,56]))),nj=W.lazy(()=>sn(()=>import("./user-center-Mc5H24-C.js"),__vite__mapDeps([57,58,49,51,52,28,53,54,50,55,24,17,18,59,60,30,61,35,62,63,46,47,4,64,65,66,67,68,42]))),mmt=W.lazy(()=>sn(()=>import("./home-vKdVJ5HF.js"),__vite__mapDeps([69,70,51,52,28,53,54,49]))),gmt=W.lazy(()=>sn(()=>import("./preferences-q4lQqOmp.js"),__vite__mapDeps([71,72,51,52,28,53,54,70,49]))),ymt=W.lazy(()=>sn(()=>import("./localization-4OUgsdII.js"),__vite__mapDeps([73,70,51,52,28,53,54,49]))),vmt=W.lazy(()=>sn(()=>import("./add-resource-hfRO6Rgs.js"),__vite__mapDeps([74,75,62,76,26,27,28,29,4,30,31,41,77,78,79,80,15,81,66,65,47,67,64,82,83,84,85,40,42,18,55,86,87,88,46,56,89,12,16,6,19,90,39,91,92,93,94,49,95,96,68,97,98,99,61,100,54,44,101,102]))),rj=W.lazy(()=>sn(()=>import("./publish-resource-Fe3acGXx.js"),__vite__mapDeps([103,104,43,105,106,88,85,56,46,47,65,48,67,40,41,42,18,64,66,35,107,52,108,109,96,95,38,16,6,110,17,39,12,68,111,93,94,83,4,54,112,31]))),bmt=W.lazy(()=>sn(()=>import("./index-MKqHQU8x.js"),__vite__mapDeps([]))),Emt=W.lazy(()=>sn(()=>import("./unsubscribe-xGN5x3Qn.js"),__vite__mapDeps([])));function Tmt(){const e=Ws();W.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${e.pathname}${e.search}`)},[e]);const t=q.jsx(cp,{children:q.jsx(om,{})});return q.jsx(W.Suspense,{fallback:t,children:q.jsxs(U5,{children:[q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:q.jsx(umt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:q.jsx(lmt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:q.jsx(amt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:q.jsx(omt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:q.jsx(smt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:q.jsx(dmt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:q.jsx(pmt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:q.jsx(mmt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:q.jsx(gmt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:q.jsx(ymt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:q.jsx($c,{children:q.jsx(cmt,{})})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:q.jsx(X0,{mode:"setup",children:q.jsx(fmt,{})})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:q.jsx(Emt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:q.jsx($c,{roles:["*"],children:q.jsx(nj,{})})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:q.jsx($c,{roles:["*"],children:q.jsx(nj,{})})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:q.jsx(tj,{children:q.jsx(imt,{children:q.jsx($c,{roles:["owner","admin","member"],children:q.jsx(X0,{mode:"dashboard",children:q.jsx(hmt,{})})})})})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:q.jsx(YV,{to:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:q.jsx(tj,{children:q.jsx($c,{roles:["owner","admin"],children:q.jsx(X0,{mode:"dashboard",children:q.jsxs(U5,{children:[q.jsx(Sr,{path:"publish",element:q.jsx(rj,{})}),q.jsx(Sr,{path:"publish/*",element:q.jsx(rj,{})}),q.jsx(Sr,{path:"add",element:q.jsx(vmt,{})}),q.jsx(Sr,{path:"*",element:q.jsx(bmt,{})})]})})})})})]})})}function Amt(){return q.jsx(e0e,{basename:Xne,children:q.jsx(yQe,{children:q.jsx(Tmt,{})})})}const wmt=_V(document.getElementById("app"));wmt.render(q.jsx(Amt,{}));const Smt=Xt.WELLKNOWN_SERVICE_PATH_PREFIX;{async function e(){const{register:t}=await sn(()=>import("./index-7SG8bi1h.js"),__vite__mapDeps([]));t(`${Smt}/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{Bq as $,Fl as A,yt as B,cp as C,yp as D,gQe as E,n6e as F,St as G,ki as H,LOe as I,Dyt as J,VDe as K,r0e as L,dE as M,Bl as N,hm as O,ge as P,Ef as Q,A1 as R,om as S,Cr as T,FW as U,_m as V,O6 as W,MEe as X,sn as Y,Bc as Z,Er as _,Hu as a,uat as a$,zm as a0,Jit as a1,bl as a2,mat as a3,K7 as a4,Pa as a5,Iyt as a6,kyt as a7,ux as a8,uyt as a9,Yn as aA,Kn as aB,Gt as aC,$t as aD,zt as aE,Ce as aF,of as aG,Yt as aH,ar as aI,o6 as aJ,sC as aK,zp as aL,ym as aM,zX as aN,KX as aO,lC as aP,rC as aQ,hQ as aR,bm as aS,Ft as aT,eRe as aU,aE as aV,K8 as aW,Aat as aX,Myt as aY,$gt as aZ,dat as a_,Wd as aa,oat as ab,Vl as ac,jp as ad,Pyt as ae,$yt as af,Ryt as ag,Hct as ah,Xne as ai,tj as aj,U5 as ak,Sr as al,YV as am,Bb as an,gE as ao,Ngt as ap,Lgt as aq,Pgt as ar,h$ as as,Qi as at,RCe as au,j8 as av,Ws as aw,Gl as ax,A$ as ay,Xn as az,NG as b,si as b$,Hgt as b0,vAe as b1,R8 as b2,M3 as b3,pat as b4,vyt as b5,Dgt as b6,pyt as b7,Ugt as b8,byt as b9,aWe as bA,kR as bB,Zp as bC,Bn as bD,HQ as bE,Yne as bF,pR as bG,QKe as bH,jX as bI,ggt as bJ,ph as bK,Nz as bL,OPe as bM,Rl as bN,iX as bO,ti as bP,fs as bQ,U8 as bR,Eo as bS,dEe as bT,LEe as bU,SEe as bV,vEe as bW,KK as bX,hb as bY,br as bZ,f8 as b_,K0 as ba,Zd as bb,MOe as bc,RI as bd,W7 as be,E1e as bf,y1e as bg,cyt as bh,PG as bi,nyt as bj,sm as bk,Fgt as bl,KG as bm,Fit as bn,cs as bo,KTe as bp,ayt as bq,Hb as br,b8 as bs,Uyt as bt,Nyt as bu,GK as bv,Eyt as bw,Jre as bx,Ahe as by,Vn as bz,On as c,ns as c$,af as c0,o3e as c1,s3e as c2,g0 as c3,I8 as c4,agt as c5,ogt as c6,M6 as c7,Di as c8,et as c9,aTe as cA,UG as cB,rge as cC,ige as cD,Xbe as cE,eEe as cF,Lb as cG,z5 as cH,Fq as cI,c8 as cJ,nm as cK,Yme as cL,Pl as cM,Omt as cN,_q as cO,os as cP,Dmt as cQ,r8 as cR,Pq as cS,em as cT,Wf as cU,jb as cV,v$ as cW,b$ as cX,Sgt as cY,FG as cZ,JG as c_,Ayt as ca,VK as cb,rG as cc,igt as cd,Y7 as ce,nG as cf,vq as cg,f0e as ch,Lq as ci,Ml as cj,zs as ck,nve as cl,cc as cm,Bmt as cn,S1 as co,u8 as cp,Fu as cq,Ds as cr,yi as cs,GEe as ct,Zmt as cu,egt as cv,x9 as cw,tgt as cx,jq as cy,HG as cz,IQ as d,Y8 as d$,mn as d0,wm as d1,V8 as d2,xmt as d3,D7 as d4,fgt as d5,sge as d6,vG as d7,cve as d8,aG as d9,qKe as dA,wa as dB,Tyt as dC,i6 as dD,UOe as dE,_V as dF,Uit as dG,fat as dH,hyt as dI,rat as dJ,lyt as dK,Xgt as dL,BF as dM,lgt as dN,lat as dO,Bit as dP,tyt as dQ,Uct as dR,Cit as dS,yyt as dT,Rgt as dU,yE as dV,Qgt as dW,iE as dX,yKe as dY,RKe as dZ,jQ as d_,mgt as da,E6 as db,Cgt as dc,LX as dd,WE as de,Gq as df,qq as dg,fve as dh,Bu as di,qmt as dj,NOe as dk,w6 as dl,uE as dm,cE as dn,cf as dp,ii as dq,Na as dr,wge as ds,Nt as dt,Kgt as du,eyt as dv,Fs as dw,Jgt as dx,ryt as dy,oyt as dz,Y2 as e,Ymt as e$,gDe as e0,hat as e1,gat as e2,m8 as e3,gG as e4,EC as e5,Nmt as e6,Yve as e7,oE as e8,vU as e9,jmt as eA,Umt as eB,Bge as eC,tm as eD,Np as eE,KL as eF,Fmt as eG,rf as eH,dye as eI,Vmt as eJ,Nu as eK,Xq as eL,vye as eM,age as eN,Mmt as eO,W5 as eP,ege as eQ,nge as eR,Oge as eS,kb as eT,sve as eU,Pmt as eV,Zve as eW,Kmt as eX,sbe as eY,lbe as eZ,pbe as e_,zG as ea,aAe as eb,$9 as ec,R9 as ed,eAe as ee,ngt as ef,Qt as eg,Imt as eh,$mt as ei,Rmt as ej,kmt as ek,W1 as el,J8 as em,Af as en,Em as eo,wGe as ep,EW as eq,GG as er,iyt as es,bq as et,xge as eu,q1e as ev,Aq as ew,im as ex,Hmt as ey,Jmt as ez,nn as f,cK as f$,Jn as f0,Ibe as f1,oy as f2,Kbe as f3,bAe as f4,Qh as f5,xAe as f6,wl as f7,r1e as f8,uGe as f9,_mt as fA,Ggt as fB,zgt as fC,Syt as fD,s8 as fE,Zgt as fF,zte as fG,Kne as fH,jgt as fI,Wgt as fJ,pgt as fK,Ygt as fL,vat as fM,Eat as fN,Nit as fO,Hit as fP,rz as fQ,EE as fR,HK as fS,D3 as fT,Nq as fU,bG as fV,Lmt as fW,iK as fX,JW as fY,Bgt as fZ,n1e as f_,aat as fa,Cyt as fb,Ete as fc,LU as fd,ai as fe,Vgt as ff,WX as fg,P8 as fh,c5e as fi,M8 as fj,Xrt as fk,N8 as fl,Zu as fm,Ogt as fn,bK as fo,_it as fp,bC as fq,Mgt as fr,qgt as fs,syt as ft,dyt as fu,wat as fv,bat as fw,Mr as fx,Gee as fy,oK as fz,uf as g,iC as g0,fze as g1,Pke as g2,B$ as g3,N$ as g4,Rp as g5,xgt as g6,kgt as g7,hgt as g8,fyt as g9,ty as gA,cat as gB,sat as gC,yat as gD,Hee as gE,Mve as gF,Nb as gG,rE as gH,Eve as gI,iT as gJ,SKe as gK,q8 as gL,ROe as gM,cgt as gN,ugt as gO,aK as gP,Hi as gQ,DZ as gR,myt as gS,MG as gT,JLe as gU,MF as ga,V3 as gb,dgt as gc,I1 as gd,Z5 as ge,Igt as gf,ITe as gg,Gmt as gh,Gye as gi,zmt as gj,Jve as gk,Gbe as gl,_Te as gm,Xmt as gn,kTe as go,Qmt as gp,sAe as gq,rgt as gr,_ye as gs,vC as gt,Eb as gu,jve as gv,P3e as gw,hw as gx,Wmt as gy,G5 as gz,_t as h,Am as i,q as j,qi as k,cR as l,fh as m,Pm as n,Ci as o,xyt as p,BW as q,W as r,_yt as s,a2 as t,Qb as u,Cmt as v,ca as w,Xt as x,oYe as y,sX as z};
|
|
1295
|
+
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}],P1t=[{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}]}],M1t={queryType:k1t,mutationType:D1t,subscriptionType:O1t,types:L1t,directives:P1t},B1t=Wne,N1t=M1t;let F1t=class extends B1t{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 N1t}_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 U1t=F1t;const H1t=lQ,j1t=U1t;class J1t extends j1t{_getSocketOptions(){return{}}_getEventImplementation(){return H1t}}var V1t=J1t;const q1t=Ft(V1t),G1t=(window.env?window.env.apiPrefix:"/")||"/",bl=new q1t(()=>`${G1t}/api/gql?locale=${h6()}`.replace(/\/+/g,"/").trim());function W1t({wsClient:e,event:t,cb:n=()=>{},deps:r=[]}){W.useEffect(()=>{const i=e&&(!r.length||r.every(Boolean));return i&&e.on(t,n),()=>{i&&e.off(t,n)}},r)}let qc;function jre(){const e=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),t=`//${window.location.host}${e}/admin`;return new qR.WsClient(t,{heartbeatIntervalMs:100*1e3,params:()=>({token:Mr.get("login_token")})})}function Jre(){return qc||(qc=jre()),qc}const RI=(e,t=()=>{},n=[])=>{e=`${window.blocklet.did}/${e}`;const{session:r}=IQ();!qc&&r.user&&(qc=Jre(),qc.connect()),W1t({wsClient:qc,event:e,cb:t,deps:n})};let V_=null;const z1t=async()=>{try{return(await zm.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},K1t=()=>(V_||(V_=z1t()),V_),{Provider:Y1t,Consumer:Lyt}=S$,Z1t=e=>e&&Fs(e,"settings.publicToStore")?e.settings.publicToStore:!1,X1t=(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},Q1t=(()=>{const e={endpoint:"",data:{}};return async t=>{if(e.endpoint===t)return e.data;const r=await Kne(t).getConfig();return e.endpoint=t,e.data=r,r}})(),{did:pd,appId:emt}=window.env;function X0({children:e,mode:t}){const[n,r]=W.useState(null),[i,a]=W.useState(!1),[o,s]=W.useState(),[l,f]=W.useState({}),[c,d]=W.useState(),[p,g]=W.useState(),v=t==="setup",{loading:b,loadingRuntimeInfo:R,error:A,blocklet:$,recommendedDomain:D,runtimeHistory:M,actions:{refreshBlocklet:F,refreshDomainStatus:U,setBlocklet:V}}=Oat({did:pd,client:bl,useSubscription:RI,getIP:K1t,useLocaleContext:Qb}),Z=async()=>{try{a(!0),r(null);const{data:h}=await zm.get("/blocklet/meta");f(h),a(!1)}catch(h){a(!1),r(h),Ci.error(h.message)}},ie=async({showError:h=!0}={})=>{var k,re;if(!((re=(k=l==null?void 0:l.requirements)==null?void 0:k.fuels)!=null&&re.length))return null;const{endpoint:E,value:S,address:C}=l.requirements.fuels[0],I=X1t(E,$),x=S;let _=S;const y={endpoint:I,symbol:"",need:x,current:0,owe:Number(x)>0};try{const N=Kne(I),{config:X}=await Q1t(I),ne=JSON.parse(X).token;let le=C;le||(le=ne.address),g({address:ne.address,symbol:ne.symbol,decimal:ne.decimal});const{getAccountState:{state:me},getTokenState:{state:we}}=await N.doBatchQuery({getAccountState:{address:emt},getTokenState:{address:le}});we&&(y.symbol=we.symbol);const j=((me==null?void 0:me.tokens)||[]).find(P=>P.address===le);if(j){const P=ai.fromTokenToUnit(x,j.decimal||18);y.current=ai.fromUnitToToken(j.value,j.decimal||18),y.owe=P.gt(new ai.BN(j.value)),_=Math.max(0,ai.fromUnitToToken(P.sub(new ai.BN(j.value)),j.decimal||18))}}catch(N){h&&Ci.error(N.message)}return d({...y,deficiency:_}),y},fe=async({configs:h,childDid:E})=>(await bl.configBlocklet({input:{did:[pd].concat(E).filter(Boolean),configs:h}}),F()),Q=async h=>{const{blocklet:E}=await bl.updateWhoCanAccess({input:{did:[pd],whoCanAccess:h}});V(E)},L=async h=>{const{blocklet:E}=await bl.configPublicToStore({input:{did:pd,publicToStore:h}});V(E)},T=async h=>{const{blocklet:E}=await bl.configNavigations({input:{did:pd,navigations:h}});V(E)};W.useEffect(()=>{v&&Z(),F({showError:!1})},[]),W.useEffect(()=>{if(!$||!($!=null&&$.controller))return;const{controller:h}=$;Jit(h.chainHost,h.nftId).then(E=>{E.expirationDate=ux.getNftExpirationDate(E),E.expired=ux.isNFTExpired(E),s(E)}).catch(E=>console.error(E))},[$==null?void 0:$.appPid]);const u={loading:i||b,loadingRuntimeInfo:R,error:n||A,blocklet:$,did:pd,recommendedDomain:D,runtimeHistory:M,appIdList:$?Ste($):[],env:window.blocklet||{},meta:l,gas:c,tokenInfo:p,getPublicInstance:Z1t,nftState:o,client:bl,mode:t,actions:{refreshBlocklet:F,refreshDomainStatus:U,setBlocklet:V,refreshMeta:Z,refreshFuel:ie,configBlocklet:fe,configWhoCanAccess:Q,configPublicToStore:L,configNavigations:T}};return q.jsx(Y1t,{value:u,children:e})}X0.propTypes={children:ge.any,mode:ge.oneOf(["dashboard","setup"]).isRequired};X0.defaultProps={children:null};function Pyt(){return W.useContext(S$)}const $I=W.createContext({});function Myt(){const{node:e}=W.useContext($I);return{...e,inService:e.type==="service",inDaemon:e.type==="daemon"}}const{Provider:tmt,Consumer:Byt}=$I,nmt=`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function tj({children:e}){const{serverDid:t,serverVersion:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}=window.env,s={api:bl,restApi:zm,prefix:Xt.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix:nmt,getSessionInHeader:()=>({}),ws:{getWsClient:Jre,create:jre,useSubscription:RI},type:"service",info:{did:t,version:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}};return q.jsx(tmt,{value:{node:s},children:e})}function Nyt(){const{node:e}=W.useContext($I);return e}const Vre=W.createContext({}),{Provider:rmt,Consumer:Fyt}=Vre;function imt({children:e}){const{did:t}=window.env,[n,r]=W.useState([]),[i,a]=W.useState({total:0,pageSize:10,pageCount:0,page:1}),[o,s]=W.useState(!1),l=async({page:c=1}={})=>{if(!o){s(!0);try{const d=await bl.getBlockletNotifications({input:{paging:{page:c},teamDid:t}});r(d.list),a(d.paging),s(!1)}catch(d){Ci.error(d.message),s(!1)}}};W.useEffect(()=>{l()},[]),RI(Xt.EVENTS.NOTIFICATION_BLOCKLET_CREATE,c=>{r(d=>[c,...d||[]])});const f={loading:o,refresh:l,data:n||[],paging:i,api:bl};return q.jsx(rmt,{value:{notifications:f},children:e})}function Uyt(){const{notifications:e}=W.useContext(Vre);return e}const amt=W.lazy(()=>sn(()=>import("./login-8jWdK1zF.js"),__vite__mapDeps([0,1,2]))),omt=W.lazy(()=>sn(()=>import("./connect-hxSEw-9U.js"),__vite__mapDeps([3,4,1,5,6]))),smt=W.lazy(()=>sn(()=>import("./exchange-passport-yJcCPjmR.js"),__vite__mapDeps([7,5,6,8]))),lmt=W.lazy(()=>sn(()=>import("./issue-passport-PWWWsMhT.js"),__vite__mapDeps([9,10,11,1,12,13,8]))),umt=W.lazy(()=>sn(()=>import("./lost-passport-JYHdz0yI.js"),__vite__mapDeps([14,13,15,16,6,8,1,17,18,19]))),cmt=W.lazy(()=>sn(()=>import("./start-P2s1c0OH.js"),__vite__mapDeps([20,21,16,6,22,23,24]))),fmt=W.lazy(()=>sn(()=>import("./setup-qpe6SzuC.js"),__vite__mapDeps([25,26,27,28,29,4,30,31,23,24,22]))),dmt=W.lazy(()=>sn(()=>import("./invite-WXG3A1XD.js"),__vite__mapDeps([32,10,11,1,12,13,8]))),pmt=W.lazy(()=>sn(()=>import("./transfer-OatqzcQh.js"),__vite__mapDeps([33,13,23,24]))),hmt=W.lazy(()=>sn(()=>import("./dashboard-VBA06Iwv.js").then(e=>e.o),__vite__mapDeps([34,35,36,37,12,38,39,40,41,42,18,43,21,44,45,46,47,48,17,29,4,30,31,6,49,50,51,52,28,53,54,55,24,56]))),nj=W.lazy(()=>sn(()=>import("./user-center-b2Piq6Oe.js"),__vite__mapDeps([57,58,49,51,52,28,53,54,50,55,24,17,18,59,60,30,61,35,62,63,46,47,4,64,65,66,67,68,42]))),mmt=W.lazy(()=>sn(()=>import("./home-x43lXk8b.js"),__vite__mapDeps([69,70,51,52,28,53,54,49]))),gmt=W.lazy(()=>sn(()=>import("./preferences-pJUG2yrq.js"),__vite__mapDeps([71,72,51,52,28,53,54,70,49]))),ymt=W.lazy(()=>sn(()=>import("./localization-1vbSMg9g.js"),__vite__mapDeps([73,70,51,52,28,53,54,49]))),vmt=W.lazy(()=>sn(()=>import("./add-resource-xXtPPgi2.js"),__vite__mapDeps([74,75,62,76,26,27,28,29,4,30,31,41,77,78,79,80,15,81,66,65,47,67,64,82,83,84,85,40,42,18,55,86,87,88,46,56,89,12,16,6,19,90,39,91,92,93,94,49,95,96,68,97,98,99,61,100,54,44,101,102]))),rj=W.lazy(()=>sn(()=>import("./publish-resource-rZcNx7fC.js"),__vite__mapDeps([103,104,43,105,106,88,85,56,46,47,65,48,67,40,41,42,18,64,66,35,107,52,108,109,96,95,38,16,6,110,17,39,12,68,111,93,94,83,4,54,112,31]))),bmt=W.lazy(()=>sn(()=>import("./index-4FwYLGoA.js"),__vite__mapDeps([]))),Emt=W.lazy(()=>sn(()=>import("./unsubscribe-T77Y7MuB.js"),__vite__mapDeps([])));function Tmt(){const e=Ws();W.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${e.pathname}${e.search}`)},[e]);const t=q.jsx(cp,{children:q.jsx(om,{})});return q.jsx(W.Suspense,{fallback:t,children:q.jsxs(U5,{children:[q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:q.jsx(umt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:q.jsx(lmt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:q.jsx(amt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:q.jsx(omt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:q.jsx(smt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:q.jsx(dmt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:q.jsx(pmt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:q.jsx(mmt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:q.jsx(gmt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:q.jsx(ymt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:q.jsx($c,{children:q.jsx(cmt,{})})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:q.jsx(X0,{mode:"setup",children:q.jsx(fmt,{})})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:q.jsx(Emt,{})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:q.jsx($c,{roles:["*"],children:q.jsx(nj,{})})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:q.jsx($c,{roles:["*"],children:q.jsx(nj,{})})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:q.jsx(tj,{children:q.jsx(imt,{children:q.jsx($c,{roles:["owner","admin","member"],children:q.jsx(X0,{mode:"dashboard",children:q.jsx(hmt,{})})})})})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:q.jsx(YV,{to:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),q.jsx(Sr,{path:`${Xt.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:q.jsx(tj,{children:q.jsx($c,{roles:["owner","admin"],children:q.jsx(X0,{mode:"dashboard",children:q.jsxs(U5,{children:[q.jsx(Sr,{path:"publish",element:q.jsx(rj,{})}),q.jsx(Sr,{path:"publish/*",element:q.jsx(rj,{})}),q.jsx(Sr,{path:"add",element:q.jsx(vmt,{})}),q.jsx(Sr,{path:"*",element:q.jsx(bmt,{})})]})})})})})]})})}function Amt(){return q.jsx(e0e,{basename:Xne,children:q.jsx(yQe,{children:q.jsx(Tmt,{})})})}const wmt=_V(document.getElementById("app"));wmt.render(q.jsx(Amt,{}));const Smt=Xt.WELLKNOWN_SERVICE_PATH_PREFIX;{async function e(){const{register:t}=await sn(()=>import("./index-7SG8bi1h.js"),__vite__mapDeps([]));t(`${Smt}/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{Bq as $,Fl as A,yt as B,cp as C,yp as D,gQe as E,n6e as F,St as G,ki as H,LOe as I,Dyt as J,VDe as K,r0e as L,dE as M,Bl as N,hm as O,ge as P,Ef as Q,A1 as R,om as S,Cr as T,FW as U,_m as V,O6 as W,MEe as X,sn as Y,Bc as Z,Er as _,Hu as a,uat as a$,zm as a0,Jit as a1,bl as a2,mat as a3,K7 as a4,Pa as a5,Iyt as a6,kyt as a7,ux as a8,uyt as a9,Yn as aA,Kn as aB,Gt as aC,$t as aD,zt as aE,Ce as aF,of as aG,Yt as aH,ar as aI,o6 as aJ,sC as aK,zp as aL,ym as aM,zX as aN,KX as aO,lC as aP,rC as aQ,hQ as aR,bm as aS,Ft as aT,eRe as aU,aE as aV,K8 as aW,Aat as aX,Myt as aY,$gt as aZ,dat as a_,Wd as aa,oat as ab,Vl as ac,jp as ad,Pyt as ae,$yt as af,Ryt as ag,Hct as ah,Xne as ai,tj as aj,U5 as ak,Sr as al,YV as am,Bb as an,gE as ao,Ngt as ap,Lgt as aq,Pgt as ar,h$ as as,Qi as at,RCe as au,j8 as av,Ws as aw,Gl as ax,A$ as ay,Xn as az,NG as b,si as b$,Hgt as b0,vAe as b1,R8 as b2,M3 as b3,pat as b4,vyt as b5,Dgt as b6,pyt as b7,Ugt as b8,byt as b9,aWe as bA,kR as bB,Zp as bC,Bn as bD,HQ as bE,Yne as bF,pR as bG,QKe as bH,jX as bI,ggt as bJ,ph as bK,Nz as bL,OPe as bM,Rl as bN,iX as bO,ti as bP,fs as bQ,U8 as bR,Eo as bS,dEe as bT,LEe as bU,SEe as bV,vEe as bW,KK as bX,hb as bY,br as bZ,f8 as b_,K0 as ba,Zd as bb,MOe as bc,RI as bd,W7 as be,E1e as bf,y1e as bg,cyt as bh,PG as bi,nyt as bj,sm as bk,Fgt as bl,KG as bm,Fit as bn,cs as bo,KTe as bp,ayt as bq,Hb as br,b8 as bs,Uyt as bt,Nyt as bu,GK as bv,Eyt as bw,Jre as bx,Ahe as by,Vn as bz,On as c,ns as c$,af as c0,o3e as c1,s3e as c2,g0 as c3,I8 as c4,agt as c5,ogt as c6,M6 as c7,Di as c8,et as c9,aTe as cA,UG as cB,rge as cC,ige as cD,Xbe as cE,eEe as cF,Lb as cG,z5 as cH,Fq as cI,c8 as cJ,nm as cK,Yme as cL,Pl as cM,Omt as cN,_q as cO,os as cP,Dmt as cQ,r8 as cR,Pq as cS,em as cT,Wf as cU,jb as cV,v$ as cW,b$ as cX,Sgt as cY,FG as cZ,JG as c_,Ayt as ca,VK as cb,rG as cc,igt as cd,Y7 as ce,nG as cf,vq as cg,f0e as ch,Lq as ci,Ml as cj,zs as ck,nve as cl,cc as cm,Bmt as cn,S1 as co,u8 as cp,Fu as cq,Ds as cr,yi as cs,GEe as ct,Zmt as cu,egt as cv,x9 as cw,tgt as cx,jq as cy,HG as cz,IQ as d,Y8 as d$,mn as d0,wm as d1,V8 as d2,xmt as d3,D7 as d4,fgt as d5,sge as d6,vG as d7,cve as d8,aG as d9,qKe as dA,wa as dB,Tyt as dC,i6 as dD,UOe as dE,_V as dF,Uit as dG,fat as dH,hyt as dI,rat as dJ,lyt as dK,Xgt as dL,BF as dM,lgt as dN,lat as dO,Bit as dP,tyt as dQ,Uct as dR,Cit as dS,yyt as dT,Rgt as dU,yE as dV,Qgt as dW,iE as dX,yKe as dY,RKe as dZ,jQ as d_,mgt as da,E6 as db,Cgt as dc,LX as dd,WE as de,Gq as df,qq as dg,fve as dh,Bu as di,qmt as dj,NOe as dk,w6 as dl,uE as dm,cE as dn,cf as dp,ii as dq,Na as dr,wge as ds,Nt as dt,Kgt as du,eyt as dv,Fs as dw,Jgt as dx,ryt as dy,oyt as dz,Y2 as e,Ymt as e$,gDe as e0,hat as e1,gat as e2,m8 as e3,gG as e4,EC as e5,Nmt as e6,Yve as e7,oE as e8,vU as e9,jmt as eA,Umt as eB,Bge as eC,tm as eD,Np as eE,KL as eF,Fmt as eG,rf as eH,dye as eI,Vmt as eJ,Nu as eK,Xq as eL,vye as eM,age as eN,Mmt as eO,W5 as eP,ege as eQ,nge as eR,Oge as eS,kb as eT,sve as eU,Pmt as eV,Zve as eW,Kmt as eX,sbe as eY,lbe as eZ,pbe as e_,zG as ea,aAe as eb,$9 as ec,R9 as ed,eAe as ee,ngt as ef,Qt as eg,Imt as eh,$mt as ei,Rmt as ej,kmt as ek,W1 as el,J8 as em,Af as en,Em as eo,wGe as ep,EW as eq,GG as er,iyt as es,bq as et,xge as eu,q1e as ev,Aq as ew,im as ex,Hmt as ey,Jmt as ez,nn as f,cK as f$,Jn as f0,Ibe as f1,oy as f2,Kbe as f3,bAe as f4,Qh as f5,xAe as f6,wl as f7,r1e as f8,uGe as f9,_mt as fA,Ggt as fB,zgt as fC,Syt as fD,s8 as fE,Zgt as fF,zte as fG,Kne as fH,jgt as fI,Wgt as fJ,pgt as fK,Ygt as fL,vat as fM,Eat as fN,Nit as fO,Hit as fP,rz as fQ,EE as fR,HK as fS,D3 as fT,Nq as fU,bG as fV,Lmt as fW,iK as fX,JW as fY,Bgt as fZ,n1e as f_,aat as fa,Cyt as fb,Ete as fc,LU as fd,ai as fe,Vgt as ff,WX as fg,P8 as fh,c5e as fi,M8 as fj,Xrt as fk,N8 as fl,Zu as fm,Ogt as fn,bK as fo,_it as fp,bC as fq,Mgt as fr,qgt as fs,syt as ft,dyt as fu,wat as fv,bat as fw,Mr as fx,Gee as fy,oK as fz,uf as g,iC as g0,fze as g1,Pke as g2,B$ as g3,N$ as g4,Rp as g5,xgt as g6,kgt as g7,hgt as g8,fyt as g9,ty as gA,cat as gB,sat as gC,yat as gD,Hee as gE,Mve as gF,Nb as gG,rE as gH,Eve as gI,iT as gJ,SKe as gK,q8 as gL,ROe as gM,cgt as gN,ugt as gO,aK as gP,Hi as gQ,DZ as gR,myt as gS,MG as gT,JLe as gU,MF as ga,V3 as gb,dgt as gc,I1 as gd,Z5 as ge,Igt as gf,ITe as gg,Gmt as gh,Gye as gi,zmt as gj,Jve as gk,Gbe as gl,_Te as gm,Xmt as gn,kTe as go,Qmt as gp,sAe as gq,rgt as gr,_ye as gs,vC as gt,Eb as gu,jve as gv,P3e as gw,hw as gx,Wmt as gy,G5 as gz,_t as h,Am as i,q as j,qi as k,cR as l,fh as m,Pm as n,Ci as o,xyt as p,BW as q,W as r,_yt as s,a2 as t,Qb as u,Cmt as v,ca as w,Xt as x,oYe as y,sX as z};
|
|
1296
1296
|
function __vite__mapDeps(indexes) {
|
|
1297
1297
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
1298
|
-
__vite__mapDeps.viteFileDeps = ["assets/login-
|
|
1298
|
+
__vite__mapDeps.viteFileDeps = ["assets/login-8jWdK1zF.js","assets/use-passport-id-pXgWCnyq.js","assets/LaunchOutlined-pjiX1yYA.js","assets/connect-hxSEw-9U.js","assets/index-vL9pFI1M.js","assets/fullpage-Y5V_MGHE.js","assets/Link-4swwBDUU.js","assets/exchange-passport-yJcCPjmR.js","assets/wrap-locale-oqRLFt6z.js","assets/issue-passport-PWWWsMhT.js","assets/invitation-tMRZljsF.js","assets/index-FoQ3Q1RE.js","assets/session-njvv4tO8.js","assets/CheckCircle-cUnXZ7OP.js","assets/lost-passport-JYHdz0yI.js","assets/Done-EASqrGRr.js","assets/did-address-kM_Gj5GB.js","assets/Avatar-HEnEOozL.js","assets/useSlot-VejfTAjg.js","assets/Stepper-ClqLBUZn.js","assets/start-P2s1c0OH.js","assets/PlayArrow-lb0G2com.js","assets/ServerLogo-aTuLKo2-.js","assets/addon-AhsSDW4t.js","assets/selector-g3wjJR3o.js","assets/setup-qpe6SzuC.js","assets/config-space-qrKrA2gA.js","assets/Skeleton-8CtJ4Efm.js","assets/Hidden-8riRi-7w.js","assets/spaces-QwLXvIVF.js","assets/index-fjKBcmH5.js","assets/api-JlWJcBe_.js","assets/invite-WXG3A1XD.js","assets/transfer-OatqzcQh.js","assets/dashboard-VBA06Iwv.js","assets/index-e_QDKVxH.js","assets/permission-RZL9x2kU.js","assets/useAsync-q9mkCv9v.js","assets/MoreVert-JPy3cIzD.js","assets/useLocalStorage-slHq8u6M.js","assets/confirm-uc1Y33uD.js","assets/index-k3rNNowK.js","assets/Alert-N84_KD-3.js","assets/useSetState-GR8fLZaJ.js","assets/ButtonGroup-W_ITJpp0.js","assets/RadioGroup-Pc6M6-Ta.js","assets/FormControlLabel-h1hvXlPm.js","assets/useFormControl-bdbmye_j.js","assets/FormGroup-hZDn5b3E.js","assets/fallback-kvbxeOAh.js","assets/index-1RYLvd7a.js","assets/index-oIFGwfmM.js","assets/Toolbar-U75uViNg.js","assets/MoreHoriz-Ob-PdXvr.js","assets/ExpandMore-WMRfZEqP.js","assets/ListItem-DSIyD39f.js","assets/Checkbox-LXon8OOU.js","assets/user-center-b2Piq6Oe.js","assets/index-9kGH241X.js","assets/index-p2mJUcBg.js","assets/RevokeIcon-uaAHFtlr.js","assets/CloseOutlined-TVRW4CrE.js","assets/uniqBy-E-w6tn5N.js","assets/index-MW5XAWzK.js","assets/Select-zWmcTNCa.js","assets/FormControl-lU-7UxhW.js","assets/TextField-qykW02zP.js","assets/InputLabel-nZyS3xY_.js","assets/InputAdornment-gpcYuAGZ.js","assets/home-x43lXk8b.js","assets/studio-zi78rIOG.js","assets/preferences-pJUG2yrq.js","assets/iframe--DusxskT.js","assets/localization-1vbSMg9g.js","assets/add-resource-xXtPPgi2.js","assets/add-component-core-KW2dmt2S.js","assets/page-header-w9yhETXI.js","assets/lottie-pnpc9RW1.js","assets/launch-result-message-JRp4fsUm.js","assets/index-VW3Fsku0.js","assets/EditIcon-n1Oun3aR.js","assets/Google-YsY_lMOh.js","assets/logo-uploader-1AyeNZ0q.js","assets/index-HlcsGwyy.js","assets/jss-plugin-props-sort.esm-7_btNtOg.js","assets/toPropertyKey-NzAT2yhV.js","assets/util-SGesDKnt.js","assets/index-WdoIow2K.js","assets/TableRow-sJQHVDVk.js","assets/index-sfLTpxKS.js","assets/ArrowDropDown-wCnewKKe.js","assets/Add-hE_y-3Pq.js","assets/Launch-JkzTfHAo.js","assets/DeleteOutline-gdv3ewKz.js","assets/click-to-copy-JQ1hcSA6.js","assets/Search-uAWnirME.js","assets/Grid-O2eaJZIs.js","assets/preact.module-lMgcnEc-.js","assets/connect-to-aXc7wTCq.js","assets/use-blocklet-info-for-connect-did-spaces-8VklSTD-.js","assets/index-EbJvsRfv.js","assets/content-layout-sw8mpR8E.js","assets/add-component-core-wegghUnI.css","assets/publish-resource-rZcNx7fC.js","assets/index-bcLu0M2u.js","assets/index-lTugDaC3.js","assets/FilterList-L4dRV2kI.js","assets/LastPage--aACjaLx.js","assets/index-mjo2fUfh.js","assets/redux-XOuz_cVf.js","assets/ChevronRight-WBXU5ohU.js","assets/Download-qMR3c16e.js","assets/OpenInNew-ZUopA0lK.js"]
|
|
1299
1299
|
}
|
|
1300
1300
|
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
1301
1301
|
}
|