@abtnode/blocklet-services 1.16.21-beta-da3f852a → 1.16.21-beta-8ce6a704

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/api/services/auth/index.js +22 -4
  2. package/api/util/attach-shared-utils.js +8 -1
  3. package/dist/assets/{Add-Fa_jDVH4.js → Add-TPn0Xq2y.js} +1 -1
  4. package/dist/assets/{Alert-CVBj6K_x.js → Alert-msfMnXoL.js} +1 -1
  5. package/dist/assets/{ArrowDropDown-eyRAz4BW.js → ArrowDropDown-u5qE0c6W.js} +1 -1
  6. package/dist/assets/{Autocomplete-JUBrNs2g.js → Autocomplete-vyFefb0T.js} +1 -1
  7. package/dist/assets/{Avatar-phMyiuZN.js → Avatar-40UryW2V.js} +1 -1
  8. package/dist/assets/{ButtonGroup-WpuCESRm.js → ButtonGroup-YM9idA0S.js} +1 -1
  9. package/dist/assets/{CardContent-11p23WdN.js → CardContent-Q2QI-QCi.js} +1 -1
  10. package/dist/assets/{CheckCircle-TSCHhVSn.js → CheckCircle-EKyY4n73.js} +1 -1
  11. package/dist/assets/{Checkbox-E7hRdaZx.js → Checkbox-6b2Wxw9o.js} +1 -1
  12. package/dist/assets/{ChevronRight-4XdBuB9J.js → ChevronRight-969UYibA.js} +1 -1
  13. package/dist/assets/{DeleteOutline-ldnn034A.js → DeleteOutline-VKfxyMcW.js} +1 -1
  14. package/dist/assets/{DialogContentText-GOi1cMCU.js → DialogContentText-IKkXjwY4.js} +1 -1
  15. package/dist/assets/{Done-QX8JUe6j.js → Done-8vU_Upzq.js} +1 -1
  16. package/dist/assets/{Download-6axtZJsQ.js → Download-dvlwhMcC.js} +1 -1
  17. package/dist/assets/{Edit-3QDIocJ_.js → Edit-GbCk8hZt.js} +1 -1
  18. package/dist/assets/{EditIcon-iEwSDmTg.js → EditIcon-kce6kCKp.js} +1 -1
  19. package/dist/assets/{ExpandMore-AjCxxobS.js → ExpandMore-IA-2iaem.js} +1 -1
  20. package/dist/assets/{FilterList-2ERNRQaM.js → FilterList-qFkuKu0i.js} +1 -1
  21. package/dist/assets/{FormControl-dd94hWMS.js → FormControl-hdLaFfly.js} +1 -1
  22. package/dist/assets/{FormControlLabel-RXb6vK7s.js → FormControlLabel--DtAy8ru.js} +1 -1
  23. package/dist/assets/{FormGroup--UBs69R8.js → FormGroup-uAQ93T09.js} +1 -1
  24. package/dist/assets/{Google-IOajhpti.js → Google-Q7CSvqZv.js} +1 -1
  25. package/dist/assets/{Grid-xUYHRi0b.js → Grid-W1BkY5Ap.js} +1 -1
  26. package/dist/assets/{Hidden-mWvmgc4A.js → Hidden-85MTYsBc.js} +1 -1
  27. package/dist/assets/{Icon-Z3sa2o7_.js → Icon-NXg5tkLd.js} +1 -1
  28. package/dist/assets/{InfoOutlined-ASBaIOeG.js → InfoOutlined-CbR8jNPO.js} +1 -1
  29. package/dist/assets/{InputAdornment-uDUcdmme.js → InputAdornment-DqlpUqnE.js} +1 -1
  30. package/dist/assets/{InputLabel-TPtinWuK.js → InputLabel-NZgDieHH.js} +1 -1
  31. package/dist/assets/{LastPage-JHHCVMPH.js → LastPage-8I3Fk9_4.js} +1 -1
  32. package/dist/assets/{Launch-Lgl-88-b.js → Launch-eOQU29xS.js} +1 -1
  33. package/dist/assets/{LaunchOutlined-lL2bUPmR.js → LaunchOutlined-ZzEMLrgz.js} +1 -1
  34. package/dist/assets/{ListItem-0o0I3uAI.js → ListItem-8xgbSCnj.js} +1 -1
  35. package/dist/assets/{LockIcon-JBIsvzZH.js → LockIcon-sfj5oPgW.js} +1 -1
  36. package/dist/assets/{Loop-xAh7ODfS.js → Loop--wL6OZAl.js} +1 -1
  37. package/dist/assets/{MoreHoriz-CgcL_RUW.js → MoreHoriz-nW6861tu.js} +1 -1
  38. package/dist/assets/{MoreVert--r4YINap.js → MoreVert-js_otO_B.js} +1 -1
  39. package/dist/assets/{OpenInNew-UCL6a4s2.js → OpenInNew-LA_Vftw3.js} +1 -1
  40. package/dist/assets/{Pagination-Bv9Q6Zpr.js → Pagination-y_j_46OO.js} +1 -1
  41. package/dist/assets/{PlayArrow-lHMXu7Pu.js → PlayArrow-yDXb6jT-.js} +1 -1
  42. package/dist/assets/{RadioGroup-7FTePFM-.js → RadioGroup-q_troyXZ.js} +1 -1
  43. package/dist/assets/{Search-iVqmV6Op.js → Search-TiKYSEXg.js} +1 -1
  44. package/dist/assets/{Select-S9JKyZyg.js → Select-kt7kYpdf.js} +1 -1
  45. package/dist/assets/{ServerLogo-q3dZeMtc.js → ServerLogo-zKRLrZ_t.js} +1 -1
  46. package/dist/assets/{Skeleton-bZ_Miios.js → Skeleton-SccM_IPU.js} +1 -1
  47. package/dist/assets/{Slider-55cYAWYh.js → Slider-a2MsZ4Gl.js} +1 -1
  48. package/dist/assets/{Stepper-jB61m6gP.js → Stepper-cuElXodD.js} +1 -1
  49. package/dist/assets/{TableRow-NtkZR5qp.js → TableRow-g8XooIYl.js} +1 -1
  50. package/dist/assets/{TextField-mvaGVkiG.js → TextField-_iwvPvON.js} +1 -1
  51. package/dist/assets/{Toolbar-yH3XFZuP.js → Toolbar-VMTR0FH4.js} +1 -1
  52. package/dist/assets/{access-control-btXZcun0.js → access-control-uHfbEVh8.js} +1 -1
  53. package/dist/assets/{actions-gHfHu3vC.js → actions-eG2nr68h.js} +1 -1
  54. package/dist/assets/{add-component-core-rFzl_VX2.js → add-component-core-Wo1tPDwI.js} +1 -1
  55. package/dist/assets/add-resource-FFT9Nq-D.js +1 -0
  56. package/dist/assets/{addon-1QMy4IRG.js → addon-Bog8-kCc.js} +1 -1
  57. package/dist/assets/{analytics-RDIHqtEC.js → analytics-EzRmxVsS.js} +1 -1
  58. package/dist/assets/api-KhkAYAK1.js +1 -0
  59. package/dist/assets/{audit-logs-UyvhmXR3.js → audit-logs-F9Pr7cjv.js} +1 -1
  60. package/dist/assets/{button-t_AwvrL4.js → button-pphPD4D7.js} +1 -1
  61. package/dist/assets/{click-to-copy-H6ULFxkd.js → click-to-copy-TVTLHTem.js} +1 -1
  62. package/dist/assets/{complete-IuJpgYIr.js → complete-0l0ron_0.js} +1 -1
  63. package/dist/assets/{component-G6qh7GXc.js → component-CrwULnW_.js} +1 -1
  64. package/dist/assets/{config-TgYTBZTt.js → config-c0Lr2t0H.js} +1 -1
  65. package/dist/assets/{config-navigation-Rn6Zod0O.js → config-navigation-L-qLX4B0.js} +1 -1
  66. package/dist/assets/{config-4scj9ePp.js → config-vlauq037.js} +1 -1
  67. package/dist/assets/{confirm-rTEv2cR4.js → confirm-sh5q1a0n.js} +1 -1
  68. package/dist/assets/{confirm-QgU1_PTp.js → confirm-tcpqKzZB.js} +1 -1
  69. package/dist/assets/{connect-QgYEXdVh.js → connect-nYhNuMqi.js} +1 -1
  70. package/dist/assets/{connect-Dl-8ETzY.js → connect-obhVg5Ok.js} +1 -1
  71. package/dist/assets/{content-layout-royTMDoy.js → content-layout-NIhaYYrz.js} +1 -1
  72. package/dist/assets/{dashboard-u9hZyLwN.js → dashboard-I5vRXleu.js} +3 -3
  73. package/dist/assets/{did-address-HLejxWfT.js → did-address-qq_1T5l2.js} +1 -1
  74. package/dist/assets/{did-utils-HUCV2HWu.js → did-utils-n-LpEp5G.js} +1 -1
  75. package/dist/assets/{domain-GpRAPaIx.js → domain-MeqIChvN.js} +1 -1
  76. package/dist/assets/{domain-list-lPrVUmAl.js → domain-list-yGq_Y4yz.js} +1 -1
  77. package/dist/assets/{exchange-passport-IuC9VwEx.js → exchange-passport--BD8S8jX.js} +1 -1
  78. package/dist/assets/{fallback-b_zmsVbg.js → fallback-FI7UBCyS.js} +1 -1
  79. package/dist/assets/{format-error-wlUtS96P.js → format-error-AwlVbqQ_.js} +1 -1
  80. package/dist/assets/{fuel-TR64CTn1.js → fuel-Tnz0Y8l1.js} +1 -1
  81. package/dist/assets/fullpage-a7ojvBVp.js +1 -0
  82. package/dist/assets/{home-3M89U2oU.js → home-emaTaf8u.js} +1 -1
  83. package/dist/assets/{iframe-tVY0Votd.js → iframe-qCWq1lRA.js} +1 -1
  84. package/dist/assets/{index-FN8xWpsb.js → index-7WDAi8QZ.js} +1 -1
  85. package/dist/assets/{index-evdoM2z3.js → index-ALnlxAZf.js} +1 -1
  86. package/dist/assets/{index-dmjAo0qH.js → index-DMCnrsz9.js} +1 -1
  87. package/dist/assets/{index-FBVX6B9S.js → index-FwjymWKs.js} +4 -4
  88. package/dist/assets/{index--OWo39zO.js → index-HhHxxbfK.js} +1 -1
  89. package/dist/assets/{index-21p4-hlH.js → index-KULIep2J.js} +1 -1
  90. package/dist/assets/{index-0niAcafj.js → index-NeahD9R-.js} +1 -1
  91. package/dist/assets/{index-CLYRJvy9.js → index-Q8npJK7t.js} +1 -1
  92. package/dist/assets/{index-BG8b7I-X.js → index-Ro3Si39i.js} +1 -1
  93. package/dist/assets/{index-3wOALYwV.js → index-RxmlMTY4.js} +1 -1
  94. package/dist/assets/{index-K2Ybm2pw.js → index-S9SK_SjL.js} +1 -1
  95. package/dist/assets/{index-HUMCtJ-F.js → index-UJ1YMaoR.js} +1 -1
  96. package/dist/assets/{index-Drj2DsEg.js → index-VrHUjlIO.js} +1 -1
  97. package/dist/assets/{index-l56g_CHP.js → index-WY_Xf5uh.js} +1 -1
  98. package/dist/assets/{index-kA6bEgMs.js → index-XSoLlKHE.js} +1 -1
  99. package/dist/assets/{index--CyhSTyx.js → index-YpqYtp4Y.js} +1 -1
  100. package/dist/assets/{index-jXP9EjwJ.js → index-a5IVf4Ds.js} +1 -1
  101. package/dist/assets/{index-BD3_xRrb.js → index-bx0V2_nY.js} +3 -3
  102. package/dist/assets/{index-xRHYRJ_7.js → index-h5B_-jrN.js} +1 -1
  103. package/dist/assets/{index-l2b8-RX7.js → index-k76AZIv6.js} +1 -1
  104. package/dist/assets/{index-KIoBUz9b.js → index-kE9Ny3to.js} +1 -1
  105. package/dist/assets/{index-H9IRRby9.js → index-oSKvPxqz.js} +3 -3
  106. package/dist/assets/{index-O5NefLt1.js → index-pYu4WiGr.js} +1 -1
  107. package/dist/assets/{index-y1vZ4I-c.js → index-uFXfSLT3.js} +1 -1
  108. package/dist/assets/{index-pXkIJMvn.js → index-usQGF3Hd.js} +1 -1
  109. package/dist/assets/{index-G8cwybdF.js → index-v3sD9jwl.js} +1 -1
  110. package/dist/assets/{index-O-lzERhh.js → index-vcrZDM8V.js} +1 -1
  111. package/dist/assets/{index.es-EW-0danM.js → index.es-wsof92By.js} +1 -1
  112. package/dist/assets/{index.esm-yzdsIZwH.js → index.esm-sb7FovOt.js} +1 -1
  113. package/dist/assets/{invite-ZFnOF7D-.js → invite-U6iWhMyt.js} +1 -1
  114. package/dist/assets/{issue-passport-LI0vQTx6.js → issue-passport-HcMt_zdr.js} +1 -1
  115. package/dist/assets/{jss-plugin-props-sort.esm-dCzWy4MH.js → jss-plugin-props-sort.esm-uATOjvk7.js} +1 -1
  116. package/dist/assets/{launch-result-message-ZdZYSlup.js → launch-result-message-PfgqBUec.js} +1 -1
  117. package/dist/assets/{layout-EmhtrWaf.js → layout-_xpJFULa.js} +1 -1
  118. package/dist/assets/{list-header-CQgHRvVE.js → list-header-EVFeaoah.js} +1 -1
  119. package/dist/assets/localization-A9q7RwDF.js +1 -0
  120. package/dist/assets/{log-z1RzeRR6.js → log-3oZd9rhJ.js} +1 -1
  121. package/dist/assets/{login-zL8w551q.js → login-EhjG48Yw.js} +1 -1
  122. package/dist/assets/{logo-uploader-zW337Go0.js → logo-uploader-wd-ziphC.js} +3 -3
  123. package/dist/assets/{lost-passport-GLaDRSNa.js → lost-passport-Zuhxyica.js} +3 -3
  124. package/dist/assets/{lottie-jK27rNdj.js → lottie-8GVMnq4j.js} +1 -1
  125. package/dist/assets/{memoize-one.esm-t8vjaxPM.js → memoize-one.esm-SfINFbzL.js} +1 -1
  126. package/dist/assets/{nav-menu-Tl5mEfRm.js → nav-menu-MsHU6Nrg.js} +1 -1
  127. package/dist/assets/{notifications-PlI3p8fj.js → notifications-0zNYwhYd.js} +1 -1
  128. package/dist/assets/{overview-ysfYkE05.js → overview-l9Mpqmhu.js} +1 -1
  129. package/dist/assets/{page-header-66OZD-k5.js → page-header-H2K8sq1W.js} +1 -1
  130. package/dist/assets/{permission-hBdmK8vu.js → permission-z3yQEkWY.js} +1 -1
  131. package/dist/assets/preferences-E_gHyBm2.js +1 -0
  132. package/dist/assets/publish-resource-oHk38jQi.js +1 -0
  133. package/dist/assets/{react-0H7F4HJd.js → react-xqSM7B89.js} +3 -3
  134. package/dist/assets/{selector-MhbaknSB.js → selector-F8m6H7ls.js} +1 -1
  135. package/dist/assets/session-JrxJoUmO.js +1 -0
  136. package/dist/assets/{setup-sZd9bR8j.js → setup-Q8eWrWcl.js} +3 -3
  137. package/dist/assets/{slicedToArray-k67ntm7h.js → slicedToArray-cvBDQ8ge.js} +1 -1
  138. package/dist/assets/{spaces-PqbUeoTO.js → spaces-hhM8J11w.js} +1 -1
  139. package/dist/assets/{start-Zw90S5HQ.js → start-8bpjhQMX.js} +1 -1
  140. package/dist/assets/{step-actions-ILFnVvrv.js → step-actions-nm_Ds7nY.js} +1 -1
  141. package/dist/assets/{studio-o1cOhwh6.js → studio-VzA8spAy.js} +1 -1
  142. package/dist/assets/{switch-control-X6a6W1Im.js → switch-control-3QoW5jw5.js} +1 -1
  143. package/dist/assets/{transfer-ZLiabJcr.js → transfer-rlOoYYgH.js} +1 -1
  144. package/dist/assets/{uniqBy-ngvp8e0L.js → uniqBy-ce2Rut-n.js} +1 -1
  145. package/dist/assets/{unsubscribe-QliZKSwU.js → unsubscribe-knq8tExI.js} +1 -1
  146. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-gdL1zKwo.js → use-blocklet-info-for-connect-did-spaces-xmxqqrX1.js} +1 -1
  147. package/dist/assets/{useAsync-L140-N35.js → useAsync-mbLXKNT9.js} +1 -1
  148. package/dist/assets/{useFormControl-pwVb7wu_.js → useFormControl-1XPmGFai.js} +1 -1
  149. package/dist/assets/{useLocalStorage-UtHo1ezh.js → useLocalStorage-aXh_Rj3q.js} +1 -1
  150. package/dist/assets/{useSetState-qyJ6mTGB.js → useSetState--uFjPInN.js} +1 -1
  151. package/dist/assets/{user-_XAxkLCw.js → user-Dz7m3bpJ.js} +1 -1
  152. package/dist/assets/{util-Xu6BqTTW.js → util-VyxQThsV.js} +1 -1
  153. package/dist/assets/{wallet-hidden-topbar-bqcwYNs3.js → wallet-hidden-topbar-UIfeoHPs.js} +3 -3
  154. package/dist/assets/{wrap-locale-FLgJeXdD.js → wrap-locale-RacvOmgo.js} +1 -1
  155. package/dist/index.html +1 -1
  156. package/package.json +22 -22
  157. package/dist/assets/add-resource-WRcoBeLJ.js +0 -1
  158. package/dist/assets/api-dJ8jWDqQ.js +0 -1
  159. package/dist/assets/fullpage-ErEPlrFR.js +0 -1
  160. package/dist/assets/localization-57p2YRoa.js +0 -1
  161. package/dist/assets/preferences-h7aAXHWa.js +0 -1
  162. package/dist/assets/publish-resource-6bBVAn-l.js +0 -1
  163. package/dist/assets/session-UBJotivU.js +0 -1
@@ -273,7 +273,7 @@ use chrome, FireFox or Internet Explorer 11`)}var t=An,n=Fl,r=t.Buffer,i=t.kMaxL
273
273
  `))},Tn.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},Tn}(function(e){(function(t){var n=function(ee){var ae,de=new Float64Array(16);if(ee)for(ae=0;ae<ee.length;ae++)de[ae]=ee[ae];return de},r=function(){throw new Error("no PRNG")},i=new Uint8Array(16),a=new Uint8Array(32);a[0]=9;var o=n(),s=n([1]),l=n([56129,1]),d=n([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=n([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),p=n([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),h=n([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),v=n([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function g(ee,ae,de,U){ee[ae]=de>>24&255,ee[ae+1]=de>>16&255,ee[ae+2]=de>>8&255,ee[ae+3]=de&255,ee[ae+4]=U>>24&255,ee[ae+5]=U>>16&255,ee[ae+6]=U>>8&255,ee[ae+7]=U&255}function k(ee,ae,de,U,pe){var _e,Ce=0;for(_e=0;_e<pe;_e++)Ce|=ee[ae+_e]^de[U+_e];return(1&Ce-1>>>8)-1}function C(ee,ae,de,U){return k(ee,ae,de,U,16)}function S(ee,ae,de,U){return k(ee,ae,de,U,32)}function I(ee,ae,de,U){for(var pe=U[0]&255|(U[1]&255)<<8|(U[2]&255)<<16|(U[3]&255)<<24,_e=de[0]&255|(de[1]&255)<<8|(de[2]&255)<<16|(de[3]&255)<<24,Ce=de[4]&255|(de[5]&255)<<8|(de[6]&255)<<16|(de[7]&255)<<24,Be=de[8]&255|(de[9]&255)<<8|(de[10]&255)<<16|(de[11]&255)<<24,Ze=de[12]&255|(de[13]&255)<<8|(de[14]&255)<<16|(de[15]&255)<<24,Ke=U[4]&255|(U[5]&255)<<8|(U[6]&255)<<16|(U[7]&255)<<24,Je=ae[0]&255|(ae[1]&255)<<8|(ae[2]&255)<<16|(ae[3]&255)<<24,Vt=ae[4]&255|(ae[5]&255)<<8|(ae[6]&255)<<16|(ae[7]&255)<<24,bt=ae[8]&255|(ae[9]&255)<<8|(ae[10]&255)<<16|(ae[11]&255)<<24,Lt=ae[12]&255|(ae[13]&255)<<8|(ae[14]&255)<<16|(ae[15]&255)<<24,Pt=U[8]&255|(U[9]&255)<<8|(U[10]&255)<<16|(U[11]&255)<<24,ht=de[16]&255|(de[17]&255)<<8|(de[18]&255)<<16|(de[19]&255)<<24,Rt=de[20]&255|(de[21]&255)<<8|(de[22]&255)<<16|(de[23]&255)<<24,Ut=de[24]&255|(de[25]&255)<<8|(de[26]&255)<<16|(de[27]&255)<<24,Ot=de[28]&255|(de[29]&255)<<8|(de[30]&255)<<16|(de[31]&255)<<24,Ht=U[12]&255|(U[13]&255)<<8|(U[14]&255)<<16|(U[15]&255)<<24,Dt=pe,It=_e,kt=Ce,wt=Be,Ct=Ze,Tt=Ke,Ve=Je,ze=Vt,at=bt,Qe=Lt,lt=Pt,gt=ht,Jt=Rt,cn=Ut,un=Ot,on=Ht,xe,yn=0;yn<20;yn+=2)xe=Dt+Jt|0,Ct^=xe<<7|xe>>>25,xe=Ct+Dt|0,at^=xe<<9|xe>>>23,xe=at+Ct|0,Jt^=xe<<13|xe>>>19,xe=Jt+at|0,Dt^=xe<<18|xe>>>14,xe=Tt+It|0,Qe^=xe<<7|xe>>>25,xe=Qe+Tt|0,cn^=xe<<9|xe>>>23,xe=cn+Qe|0,It^=xe<<13|xe>>>19,xe=It+cn|0,Tt^=xe<<18|xe>>>14,xe=lt+Ve|0,un^=xe<<7|xe>>>25,xe=un+lt|0,kt^=xe<<9|xe>>>23,xe=kt+un|0,Ve^=xe<<13|xe>>>19,xe=Ve+kt|0,lt^=xe<<18|xe>>>14,xe=on+gt|0,wt^=xe<<7|xe>>>25,xe=wt+on|0,ze^=xe<<9|xe>>>23,xe=ze+wt|0,gt^=xe<<13|xe>>>19,xe=gt+ze|0,on^=xe<<18|xe>>>14,xe=Dt+wt|0,It^=xe<<7|xe>>>25,xe=It+Dt|0,kt^=xe<<9|xe>>>23,xe=kt+It|0,wt^=xe<<13|xe>>>19,xe=wt+kt|0,Dt^=xe<<18|xe>>>14,xe=Tt+Ct|0,Ve^=xe<<7|xe>>>25,xe=Ve+Tt|0,ze^=xe<<9|xe>>>23,xe=ze+Ve|0,Ct^=xe<<13|xe>>>19,xe=Ct+ze|0,Tt^=xe<<18|xe>>>14,xe=lt+Qe|0,gt^=xe<<7|xe>>>25,xe=gt+lt|0,at^=xe<<9|xe>>>23,xe=at+gt|0,Qe^=xe<<13|xe>>>19,xe=Qe+at|0,lt^=xe<<18|xe>>>14,xe=on+un|0,Jt^=xe<<7|xe>>>25,xe=Jt+on|0,cn^=xe<<9|xe>>>23,xe=cn+Jt|0,un^=xe<<13|xe>>>19,xe=un+cn|0,on^=xe<<18|xe>>>14;Dt=Dt+pe|0,It=It+_e|0,kt=kt+Ce|0,wt=wt+Be|0,Ct=Ct+Ze|0,Tt=Tt+Ke|0,Ve=Ve+Je|0,ze=ze+Vt|0,at=at+bt|0,Qe=Qe+Lt|0,lt=lt+Pt|0,gt=gt+ht|0,Jt=Jt+Rt|0,cn=cn+Ut|0,un=un+Ot|0,on=on+Ht|0,ee[0]=Dt>>>0&255,ee[1]=Dt>>>8&255,ee[2]=Dt>>>16&255,ee[3]=Dt>>>24&255,ee[4]=It>>>0&255,ee[5]=It>>>8&255,ee[6]=It>>>16&255,ee[7]=It>>>24&255,ee[8]=kt>>>0&255,ee[9]=kt>>>8&255,ee[10]=kt>>>16&255,ee[11]=kt>>>24&255,ee[12]=wt>>>0&255,ee[13]=wt>>>8&255,ee[14]=wt>>>16&255,ee[15]=wt>>>24&255,ee[16]=Ct>>>0&255,ee[17]=Ct>>>8&255,ee[18]=Ct>>>16&255,ee[19]=Ct>>>24&255,ee[20]=Tt>>>0&255,ee[21]=Tt>>>8&255,ee[22]=Tt>>>16&255,ee[23]=Tt>>>24&255,ee[24]=Ve>>>0&255,ee[25]=Ve>>>8&255,ee[26]=Ve>>>16&255,ee[27]=Ve>>>24&255,ee[28]=ze>>>0&255,ee[29]=ze>>>8&255,ee[30]=ze>>>16&255,ee[31]=ze>>>24&255,ee[32]=at>>>0&255,ee[33]=at>>>8&255,ee[34]=at>>>16&255,ee[35]=at>>>24&255,ee[36]=Qe>>>0&255,ee[37]=Qe>>>8&255,ee[38]=Qe>>>16&255,ee[39]=Qe>>>24&255,ee[40]=lt>>>0&255,ee[41]=lt>>>8&255,ee[42]=lt>>>16&255,ee[43]=lt>>>24&255,ee[44]=gt>>>0&255,ee[45]=gt>>>8&255,ee[46]=gt>>>16&255,ee[47]=gt>>>24&255,ee[48]=Jt>>>0&255,ee[49]=Jt>>>8&255,ee[50]=Jt>>>16&255,ee[51]=Jt>>>24&255,ee[52]=cn>>>0&255,ee[53]=cn>>>8&255,ee[54]=cn>>>16&255,ee[55]=cn>>>24&255,ee[56]=un>>>0&255,ee[57]=un>>>8&255,ee[58]=un>>>16&255,ee[59]=un>>>24&255,ee[60]=on>>>0&255,ee[61]=on>>>8&255,ee[62]=on>>>16&255,ee[63]=on>>>24&255}function L(ee,ae,de,U){for(var pe=U[0]&255|(U[1]&255)<<8|(U[2]&255)<<16|(U[3]&255)<<24,_e=de[0]&255|(de[1]&255)<<8|(de[2]&255)<<16|(de[3]&255)<<24,Ce=de[4]&255|(de[5]&255)<<8|(de[6]&255)<<16|(de[7]&255)<<24,Be=de[8]&255|(de[9]&255)<<8|(de[10]&255)<<16|(de[11]&255)<<24,Ze=de[12]&255|(de[13]&255)<<8|(de[14]&255)<<16|(de[15]&255)<<24,Ke=U[4]&255|(U[5]&255)<<8|(U[6]&255)<<16|(U[7]&255)<<24,Je=ae[0]&255|(ae[1]&255)<<8|(ae[2]&255)<<16|(ae[3]&255)<<24,Vt=ae[4]&255|(ae[5]&255)<<8|(ae[6]&255)<<16|(ae[7]&255)<<24,bt=ae[8]&255|(ae[9]&255)<<8|(ae[10]&255)<<16|(ae[11]&255)<<24,Lt=ae[12]&255|(ae[13]&255)<<8|(ae[14]&255)<<16|(ae[15]&255)<<24,Pt=U[8]&255|(U[9]&255)<<8|(U[10]&255)<<16|(U[11]&255)<<24,ht=de[16]&255|(de[17]&255)<<8|(de[18]&255)<<16|(de[19]&255)<<24,Rt=de[20]&255|(de[21]&255)<<8|(de[22]&255)<<16|(de[23]&255)<<24,Ut=de[24]&255|(de[25]&255)<<8|(de[26]&255)<<16|(de[27]&255)<<24,Ot=de[28]&255|(de[29]&255)<<8|(de[30]&255)<<16|(de[31]&255)<<24,Ht=U[12]&255|(U[13]&255)<<8|(U[14]&255)<<16|(U[15]&255)<<24,Dt=pe,It=_e,kt=Ce,wt=Be,Ct=Ze,Tt=Ke,Ve=Je,ze=Vt,at=bt,Qe=Lt,lt=Pt,gt=ht,Jt=Rt,cn=Ut,un=Ot,on=Ht,xe,yn=0;yn<20;yn+=2)xe=Dt+Jt|0,Ct^=xe<<7|xe>>>25,xe=Ct+Dt|0,at^=xe<<9|xe>>>23,xe=at+Ct|0,Jt^=xe<<13|xe>>>19,xe=Jt+at|0,Dt^=xe<<18|xe>>>14,xe=Tt+It|0,Qe^=xe<<7|xe>>>25,xe=Qe+Tt|0,cn^=xe<<9|xe>>>23,xe=cn+Qe|0,It^=xe<<13|xe>>>19,xe=It+cn|0,Tt^=xe<<18|xe>>>14,xe=lt+Ve|0,un^=xe<<7|xe>>>25,xe=un+lt|0,kt^=xe<<9|xe>>>23,xe=kt+un|0,Ve^=xe<<13|xe>>>19,xe=Ve+kt|0,lt^=xe<<18|xe>>>14,xe=on+gt|0,wt^=xe<<7|xe>>>25,xe=wt+on|0,ze^=xe<<9|xe>>>23,xe=ze+wt|0,gt^=xe<<13|xe>>>19,xe=gt+ze|0,on^=xe<<18|xe>>>14,xe=Dt+wt|0,It^=xe<<7|xe>>>25,xe=It+Dt|0,kt^=xe<<9|xe>>>23,xe=kt+It|0,wt^=xe<<13|xe>>>19,xe=wt+kt|0,Dt^=xe<<18|xe>>>14,xe=Tt+Ct|0,Ve^=xe<<7|xe>>>25,xe=Ve+Tt|0,ze^=xe<<9|xe>>>23,xe=ze+Ve|0,Ct^=xe<<13|xe>>>19,xe=Ct+ze|0,Tt^=xe<<18|xe>>>14,xe=lt+Qe|0,gt^=xe<<7|xe>>>25,xe=gt+lt|0,at^=xe<<9|xe>>>23,xe=at+gt|0,Qe^=xe<<13|xe>>>19,xe=Qe+at|0,lt^=xe<<18|xe>>>14,xe=on+un|0,Jt^=xe<<7|xe>>>25,xe=Jt+on|0,cn^=xe<<9|xe>>>23,xe=cn+Jt|0,un^=xe<<13|xe>>>19,xe=un+cn|0,on^=xe<<18|xe>>>14;ee[0]=Dt>>>0&255,ee[1]=Dt>>>8&255,ee[2]=Dt>>>16&255,ee[3]=Dt>>>24&255,ee[4]=Tt>>>0&255,ee[5]=Tt>>>8&255,ee[6]=Tt>>>16&255,ee[7]=Tt>>>24&255,ee[8]=lt>>>0&255,ee[9]=lt>>>8&255,ee[10]=lt>>>16&255,ee[11]=lt>>>24&255,ee[12]=on>>>0&255,ee[13]=on>>>8&255,ee[14]=on>>>16&255,ee[15]=on>>>24&255,ee[16]=Ve>>>0&255,ee[17]=Ve>>>8&255,ee[18]=Ve>>>16&255,ee[19]=Ve>>>24&255,ee[20]=ze>>>0&255,ee[21]=ze>>>8&255,ee[22]=ze>>>16&255,ee[23]=ze>>>24&255,ee[24]=at>>>0&255,ee[25]=at>>>8&255,ee[26]=at>>>16&255,ee[27]=at>>>24&255,ee[28]=Qe>>>0&255,ee[29]=Qe>>>8&255,ee[30]=Qe>>>16&255,ee[31]=Qe>>>24&255}function N(ee,ae,de,U){I(ee,ae,de,U)}function q(ee,ae,de,U){L(ee,ae,de,U)}var H=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function V(ee,ae,de,U,pe,_e,Ce){var Be=new Uint8Array(16),Ze=new Uint8Array(64),Ke,Je;for(Je=0;Je<16;Je++)Be[Je]=0;for(Je=0;Je<8;Je++)Be[Je]=_e[Je];for(;pe>=64;){for(N(Ze,Be,Ce,H),Je=0;Je<64;Je++)ee[ae+Je]=de[U+Je]^Ze[Je];for(Ke=1,Je=8;Je<16;Je++)Ke=Ke+(Be[Je]&255)|0,Be[Je]=Ke&255,Ke>>>=8;pe-=64,ae+=64,U+=64}if(pe>0)for(N(Ze,Be,Ce,H),Je=0;Je<pe;Je++)ee[ae+Je]=de[U+Je]^Ze[Je];return 0}function X(ee,ae,de,U,pe){var _e=new Uint8Array(16),Ce=new Uint8Array(64),Be,Ze;for(Ze=0;Ze<16;Ze++)_e[Ze]=0;for(Ze=0;Ze<8;Ze++)_e[Ze]=U[Ze];for(;de>=64;){for(N(Ce,_e,pe,H),Ze=0;Ze<64;Ze++)ee[ae+Ze]=Ce[Ze];for(Be=1,Ze=8;Ze<16;Ze++)Be=Be+(_e[Ze]&255)|0,_e[Ze]=Be&255,Be>>>=8;de-=64,ae+=64}if(de>0)for(N(Ce,_e,pe,H),Ze=0;Ze<de;Ze++)ee[ae+Ze]=Ce[Ze];return 0}function re(ee,ae,de,U,pe){var _e=new Uint8Array(32);q(_e,U,pe,H);for(var Ce=new Uint8Array(8),Be=0;Be<8;Be++)Ce[Be]=U[Be+16];return X(ee,ae,de,Ce,_e)}function le(ee,ae,de,U,pe,_e,Ce){var Be=new Uint8Array(32);q(Be,_e,Ce,H);for(var Ze=new Uint8Array(8),Ke=0;Ke<8;Ke++)Ze[Ke]=_e[Ke+16];return V(ee,ae,de,U,pe,Ze,Be)}var Q=function(ee){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var ae,de,U,pe,_e,Ce,Be,Ze;ae=ee[0]&255|(ee[1]&255)<<8,this.r[0]=ae&8191,de=ee[2]&255|(ee[3]&255)<<8,this.r[1]=(ae>>>13|de<<3)&8191,U=ee[4]&255|(ee[5]&255)<<8,this.r[2]=(de>>>10|U<<6)&7939,pe=ee[6]&255|(ee[7]&255)<<8,this.r[3]=(U>>>7|pe<<9)&8191,_e=ee[8]&255|(ee[9]&255)<<8,this.r[4]=(pe>>>4|_e<<12)&255,this.r[5]=_e>>>1&8190,Ce=ee[10]&255|(ee[11]&255)<<8,this.r[6]=(_e>>>14|Ce<<2)&8191,Be=ee[12]&255|(ee[13]&255)<<8,this.r[7]=(Ce>>>11|Be<<5)&8065,Ze=ee[14]&255|(ee[15]&255)<<8,this.r[8]=(Be>>>8|Ze<<8)&8191,this.r[9]=Ze>>>5&127,this.pad[0]=ee[16]&255|(ee[17]&255)<<8,this.pad[1]=ee[18]&255|(ee[19]&255)<<8,this.pad[2]=ee[20]&255|(ee[21]&255)<<8,this.pad[3]=ee[22]&255|(ee[23]&255)<<8,this.pad[4]=ee[24]&255|(ee[25]&255)<<8,this.pad[5]=ee[26]&255|(ee[27]&255)<<8,this.pad[6]=ee[28]&255|(ee[29]&255)<<8,this.pad[7]=ee[30]&255|(ee[31]&255)<<8};Q.prototype.blocks=function(ee,ae,de){for(var U=this.fin?0:2048,pe,_e,Ce,Be,Ze,Ke,Je,Vt,bt,Lt,Pt,ht,Rt,Ut,Ot,Ht,Dt,It,kt,wt=this.h[0],Ct=this.h[1],Tt=this.h[2],Ve=this.h[3],ze=this.h[4],at=this.h[5],Qe=this.h[6],lt=this.h[7],gt=this.h[8],Jt=this.h[9],cn=this.r[0],un=this.r[1],on=this.r[2],xe=this.r[3],yn=this.r[4],En=this.r[5],Cn=this.r[6],dn=this.r[7],Rn=this.r[8],Dn=this.r[9];de>=16;)pe=ee[ae+0]&255|(ee[ae+1]&255)<<8,wt+=pe&8191,_e=ee[ae+2]&255|(ee[ae+3]&255)<<8,Ct+=(pe>>>13|_e<<3)&8191,Ce=ee[ae+4]&255|(ee[ae+5]&255)<<8,Tt+=(_e>>>10|Ce<<6)&8191,Be=ee[ae+6]&255|(ee[ae+7]&255)<<8,Ve+=(Ce>>>7|Be<<9)&8191,Ze=ee[ae+8]&255|(ee[ae+9]&255)<<8,ze+=(Be>>>4|Ze<<12)&8191,at+=Ze>>>1&8191,Ke=ee[ae+10]&255|(ee[ae+11]&255)<<8,Qe+=(Ze>>>14|Ke<<2)&8191,Je=ee[ae+12]&255|(ee[ae+13]&255)<<8,lt+=(Ke>>>11|Je<<5)&8191,Vt=ee[ae+14]&255|(ee[ae+15]&255)<<8,gt+=(Je>>>8|Vt<<8)&8191,Jt+=Vt>>>5|U,bt=0,Lt=bt,Lt+=wt*cn,Lt+=Ct*(5*Dn),Lt+=Tt*(5*Rn),Lt+=Ve*(5*dn),Lt+=ze*(5*Cn),bt=Lt>>>13,Lt&=8191,Lt+=at*(5*En),Lt+=Qe*(5*yn),Lt+=lt*(5*xe),Lt+=gt*(5*on),Lt+=Jt*(5*un),bt+=Lt>>>13,Lt&=8191,Pt=bt,Pt+=wt*un,Pt+=Ct*cn,Pt+=Tt*(5*Dn),Pt+=Ve*(5*Rn),Pt+=ze*(5*dn),bt=Pt>>>13,Pt&=8191,Pt+=at*(5*Cn),Pt+=Qe*(5*En),Pt+=lt*(5*yn),Pt+=gt*(5*xe),Pt+=Jt*(5*on),bt+=Pt>>>13,Pt&=8191,ht=bt,ht+=wt*on,ht+=Ct*un,ht+=Tt*cn,ht+=Ve*(5*Dn),ht+=ze*(5*Rn),bt=ht>>>13,ht&=8191,ht+=at*(5*dn),ht+=Qe*(5*Cn),ht+=lt*(5*En),ht+=gt*(5*yn),ht+=Jt*(5*xe),bt+=ht>>>13,ht&=8191,Rt=bt,Rt+=wt*xe,Rt+=Ct*on,Rt+=Tt*un,Rt+=Ve*cn,Rt+=ze*(5*Dn),bt=Rt>>>13,Rt&=8191,Rt+=at*(5*Rn),Rt+=Qe*(5*dn),Rt+=lt*(5*Cn),Rt+=gt*(5*En),Rt+=Jt*(5*yn),bt+=Rt>>>13,Rt&=8191,Ut=bt,Ut+=wt*yn,Ut+=Ct*xe,Ut+=Tt*on,Ut+=Ve*un,Ut+=ze*cn,bt=Ut>>>13,Ut&=8191,Ut+=at*(5*Dn),Ut+=Qe*(5*Rn),Ut+=lt*(5*dn),Ut+=gt*(5*Cn),Ut+=Jt*(5*En),bt+=Ut>>>13,Ut&=8191,Ot=bt,Ot+=wt*En,Ot+=Ct*yn,Ot+=Tt*xe,Ot+=Ve*on,Ot+=ze*un,bt=Ot>>>13,Ot&=8191,Ot+=at*cn,Ot+=Qe*(5*Dn),Ot+=lt*(5*Rn),Ot+=gt*(5*dn),Ot+=Jt*(5*Cn),bt+=Ot>>>13,Ot&=8191,Ht=bt,Ht+=wt*Cn,Ht+=Ct*En,Ht+=Tt*yn,Ht+=Ve*xe,Ht+=ze*on,bt=Ht>>>13,Ht&=8191,Ht+=at*un,Ht+=Qe*cn,Ht+=lt*(5*Dn),Ht+=gt*(5*Rn),Ht+=Jt*(5*dn),bt+=Ht>>>13,Ht&=8191,Dt=bt,Dt+=wt*dn,Dt+=Ct*Cn,Dt+=Tt*En,Dt+=Ve*yn,Dt+=ze*xe,bt=Dt>>>13,Dt&=8191,Dt+=at*on,Dt+=Qe*un,Dt+=lt*cn,Dt+=gt*(5*Dn),Dt+=Jt*(5*Rn),bt+=Dt>>>13,Dt&=8191,It=bt,It+=wt*Rn,It+=Ct*dn,It+=Tt*Cn,It+=Ve*En,It+=ze*yn,bt=It>>>13,It&=8191,It+=at*xe,It+=Qe*on,It+=lt*un,It+=gt*cn,It+=Jt*(5*Dn),bt+=It>>>13,It&=8191,kt=bt,kt+=wt*Dn,kt+=Ct*Rn,kt+=Tt*dn,kt+=Ve*Cn,kt+=ze*En,bt=kt>>>13,kt&=8191,kt+=at*yn,kt+=Qe*xe,kt+=lt*on,kt+=gt*un,kt+=Jt*cn,bt+=kt>>>13,kt&=8191,bt=(bt<<2)+bt|0,bt=bt+Lt|0,Lt=bt&8191,bt=bt>>>13,Pt+=bt,wt=Lt,Ct=Pt,Tt=ht,Ve=Rt,ze=Ut,at=Ot,Qe=Ht,lt=Dt,gt=It,Jt=kt,ae+=16,de-=16;this.h[0]=wt,this.h[1]=Ct,this.h[2]=Tt,this.h[3]=Ve,this.h[4]=ze,this.h[5]=at,this.h[6]=Qe,this.h[7]=lt,this.h[8]=gt,this.h[9]=Jt},Q.prototype.finish=function(ee,ae){var de=new Uint16Array(10),U,pe,_e,Ce;if(this.leftover){for(Ce=this.leftover,this.buffer[Ce++]=1;Ce<16;Ce++)this.buffer[Ce]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(U=this.h[1]>>>13,this.h[1]&=8191,Ce=2;Ce<10;Ce++)this.h[Ce]+=U,U=this.h[Ce]>>>13,this.h[Ce]&=8191;for(this.h[0]+=U*5,U=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=U,U=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=U,de[0]=this.h[0]+5,U=de[0]>>>13,de[0]&=8191,Ce=1;Ce<10;Ce++)de[Ce]=this.h[Ce]+U,U=de[Ce]>>>13,de[Ce]&=8191;for(de[9]-=8192,pe=(U^1)-1,Ce=0;Ce<10;Ce++)de[Ce]&=pe;for(pe=~pe,Ce=0;Ce<10;Ce++)this.h[Ce]=this.h[Ce]&pe|de[Ce];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,_e=this.h[0]+this.pad[0],this.h[0]=_e&65535,Ce=1;Ce<8;Ce++)_e=(this.h[Ce]+this.pad[Ce]|0)+(_e>>>16)|0,this.h[Ce]=_e&65535;ee[ae+0]=this.h[0]>>>0&255,ee[ae+1]=this.h[0]>>>8&255,ee[ae+2]=this.h[1]>>>0&255,ee[ae+3]=this.h[1]>>>8&255,ee[ae+4]=this.h[2]>>>0&255,ee[ae+5]=this.h[2]>>>8&255,ee[ae+6]=this.h[3]>>>0&255,ee[ae+7]=this.h[3]>>>8&255,ee[ae+8]=this.h[4]>>>0&255,ee[ae+9]=this.h[4]>>>8&255,ee[ae+10]=this.h[5]>>>0&255,ee[ae+11]=this.h[5]>>>8&255,ee[ae+12]=this.h[6]>>>0&255,ee[ae+13]=this.h[6]>>>8&255,ee[ae+14]=this.h[7]>>>0&255,ee[ae+15]=this.h[7]>>>8&255},Q.prototype.update=function(ee,ae,de){var U,pe;if(this.leftover){for(pe=16-this.leftover,pe>de&&(pe=de),U=0;U<pe;U++)this.buffer[this.leftover+U]=ee[ae+U];if(de-=pe,ae+=pe,this.leftover+=pe,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(de>=16&&(pe=de-de%16,this.blocks(ee,ae,pe),ae+=pe,de-=pe),de){for(U=0;U<de;U++)this.buffer[this.leftover+U]=ee[ae+U];this.leftover+=de}};function B(ee,ae,de,U,pe,_e){var Ce=new Q(_e);return Ce.update(de,U,pe),Ce.finish(ee,ae),0}function T(ee,ae,de,U,pe,_e){var Ce=new Uint8Array(16);return B(Ce,0,de,U,pe,_e),C(ee,ae,Ce,0)}function c(ee,ae,de,U,pe){var _e;if(de<32)return-1;for(le(ee,0,ae,0,de,U,pe),B(ee,16,ee,32,de-32,ee),_e=0;_e<16;_e++)ee[_e]=0;return 0}function f(ee,ae,de,U,pe){var _e,Ce=new Uint8Array(32);if(de<32||(re(Ce,0,32,U,pe),T(ae,16,ae,32,de-32,Ce)!==0))return-1;for(le(ee,0,ae,0,de,U,pe),_e=0;_e<32;_e++)ee[_e]=0;return 0}function b(ee,ae){var de;for(de=0;de<16;de++)ee[de]=ae[de]|0}function D(ee){var ae,de,U=1;for(ae=0;ae<16;ae++)de=ee[ae]+U+65535,U=Math.floor(de/65536),ee[ae]=de-U*65536;ee[0]+=U-1+37*(U-1)}function R(ee,ae,de){for(var U,pe=~(de-1),_e=0;_e<16;_e++)U=pe&(ee[_e]^ae[_e]),ee[_e]^=U,ae[_e]^=U}function x(ee,ae){var de,U,pe,_e=n(),Ce=n();for(de=0;de<16;de++)Ce[de]=ae[de];for(D(Ce),D(Ce),D(Ce),U=0;U<2;U++){for(_e[0]=Ce[0]-65517,de=1;de<15;de++)_e[de]=Ce[de]-65535-(_e[de-1]>>16&1),_e[de-1]&=65535;_e[15]=Ce[15]-32767-(_e[14]>>16&1),pe=_e[15]>>16&1,_e[14]&=65535,R(Ce,_e,1-pe)}for(de=0;de<16;de++)ee[2*de]=Ce[de]&255,ee[2*de+1]=Ce[de]>>8}function w(ee,ae){var de=new Uint8Array(32),U=new Uint8Array(32);return x(de,ee),x(U,ae),S(de,0,U,0)}function E(ee){var ae=new Uint8Array(32);return x(ae,ee),ae[0]&1}function y(ee,ae){var de;for(de=0;de<16;de++)ee[de]=ae[2*de]+(ae[2*de+1]<<8);ee[15]&=32767}function _(ee,ae,de){for(var U=0;U<16;U++)ee[U]=ae[U]+de[U]}function ne(ee,ae,de){for(var U=0;U<16;U++)ee[U]=ae[U]-de[U]}function M(ee,ae,de){var U,pe,_e=0,Ce=0,Be=0,Ze=0,Ke=0,Je=0,Vt=0,bt=0,Lt=0,Pt=0,ht=0,Rt=0,Ut=0,Ot=0,Ht=0,Dt=0,It=0,kt=0,wt=0,Ct=0,Tt=0,Ve=0,ze=0,at=0,Qe=0,lt=0,gt=0,Jt=0,cn=0,un=0,on=0,xe=de[0],yn=de[1],En=de[2],Cn=de[3],dn=de[4],Rn=de[5],Dn=de[6],ur=de[7],On=de[8],Gn=de[9],dr=de[10],pr=de[11],Nr=de[12],Wr=de[13],Kr=de[14],Yr=de[15];U=ae[0],_e+=U*xe,Ce+=U*yn,Be+=U*En,Ze+=U*Cn,Ke+=U*dn,Je+=U*Rn,Vt+=U*Dn,bt+=U*ur,Lt+=U*On,Pt+=U*Gn,ht+=U*dr,Rt+=U*pr,Ut+=U*Nr,Ot+=U*Wr,Ht+=U*Kr,Dt+=U*Yr,U=ae[1],Ce+=U*xe,Be+=U*yn,Ze+=U*En,Ke+=U*Cn,Je+=U*dn,Vt+=U*Rn,bt+=U*Dn,Lt+=U*ur,Pt+=U*On,ht+=U*Gn,Rt+=U*dr,Ut+=U*pr,Ot+=U*Nr,Ht+=U*Wr,Dt+=U*Kr,It+=U*Yr,U=ae[2],Be+=U*xe,Ze+=U*yn,Ke+=U*En,Je+=U*Cn,Vt+=U*dn,bt+=U*Rn,Lt+=U*Dn,Pt+=U*ur,ht+=U*On,Rt+=U*Gn,Ut+=U*dr,Ot+=U*pr,Ht+=U*Nr,Dt+=U*Wr,It+=U*Kr,kt+=U*Yr,U=ae[3],Ze+=U*xe,Ke+=U*yn,Je+=U*En,Vt+=U*Cn,bt+=U*dn,Lt+=U*Rn,Pt+=U*Dn,ht+=U*ur,Rt+=U*On,Ut+=U*Gn,Ot+=U*dr,Ht+=U*pr,Dt+=U*Nr,It+=U*Wr,kt+=U*Kr,wt+=U*Yr,U=ae[4],Ke+=U*xe,Je+=U*yn,Vt+=U*En,bt+=U*Cn,Lt+=U*dn,Pt+=U*Rn,ht+=U*Dn,Rt+=U*ur,Ut+=U*On,Ot+=U*Gn,Ht+=U*dr,Dt+=U*pr,It+=U*Nr,kt+=U*Wr,wt+=U*Kr,Ct+=U*Yr,U=ae[5],Je+=U*xe,Vt+=U*yn,bt+=U*En,Lt+=U*Cn,Pt+=U*dn,ht+=U*Rn,Rt+=U*Dn,Ut+=U*ur,Ot+=U*On,Ht+=U*Gn,Dt+=U*dr,It+=U*pr,kt+=U*Nr,wt+=U*Wr,Ct+=U*Kr,Tt+=U*Yr,U=ae[6],Vt+=U*xe,bt+=U*yn,Lt+=U*En,Pt+=U*Cn,ht+=U*dn,Rt+=U*Rn,Ut+=U*Dn,Ot+=U*ur,Ht+=U*On,Dt+=U*Gn,It+=U*dr,kt+=U*pr,wt+=U*Nr,Ct+=U*Wr,Tt+=U*Kr,Ve+=U*Yr,U=ae[7],bt+=U*xe,Lt+=U*yn,Pt+=U*En,ht+=U*Cn,Rt+=U*dn,Ut+=U*Rn,Ot+=U*Dn,Ht+=U*ur,Dt+=U*On,It+=U*Gn,kt+=U*dr,wt+=U*pr,Ct+=U*Nr,Tt+=U*Wr,Ve+=U*Kr,ze+=U*Yr,U=ae[8],Lt+=U*xe,Pt+=U*yn,ht+=U*En,Rt+=U*Cn,Ut+=U*dn,Ot+=U*Rn,Ht+=U*Dn,Dt+=U*ur,It+=U*On,kt+=U*Gn,wt+=U*dr,Ct+=U*pr,Tt+=U*Nr,Ve+=U*Wr,ze+=U*Kr,at+=U*Yr,U=ae[9],Pt+=U*xe,ht+=U*yn,Rt+=U*En,Ut+=U*Cn,Ot+=U*dn,Ht+=U*Rn,Dt+=U*Dn,It+=U*ur,kt+=U*On,wt+=U*Gn,Ct+=U*dr,Tt+=U*pr,Ve+=U*Nr,ze+=U*Wr,at+=U*Kr,Qe+=U*Yr,U=ae[10],ht+=U*xe,Rt+=U*yn,Ut+=U*En,Ot+=U*Cn,Ht+=U*dn,Dt+=U*Rn,It+=U*Dn,kt+=U*ur,wt+=U*On,Ct+=U*Gn,Tt+=U*dr,Ve+=U*pr,ze+=U*Nr,at+=U*Wr,Qe+=U*Kr,lt+=U*Yr,U=ae[11],Rt+=U*xe,Ut+=U*yn,Ot+=U*En,Ht+=U*Cn,Dt+=U*dn,It+=U*Rn,kt+=U*Dn,wt+=U*ur,Ct+=U*On,Tt+=U*Gn,Ve+=U*dr,ze+=U*pr,at+=U*Nr,Qe+=U*Wr,lt+=U*Kr,gt+=U*Yr,U=ae[12],Ut+=U*xe,Ot+=U*yn,Ht+=U*En,Dt+=U*Cn,It+=U*dn,kt+=U*Rn,wt+=U*Dn,Ct+=U*ur,Tt+=U*On,Ve+=U*Gn,ze+=U*dr,at+=U*pr,Qe+=U*Nr,lt+=U*Wr,gt+=U*Kr,Jt+=U*Yr,U=ae[13],Ot+=U*xe,Ht+=U*yn,Dt+=U*En,It+=U*Cn,kt+=U*dn,wt+=U*Rn,Ct+=U*Dn,Tt+=U*ur,Ve+=U*On,ze+=U*Gn,at+=U*dr,Qe+=U*pr,lt+=U*Nr,gt+=U*Wr,Jt+=U*Kr,cn+=U*Yr,U=ae[14],Ht+=U*xe,Dt+=U*yn,It+=U*En,kt+=U*Cn,wt+=U*dn,Ct+=U*Rn,Tt+=U*Dn,Ve+=U*ur,ze+=U*On,at+=U*Gn,Qe+=U*dr,lt+=U*pr,gt+=U*Nr,Jt+=U*Wr,cn+=U*Kr,un+=U*Yr,U=ae[15],Dt+=U*xe,It+=U*yn,kt+=U*En,wt+=U*Cn,Ct+=U*dn,Tt+=U*Rn,Ve+=U*Dn,ze+=U*ur,at+=U*On,Qe+=U*Gn,lt+=U*dr,gt+=U*pr,Jt+=U*Nr,cn+=U*Wr,un+=U*Kr,on+=U*Yr,_e+=38*It,Ce+=38*kt,Be+=38*wt,Ze+=38*Ct,Ke+=38*Tt,Je+=38*Ve,Vt+=38*ze,bt+=38*at,Lt+=38*Qe,Pt+=38*lt,ht+=38*gt,Rt+=38*Jt,Ut+=38*cn,Ot+=38*un,Ht+=38*on,pe=1,U=_e+pe+65535,pe=Math.floor(U/65536),_e=U-pe*65536,U=Ce+pe+65535,pe=Math.floor(U/65536),Ce=U-pe*65536,U=Be+pe+65535,pe=Math.floor(U/65536),Be=U-pe*65536,U=Ze+pe+65535,pe=Math.floor(U/65536),Ze=U-pe*65536,U=Ke+pe+65535,pe=Math.floor(U/65536),Ke=U-pe*65536,U=Je+pe+65535,pe=Math.floor(U/65536),Je=U-pe*65536,U=Vt+pe+65535,pe=Math.floor(U/65536),Vt=U-pe*65536,U=bt+pe+65535,pe=Math.floor(U/65536),bt=U-pe*65536,U=Lt+pe+65535,pe=Math.floor(U/65536),Lt=U-pe*65536,U=Pt+pe+65535,pe=Math.floor(U/65536),Pt=U-pe*65536,U=ht+pe+65535,pe=Math.floor(U/65536),ht=U-pe*65536,U=Rt+pe+65535,pe=Math.floor(U/65536),Rt=U-pe*65536,U=Ut+pe+65535,pe=Math.floor(U/65536),Ut=U-pe*65536,U=Ot+pe+65535,pe=Math.floor(U/65536),Ot=U-pe*65536,U=Ht+pe+65535,pe=Math.floor(U/65536),Ht=U-pe*65536,U=Dt+pe+65535,pe=Math.floor(U/65536),Dt=U-pe*65536,_e+=pe-1+37*(pe-1),pe=1,U=_e+pe+65535,pe=Math.floor(U/65536),_e=U-pe*65536,U=Ce+pe+65535,pe=Math.floor(U/65536),Ce=U-pe*65536,U=Be+pe+65535,pe=Math.floor(U/65536),Be=U-pe*65536,U=Ze+pe+65535,pe=Math.floor(U/65536),Ze=U-pe*65536,U=Ke+pe+65535,pe=Math.floor(U/65536),Ke=U-pe*65536,U=Je+pe+65535,pe=Math.floor(U/65536),Je=U-pe*65536,U=Vt+pe+65535,pe=Math.floor(U/65536),Vt=U-pe*65536,U=bt+pe+65535,pe=Math.floor(U/65536),bt=U-pe*65536,U=Lt+pe+65535,pe=Math.floor(U/65536),Lt=U-pe*65536,U=Pt+pe+65535,pe=Math.floor(U/65536),Pt=U-pe*65536,U=ht+pe+65535,pe=Math.floor(U/65536),ht=U-pe*65536,U=Rt+pe+65535,pe=Math.floor(U/65536),Rt=U-pe*65536,U=Ut+pe+65535,pe=Math.floor(U/65536),Ut=U-pe*65536,U=Ot+pe+65535,pe=Math.floor(U/65536),Ot=U-pe*65536,U=Ht+pe+65535,pe=Math.floor(U/65536),Ht=U-pe*65536,U=Dt+pe+65535,pe=Math.floor(U/65536),Dt=U-pe*65536,_e+=pe-1+37*(pe-1),ee[0]=_e,ee[1]=Ce,ee[2]=Be,ee[3]=Ze,ee[4]=Ke,ee[5]=Je,ee[6]=Vt,ee[7]=bt,ee[8]=Lt,ee[9]=Pt,ee[10]=ht,ee[11]=Rt,ee[12]=Ut,ee[13]=Ot,ee[14]=Ht,ee[15]=Dt}function z(ee,ae){M(ee,ae,ae)}function ie(ee,ae){var de=n(),U;for(U=0;U<16;U++)de[U]=ae[U];for(U=253;U>=0;U--)z(de,de),U!==2&&U!==4&&M(de,de,ae);for(U=0;U<16;U++)ee[U]=de[U]}function ce(ee,ae){var de=n(),U;for(U=0;U<16;U++)de[U]=ae[U];for(U=250;U>=0;U--)z(de,de),U!==1&&M(de,de,ae);for(U=0;U<16;U++)ee[U]=de[U]}function he(ee,ae,de){var U=new Uint8Array(32),pe=new Float64Array(80),_e,Ce,Be=n(),Ze=n(),Ke=n(),Je=n(),Vt=n(),bt=n();for(Ce=0;Ce<31;Ce++)U[Ce]=ae[Ce];for(U[31]=ae[31]&127|64,U[0]&=248,y(pe,de),Ce=0;Ce<16;Ce++)Ze[Ce]=pe[Ce],Je[Ce]=Be[Ce]=Ke[Ce]=0;for(Be[0]=Je[0]=1,Ce=254;Ce>=0;--Ce)_e=U[Ce>>>3]>>>(Ce&7)&1,R(Be,Ze,_e),R(Ke,Je,_e),_(Vt,Be,Ke),ne(Be,Be,Ke),_(Ke,Ze,Je),ne(Ze,Ze,Je),z(Je,Vt),z(bt,Be),M(Be,Ke,Be),M(Ke,Ze,Vt),_(Vt,Be,Ke),ne(Be,Be,Ke),z(Ze,Be),ne(Ke,Je,bt),M(Be,Ke,l),_(Be,Be,Je),M(Ke,Ke,Be),M(Be,Je,bt),M(Je,Ze,pe),z(Ze,Vt),R(Be,Ze,_e),R(Ke,Je,_e);for(Ce=0;Ce<16;Ce++)pe[Ce+16]=Be[Ce],pe[Ce+32]=Ke[Ce],pe[Ce+48]=Ze[Ce],pe[Ce+64]=Je[Ce];var Lt=pe.subarray(32),Pt=pe.subarray(16);return ie(Lt,Lt),M(Pt,Pt,Lt),x(ee,Pt),0}function De(ee,ae){return he(ee,ae,a)}function j(ee,ae){return r(ae,32),De(ee,ae)}function $(ee,ae,de){var U=new Uint8Array(32);return he(U,de,ae),q(ee,i,U,H)}var Z=c,W=f;function te(ee,ae,de,U,pe,_e){var Ce=new Uint8Array(32);return $(Ce,pe,_e),Z(ee,ae,de,U,Ce)}function ge(ee,ae,de,U,pe,_e){var Ce=new Uint8Array(32);return $(Ce,pe,_e),W(ee,ae,de,U,Ce)}var fe=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function oe(ee,ae,de,U){for(var pe=new Int32Array(16),_e=new Int32Array(16),Ce,Be,Ze,Ke,Je,Vt,bt,Lt,Pt,ht,Rt,Ut,Ot,Ht,Dt,It,kt,wt,Ct,Tt,Ve,ze,at,Qe,lt,gt,Jt=ee[0],cn=ee[1],un=ee[2],on=ee[3],xe=ee[4],yn=ee[5],En=ee[6],Cn=ee[7],dn=ae[0],Rn=ae[1],Dn=ae[2],ur=ae[3],On=ae[4],Gn=ae[5],dr=ae[6],pr=ae[7],Nr=0;U>=128;){for(Ct=0;Ct<16;Ct++)Tt=8*Ct+Nr,pe[Ct]=de[Tt+0]<<24|de[Tt+1]<<16|de[Tt+2]<<8|de[Tt+3],_e[Ct]=de[Tt+4]<<24|de[Tt+5]<<16|de[Tt+6]<<8|de[Tt+7];for(Ct=0;Ct<80;Ct++)if(Ce=Jt,Be=cn,Ze=un,Ke=on,Je=xe,Vt=yn,bt=En,Lt=Cn,Pt=dn,ht=Rn,Rt=Dn,Ut=ur,Ot=On,Ht=Gn,Dt=dr,It=pr,Ve=Cn,ze=pr,at=ze&65535,Qe=ze>>>16,lt=Ve&65535,gt=Ve>>>16,Ve=(xe>>>14|On<<18)^(xe>>>18|On<<14)^(On>>>9|xe<<23),ze=(On>>>14|xe<<18)^(On>>>18|xe<<14)^(xe>>>9|On<<23),at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,Ve=xe&yn^~xe&En,ze=On&Gn^~On&dr,at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,Ve=fe[Ct*2],ze=fe[Ct*2+1],at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,Ve=pe[Ct%16],ze=_e[Ct%16],at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,kt=lt&65535|gt<<16,wt=at&65535|Qe<<16,Ve=kt,ze=wt,at=ze&65535,Qe=ze>>>16,lt=Ve&65535,gt=Ve>>>16,Ve=(Jt>>>28|dn<<4)^(dn>>>2|Jt<<30)^(dn>>>7|Jt<<25),ze=(dn>>>28|Jt<<4)^(Jt>>>2|dn<<30)^(Jt>>>7|dn<<25),at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,Ve=Jt&cn^Jt&un^cn&un,ze=dn&Rn^dn&Dn^Rn&Dn,at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,Lt=lt&65535|gt<<16,It=at&65535|Qe<<16,Ve=Ke,ze=Ut,at=ze&65535,Qe=ze>>>16,lt=Ve&65535,gt=Ve>>>16,Ve=kt,ze=wt,at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,Ke=lt&65535|gt<<16,Ut=at&65535|Qe<<16,cn=Ce,un=Be,on=Ze,xe=Ke,yn=Je,En=Vt,Cn=bt,Jt=Lt,Rn=Pt,Dn=ht,ur=Rt,On=Ut,Gn=Ot,dr=Ht,pr=Dt,dn=It,Ct%16===15)for(Tt=0;Tt<16;Tt++)Ve=pe[Tt],ze=_e[Tt],at=ze&65535,Qe=ze>>>16,lt=Ve&65535,gt=Ve>>>16,Ve=pe[(Tt+9)%16],ze=_e[(Tt+9)%16],at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,kt=pe[(Tt+1)%16],wt=_e[(Tt+1)%16],Ve=(kt>>>1|wt<<31)^(kt>>>8|wt<<24)^kt>>>7,ze=(wt>>>1|kt<<31)^(wt>>>8|kt<<24)^(wt>>>7|kt<<25),at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,kt=pe[(Tt+14)%16],wt=_e[(Tt+14)%16],Ve=(kt>>>19|wt<<13)^(wt>>>29|kt<<3)^kt>>>6,ze=(wt>>>19|kt<<13)^(kt>>>29|wt<<3)^(wt>>>6|kt<<26),at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,pe[Tt]=lt&65535|gt<<16,_e[Tt]=at&65535|Qe<<16;Ve=Jt,ze=dn,at=ze&65535,Qe=ze>>>16,lt=Ve&65535,gt=Ve>>>16,Ve=ee[0],ze=ae[0],at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,ee[0]=Jt=lt&65535|gt<<16,ae[0]=dn=at&65535|Qe<<16,Ve=cn,ze=Rn,at=ze&65535,Qe=ze>>>16,lt=Ve&65535,gt=Ve>>>16,Ve=ee[1],ze=ae[1],at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,ee[1]=cn=lt&65535|gt<<16,ae[1]=Rn=at&65535|Qe<<16,Ve=un,ze=Dn,at=ze&65535,Qe=ze>>>16,lt=Ve&65535,gt=Ve>>>16,Ve=ee[2],ze=ae[2],at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,ee[2]=un=lt&65535|gt<<16,ae[2]=Dn=at&65535|Qe<<16,Ve=on,ze=ur,at=ze&65535,Qe=ze>>>16,lt=Ve&65535,gt=Ve>>>16,Ve=ee[3],ze=ae[3],at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,ee[3]=on=lt&65535|gt<<16,ae[3]=ur=at&65535|Qe<<16,Ve=xe,ze=On,at=ze&65535,Qe=ze>>>16,lt=Ve&65535,gt=Ve>>>16,Ve=ee[4],ze=ae[4],at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,ee[4]=xe=lt&65535|gt<<16,ae[4]=On=at&65535|Qe<<16,Ve=yn,ze=Gn,at=ze&65535,Qe=ze>>>16,lt=Ve&65535,gt=Ve>>>16,Ve=ee[5],ze=ae[5],at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,ee[5]=yn=lt&65535|gt<<16,ae[5]=Gn=at&65535|Qe<<16,Ve=En,ze=dr,at=ze&65535,Qe=ze>>>16,lt=Ve&65535,gt=Ve>>>16,Ve=ee[6],ze=ae[6],at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,ee[6]=En=lt&65535|gt<<16,ae[6]=dr=at&65535|Qe<<16,Ve=Cn,ze=pr,at=ze&65535,Qe=ze>>>16,lt=Ve&65535,gt=Ve>>>16,Ve=ee[7],ze=ae[7],at+=ze&65535,Qe+=ze>>>16,lt+=Ve&65535,gt+=Ve>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,ee[7]=Cn=lt&65535|gt<<16,ae[7]=pr=at&65535|Qe<<16,Nr+=128,U-=128}return U}function me(ee,ae,de){var U=new Int32Array(8),pe=new Int32Array(8),_e=new Uint8Array(256),Ce,Be=de;for(U[0]=1779033703,U[1]=3144134277,U[2]=1013904242,U[3]=2773480762,U[4]=1359893119,U[5]=2600822924,U[6]=528734635,U[7]=1541459225,pe[0]=4089235720,pe[1]=2227873595,pe[2]=4271175723,pe[3]=1595750129,pe[4]=2917565137,pe[5]=725511199,pe[6]=4215389547,pe[7]=327033209,oe(U,pe,ae,de),de%=128,Ce=0;Ce<de;Ce++)_e[Ce]=ae[Be-de+Ce];for(_e[de]=128,de=256-128*(de<112?1:0),_e[de-9]=0,g(_e,de-8,Be/536870912|0,Be<<3),oe(U,pe,_e,de),Ce=0;Ce<8;Ce++)g(ee,8*Ce,U[Ce],pe[Ce]);return 0}function Ae(ee,ae){var de=n(),U=n(),pe=n(),_e=n(),Ce=n(),Be=n(),Ze=n(),Ke=n(),Je=n();ne(de,ee[1],ee[0]),ne(Je,ae[1],ae[0]),M(de,de,Je),_(U,ee[0],ee[1]),_(Je,ae[0],ae[1]),M(U,U,Je),M(pe,ee[3],ae[3]),M(pe,pe,u),M(_e,ee[2],ae[2]),_(_e,_e,_e),ne(Ce,U,de),ne(Be,_e,pe),_(Ze,_e,pe),_(Ke,U,de),M(ee[0],Ce,Be),M(ee[1],Ke,Ze),M(ee[2],Ze,Be),M(ee[3],Ce,Ke)}function ye(ee,ae,de){var U;for(U=0;U<4;U++)R(ee[U],ae[U],de)}function Oe(ee,ae){var de=n(),U=n(),pe=n();ie(pe,ae[2]),M(de,ae[0],pe),M(U,ae[1],pe),x(ee,U),ee[31]^=E(de)<<7}function $e(ee,ae,de){var U,pe;for(b(ee[0],o),b(ee[1],s),b(ee[2],s),b(ee[3],o),pe=255;pe>=0;--pe)U=de[pe/8|0]>>(pe&7)&1,ye(ee,ae,U),Ae(ae,ee),Ae(ee,ee),ye(ee,ae,U)}function Ee(ee,ae){var de=[n(),n(),n(),n()];b(de[0],p),b(de[1],h),b(de[2],s),M(de[3],p,h),$e(ee,de,ae)}function Pe(ee,ae,de){var U=new Uint8Array(64),pe=[n(),n(),n(),n()],_e;for(de||r(ae,32),me(U,ae,32),U[0]&=248,U[31]&=127,U[31]|=64,Ee(pe,U),Oe(ee,pe),_e=0;_e<32;_e++)ae[_e+32]=ee[_e];return 0}var Ie=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Ue(ee,ae){var de,U,pe,_e;for(U=63;U>=32;--U){for(de=0,pe=U-32,_e=U-12;pe<_e;++pe)ae[pe]+=de-16*ae[U]*Ie[pe-(U-32)],de=Math.floor((ae[pe]+128)/256),ae[pe]-=de*256;ae[pe]+=de,ae[U]=0}for(de=0,pe=0;pe<32;pe++)ae[pe]+=de-(ae[31]>>4)*Ie[pe],de=ae[pe]>>8,ae[pe]&=255;for(pe=0;pe<32;pe++)ae[pe]-=de*Ie[pe];for(U=0;U<32;U++)ae[U+1]+=ae[U]>>8,ee[U]=ae[U]&255}function Xe(ee){var ae=new Float64Array(64),de;for(de=0;de<64;de++)ae[de]=ee[de];for(de=0;de<64;de++)ee[de]=0;Ue(ee,ae)}function Me(ee,ae,de,U){var pe=new Uint8Array(64),_e=new Uint8Array(64),Ce=new Uint8Array(64),Be,Ze,Ke=new Float64Array(64),Je=[n(),n(),n(),n()];me(pe,U,32),pe[0]&=248,pe[31]&=127,pe[31]|=64;var Vt=de+64;for(Be=0;Be<de;Be++)ee[64+Be]=ae[Be];for(Be=0;Be<32;Be++)ee[32+Be]=pe[32+Be];for(me(Ce,ee.subarray(32),de+32),Xe(Ce),Ee(Je,Ce),Oe(ee,Je),Be=32;Be<64;Be++)ee[Be]=U[Be];for(me(_e,ee,de+64),Xe(_e),Be=0;Be<64;Be++)Ke[Be]=0;for(Be=0;Be<32;Be++)Ke[Be]=Ce[Be];for(Be=0;Be<32;Be++)for(Ze=0;Ze<32;Ze++)Ke[Be+Ze]+=_e[Be]*pe[Ze];return Ue(ee.subarray(32),Ke),Vt}function J(ee,ae){var de=n(),U=n(),pe=n(),_e=n(),Ce=n(),Be=n(),Ze=n();return b(ee[2],s),y(ee[1],ae),z(pe,ee[1]),M(_e,pe,d),ne(pe,pe,ee[2]),_(_e,ee[2],_e),z(Ce,_e),z(Be,Ce),M(Ze,Be,Ce),M(de,Ze,pe),M(de,de,_e),ce(de,de),M(de,de,pe),M(de,de,_e),M(de,de,_e),M(ee[0],de,_e),z(U,ee[0]),M(U,U,_e),w(U,pe)&&M(ee[0],ee[0],v),z(U,ee[0]),M(U,U,_e),w(U,pe)?-1:(E(ee[0])===ae[31]>>7&&ne(ee[0],o,ee[0]),M(ee[3],ee[0],ee[1]),0)}function O(ee,ae,de,U){var pe,_e=new Uint8Array(32),Ce=new Uint8Array(64),Be=[n(),n(),n(),n()],Ze=[n(),n(),n(),n()];if(de<64||J(Ze,U))return-1;for(pe=0;pe<de;pe++)ee[pe]=ae[pe];for(pe=0;pe<32;pe++)ee[pe+32]=U[pe];if(me(Ce,ee,de),Xe(Ce),$e(Be,Ze,Ce),Ee(Ze,ae.subarray(32)),Ae(Be,Ze),Oe(_e,Be),de-=64,S(ae,0,_e,0)){for(pe=0;pe<de;pe++)ee[pe]=0;return-1}for(pe=0;pe<de;pe++)ee[pe]=ae[pe+64];return de}var F=32,se=24,ke=32,Se=16,we=32,Ge=32,He=32,qe=32,dt=32,Ye=se,rt=ke,$t=Se,mt=64,ot=32,Gt=64,At=32,st=64;t.lowlevel={crypto_core_hsalsa20:q,crypto_stream_xor:le,crypto_stream:re,crypto_stream_salsa20_xor:V,crypto_stream_salsa20:X,crypto_onetimeauth:B,crypto_onetimeauth_verify:T,crypto_verify_16:C,crypto_verify_32:S,crypto_secretbox:c,crypto_secretbox_open:f,crypto_scalarmult:he,crypto_scalarmult_base:De,crypto_box_beforenm:$,crypto_box_afternm:Z,crypto_box:te,crypto_box_open:ge,crypto_box_keypair:j,crypto_hash:me,crypto_sign:Me,crypto_sign_keypair:Pe,crypto_sign_open:O,crypto_secretbox_KEYBYTES:F,crypto_secretbox_NONCEBYTES:se,crypto_secretbox_ZEROBYTES:ke,crypto_secretbox_BOXZEROBYTES:Se,crypto_scalarmult_BYTES:we,crypto_scalarmult_SCALARBYTES:Ge,crypto_box_PUBLICKEYBYTES:He,crypto_box_SECRETKEYBYTES:qe,crypto_box_BEFORENMBYTES:dt,crypto_box_NONCEBYTES:Ye,crypto_box_ZEROBYTES:rt,crypto_box_BOXZEROBYTES:$t,crypto_sign_BYTES:mt,crypto_sign_PUBLICKEYBYTES:ot,crypto_sign_SECRETKEYBYTES:Gt,crypto_sign_SEEDBYTES:At,crypto_hash_BYTES:st,gf:n,D:d,L:Ie,pack25519:x,unpack25519:y,M,A:_,S:z,Z:ne,pow2523:ce,add:Ae,set25519:b,modL:Ue,scalarmult:$e,scalarbase:Ee};function Zt(ee,ae){if(ee.length!==F)throw new Error("bad key size");if(ae.length!==se)throw new Error("bad nonce size")}function St(ee,ae){if(ee.length!==He)throw new Error("bad public key size");if(ae.length!==qe)throw new Error("bad secret key size")}function nt(){for(var ee=0;ee<arguments.length;ee++)if(!(arguments[ee]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function tn(ee){for(var ae=0;ae<ee.length;ae++)ee[ae]=0}t.randomBytes=function(ee){var ae=new Uint8Array(ee);return r(ae,ee),ae},t.secretbox=function(ee,ae,de){nt(ee,ae,de),Zt(de,ae);for(var U=new Uint8Array(ke+ee.length),pe=new Uint8Array(U.length),_e=0;_e<ee.length;_e++)U[_e+ke]=ee[_e];return c(pe,U,U.length,ae,de),pe.subarray(Se)},t.secretbox.open=function(ee,ae,de){nt(ee,ae,de),Zt(de,ae);for(var U=new Uint8Array(Se+ee.length),pe=new Uint8Array(U.length),_e=0;_e<ee.length;_e++)U[_e+Se]=ee[_e];return U.length<32||f(pe,U,U.length,ae,de)!==0?null:pe.subarray(ke)},t.secretbox.keyLength=F,t.secretbox.nonceLength=se,t.secretbox.overheadLength=Se,t.scalarMult=function(ee,ae){if(nt(ee,ae),ee.length!==Ge)throw new Error("bad n size");if(ae.length!==we)throw new Error("bad p size");var de=new Uint8Array(we);return he(de,ee,ae),de},t.scalarMult.base=function(ee){if(nt(ee),ee.length!==Ge)throw new Error("bad n size");var ae=new Uint8Array(we);return De(ae,ee),ae},t.scalarMult.scalarLength=Ge,t.scalarMult.groupElementLength=we,t.box=function(ee,ae,de,U){var pe=t.box.before(de,U);return t.secretbox(ee,ae,pe)},t.box.before=function(ee,ae){nt(ee,ae),St(ee,ae);var de=new Uint8Array(dt);return $(de,ee,ae),de},t.box.after=t.secretbox,t.box.open=function(ee,ae,de,U){var pe=t.box.before(de,U);return t.secretbox.open(ee,ae,pe)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var ee=new Uint8Array(He),ae=new Uint8Array(qe);return j(ee,ae),{publicKey:ee,secretKey:ae}},t.box.keyPair.fromSecretKey=function(ee){if(nt(ee),ee.length!==qe)throw new Error("bad secret key size");var ae=new Uint8Array(He);return De(ae,ee),{publicKey:ae,secretKey:new Uint8Array(ee)}},t.box.publicKeyLength=He,t.box.secretKeyLength=qe,t.box.sharedKeyLength=dt,t.box.nonceLength=Ye,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(ee,ae){if(nt(ee,ae),ae.length!==Gt)throw new Error("bad secret key size");var de=new Uint8Array(mt+ee.length);return Me(de,ee,ee.length,ae),de},t.sign.open=function(ee,ae){if(nt(ee,ae),ae.length!==ot)throw new Error("bad public key size");var de=new Uint8Array(ee.length),U=O(de,ee,ee.length,ae);if(U<0)return null;for(var pe=new Uint8Array(U),_e=0;_e<pe.length;_e++)pe[_e]=de[_e];return pe},t.sign.detached=function(ee,ae){for(var de=t.sign(ee,ae),U=new Uint8Array(mt),pe=0;pe<U.length;pe++)U[pe]=de[pe];return U},t.sign.detached.verify=function(ee,ae,de){if(nt(ee,ae,de),ae.length!==mt)throw new Error("bad signature size");if(de.length!==ot)throw new Error("bad public key size");var U=new Uint8Array(mt+ee.length),pe=new Uint8Array(mt+ee.length),_e;for(_e=0;_e<mt;_e++)U[_e]=ae[_e];for(_e=0;_e<ee.length;_e++)U[_e+mt]=ee[_e];return O(pe,U,U.length,de)>=0},t.sign.keyPair=function(){var ee=new Uint8Array(ot),ae=new Uint8Array(Gt);return Pe(ee,ae),{publicKey:ee,secretKey:ae}},t.sign.keyPair.fromSecretKey=function(ee){if(nt(ee),ee.length!==Gt)throw new Error("bad secret key size");for(var ae=new Uint8Array(ot),de=0;de<ae.length;de++)ae[de]=ee[32+de];return{publicKey:ae,secretKey:new Uint8Array(ee)}},t.sign.keyPair.fromSeed=function(ee){if(nt(ee),ee.length!==At)throw new Error("bad seed size");for(var ae=new Uint8Array(ot),de=new Uint8Array(Gt),U=0;U<32;U++)de[U]=ee[U];return Pe(ae,de,!0),{publicKey:ae,secretKey:de}},t.sign.publicKeyLength=ot,t.sign.secretKeyLength=Gt,t.sign.seedLength=At,t.sign.signatureLength=mt,t.hash=function(ee){nt(ee);var ae=new Uint8Array(st);return me(ae,ee,ee.length),ae},t.hash.hashLength=st,t.verify=function(ee,ae){return nt(ee,ae),ee.length===0||ae.length===0||ee.length!==ae.length?!1:k(ee,0,ae,0,ee.length)===0},t.setPRNG=function(ee){r=ee},function(){var ee=typeof self<"u"?self.crypto||self.msCrypto:null;if(ee&&ee.getRandomValues){var ae=65536;t.setPRNG(function(de,U){var pe,_e=new Uint8Array(U);for(pe=0;pe<U;pe+=ae)ee.getRandomValues(_e.subarray(pe,pe+Math.min(U-pe,ae)));for(pe=0;pe<U;pe++)de[pe]=_e[pe];tn(_e)})}else typeof aR<"u"&&(ee=zK(),ee&&ee.randomBytes&&t.setPRNG(function(de,U){var pe,_e=ee.randomBytes(U);for(pe=0;pe<U;pe++)de[pe]=_e[pe];tn(_e)}))}()})(e.exports?e.exports:self.nacl=self.nacl||{})})(lW);var JK=lW.exports;const kl=Nt(JK),d9e=kl.box.publicKeyLength+kl.box.overheadLength,p9e="Input must be an string, Buffer or Uint8Array";function f9e(e){let t;if(e instanceof Uint8Array)t=e;else if(typeof e=="string")t=new TextEncoder().encode(e);else throw new Error(p9e);return t}function h9e(e){return Array.prototype.map.call(e,function(t){return(t<16?"0":"")+t.toString(16)}).join("")}function iv(e){return(4294967296+e).toString(16).substring(1)}function m9e(e,t,n){let r=`
274
274
  `+e+" = ";for(let i=0;i<t.length;i+=2){if(n===32)r+=iv(t[i]).toUpperCase(),r+=" ",r+=iv(t[i+1]).toUpperCase();else if(n===64)r+=iv(t[i+1]).toUpperCase(),r+=iv(t[i]).toUpperCase();else throw new Error("Invalid size "+n);i%6===4?r+=`
275
275
  `+new Array(e.length+4).join(" "):i<t.length-2&&(r+=" ")}console.log(r)}function g9e(e,t,n){let r=new Date().getTime();const i=new Uint8Array(t);for(let o=0;o<t;o++)i[o]=o%256;const a=new Date().getTime();console.log("Generated random input in "+(a-r)+"ms"),r=a;for(let o=0;o<n;o++){const s=e(i),l=new Date().getTime(),d=l-r;r=l,console.log("Hashed in "+d+"ms: "+s.substring(0,20)+"..."),console.log(Math.round(t/(1<<20)/(d/1e3)*100)/100+" MB PER SECOND")}}var v9e={normalizeInput:f9e,toHex:h9e,debugPrint:m9e,testSpeed:g9e};const ky=v9e;function av(e,t,n){const r=e[t]+e[n];let i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function GM(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let a=e[t+1]+r;i>=4294967296&&a++,e[t]=i,e[t+1]=a}function GK(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function ec(e,t,n,r,i,a){const o=tm[i],s=tm[i+1],l=tm[a],d=tm[a+1];av(gn,e,t),GM(gn,e,o,s);let u=gn[r]^gn[e],p=gn[r+1]^gn[e+1];gn[r]=p,gn[r+1]=u,av(gn,n,r),u=gn[t]^gn[n],p=gn[t+1]^gn[n+1],gn[t]=u>>>24^p<<8,gn[t+1]=p>>>24^u<<8,av(gn,e,t),GM(gn,e,l,d),u=gn[r]^gn[e],p=gn[r+1]^gn[e+1],gn[r]=u>>>16^p<<16,gn[r+1]=p>>>16^u<<16,av(gn,n,r),u=gn[t]^gn[n],p=gn[t+1]^gn[n+1],gn[t]=p>>>31^u<<1,gn[t+1]=u>>>31^p<<1}const WK=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),y9e=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],Oi=new Uint8Array(y9e.map(function(e){return e*2})),gn=new Uint32Array(32),tm=new Uint32Array(32);function KK(e,t){let n=0;for(n=0;n<16;n++)gn[n]=e.h[n],gn[n+16]=WK[n];for(gn[24]=gn[24]^e.t,gn[25]=gn[25]^e.t/4294967296,t&&(gn[28]=~gn[28],gn[29]=~gn[29]),n=0;n<32;n++)tm[n]=GK(e.b,4*n);for(n=0;n<12;n++)ec(0,8,16,24,Oi[n*16+0],Oi[n*16+1]),ec(2,10,18,26,Oi[n*16+2],Oi[n*16+3]),ec(4,12,20,28,Oi[n*16+4],Oi[n*16+5]),ec(6,14,22,30,Oi[n*16+6],Oi[n*16+7]),ec(0,10,20,30,Oi[n*16+8],Oi[n*16+9]),ec(2,12,22,24,Oi[n*16+10],Oi[n*16+11]),ec(4,14,16,26,Oi[n*16+12],Oi[n*16+13]),ec(6,8,18,28,Oi[n*16+14],Oi[n*16+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^gn[n]^gn[n+16]}const tc=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function YK(e,t,n,r){if(e===0||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&n.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(r&&r.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};tc.fill(0),tc[0]=e,t&&(tc[1]=t.length),tc[2]=1,tc[3]=1,n&&tc.set(n,32),r&&tc.set(r,48);for(let a=0;a<16;a++)i.h[a]=WK[a]^GK(tc,a*4);return t&&(l6(i,t),i.c=128),i}function l6(e,t){for(let n=0;n<t.length;n++)e.c===128&&(e.t+=e.c,KK(e,!1),e.c=0),e.b[e.c++]=t[n]}function ZK(e){for(e.t+=e.c;e.c<128;)e.b[e.c++]=0;KK(e,!0);const t=new Uint8Array(e.outlen);for(let n=0;n<e.outlen;n++)t[n]=e.h[n>>2]>>8*(n&3);return t}function XK(e,t,n,r,i){n=n||64,e=ky.normalizeInput(e),r&&(r=ky.normalizeInput(r)),i&&(i=ky.normalizeInput(i));const a=YK(n,t,r,i);return l6(a,e),ZK(a)}function b9e(e,t,n,r,i){const a=XK(e,t,n,r,i);return ky.toHex(a)}var T9e={blake2b:XK,blake2bHex:b9e,blake2bInit:YK,blake2bUpdate:l6,blake2bFinal:ZK};const ov=Nt(T9e);function QK(e,t){var n=ov.blake2bInit(kl.box.nonceLength,null);return ov.blake2bUpdate(n,e),ov.blake2bUpdate(n,t),ov.blake2bFinal(n)}function k9e(e){for(var t=0;t<e.length;t++)e[t]=0}function S9e(e,t){var n=new Uint8Array(d9e+e.length),r=kl.box.keyPair();n.set(r.publicKey);var i=QK(r.publicKey,t),a=kl.box(e,i,t,r.secretKey);return n.set(a,r.publicKey.length),k9e(r.secretKey),n}function A9e(e,t,n){var r=e.subarray(0,kl.box.publicKeyLength),i=QK(r,t),a=e.subarray(kl.box.publicKeyLength);return kl.box.open(a,i,r,n)}const D9e={seal:S9e,open:A9e};var c6={exports:{}},eY=function(t,n){return function(){for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];return t.apply(n,i)}},w9e=eY,u6=Object.prototype.toString,d6=function(e){return function(t){var n=u6.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function md(e){return e=e.toLowerCase(),function(n){return d6(n)===e}}function p6(e){return Array.isArray(e)}function Bb(e){return typeof e>"u"}function E9e(e){return e!==null&&!Bb(e)&&e.constructor!==null&&!Bb(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var tY=md("ArrayBuffer");function C9e(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tY(e.buffer),t}function R9e(e){return typeof e=="string"}function x9e(e){return typeof e=="number"}function nY(e){return e!==null&&typeof e=="object"}function Sy(e){if(d6(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var I9e=md("Date"),_9e=md("File"),L9e=md("Blob"),P9e=md("FileList");function f6(e){return u6.call(e)==="[object Function]"}function $9e(e){return nY(e)&&f6(e.pipe)}function B9e(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||u6.call(e)===t||f6(e.toString)&&e.toString()===t)}var N9e=md("URLSearchParams");function O9e(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function M9e(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function h6(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),p6(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function DR(){var e={};function t(i,a){Sy(e[a])&&Sy(i)?e[a]=DR(e[a],i):Sy(i)?e[a]=DR({},i):p6(i)?e[a]=i.slice():e[a]=i}for(var n=0,r=arguments.length;n<r;n++)h6(arguments[n],t);return e}function F9e(e,t,n){return h6(t,function(i,a){n&&typeof i=="function"?e[a]=w9e(i,n):e[a]=i}),e}function U9e(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function H9e(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)}function j9e(e,t,n){var r,i,a,o={};t=t||{};do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)a=r[i],o[a]||(t[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function q9e(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function V9e(e){if(!e)return null;var t=e.length;if(Bb(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var z9e=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),Li={isArray:p6,isArrayBuffer:tY,isBuffer:E9e,isFormData:B9e,isArrayBufferView:C9e,isString:R9e,isNumber:x9e,isObject:nY,isPlainObject:Sy,isUndefined:Bb,isDate:I9e,isFile:_9e,isBlob:L9e,isFunction:f6,isStream:$9e,isURLSearchParams:N9e,isStandardBrowserEnv:M9e,forEach:h6,merge:DR,extend:F9e,trim:O9e,stripBOM:U9e,inherits:H9e,toFlatObject:j9e,kindOf:d6,kindOfTest:md,endsWith:q9e,toArray:V9e,isTypedArray:z9e,isFileList:P9e},Jd=Li;function WM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var rY=function(t,n,r){if(!n)return t;var i;if(r)i=r(n);else if(Jd.isURLSearchParams(n))i=n.toString();else{var a=[];Jd.forEach(n,function(l,d){l===null||typeof l>"u"||(Jd.isArray(l)?d=d+"[]":l=[l],Jd.forEach(l,function(p){Jd.isDate(p)?p=p.toISOString():Jd.isObject(p)&&(p=JSON.stringify(p)),a.push(WM(d)+"="+WM(p))}))}),i=a.join("&")}if(i){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},J9e=Li;function mT(){this.handlers=[]}mT.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};mT.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};mT.prototype.forEach=function(t){J9e.forEach(this.handlers,function(r){r!==null&&t(r)})};var G9e=mT,W9e=Li,K9e=function(t,n){W9e.forEach(t,function(i,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(t[n]=i,delete t[a])})},iY=Li;function pf(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}iY.inherits(pf,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var aY=pf.prototype,oY={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){oY[e]={value:e}});Object.defineProperties(pf,oY);Object.defineProperty(aY,"isAxiosError",{value:!0});pf.from=function(e,t,n,r,i,a){var o=Object.create(aY);return iY.toFlatObject(e,o,function(l){return l!==Error.prototype}),pf.call(o,e.message,t,n,r,i),o.name=e.name,a&&Object.assign(o,a),o};var Jf=pf,sY={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qo=Li;function Y9e(e,t){t=t||new FormData;var n=[];function r(a){return a===null?"":qo.isDate(a)?a.toISOString():qo.isArrayBuffer(a)||qo.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Ft.from(a):a}function i(a,o){if(qo.isPlainObject(a)||qo.isArray(a)){if(n.indexOf(a)!==-1)throw Error("Circular reference detected in "+o);n.push(a),qo.forEach(a,function(l,d){if(!qo.isUndefined(l)){var u=o?o+"."+d:d,p;if(l&&!o&&typeof l=="object"){if(qo.endsWith(d,"{}"))l=JSON.stringify(l);else if(qo.endsWith(d,"[]")&&(p=qo.toArray(l))){p.forEach(function(h){!qo.isUndefined(h)&&t.append(u,r(h))});return}}i(l,u)}}),n.pop()}else t.append(o,r(a))}return i(e),t}var lY=Y9e,rw,KM;function Z9e(){if(KM)return rw;KM=1;var e=Jf;return rw=function(n,r,i){var a=i.config.validateStatus;!i.status||!a||a(i.status)?n(i):r(new e("Request failed with status code "+i.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},rw}var iw,YM;function X9e(){if(YM)return iw;YM=1;var e=Li;return iw=e.isStandardBrowserEnv()?function(){return{write:function(r,i,a,o,s,l){var d=[];d.push(r+"="+encodeURIComponent(i)),e.isNumber(a)&&d.push("expires="+new Date(a).toGMTString()),e.isString(o)&&d.push("path="+o),e.isString(s)&&d.push("domain="+s),l===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(r){var i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),iw}var Q9e=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},eFe=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},tFe=Q9e,nFe=eFe,cY=function(t,n){return t&&!tFe(n)?nFe(t,n):n},aw,ZM;function rFe(){if(ZM)return aw;ZM=1;var e=Li,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return aw=function(r){var i={},a,o,s;return r&&e.forEach(r.split(`
276
- `),function(d){if(s=d.indexOf(":"),a=e.trim(d.substr(0,s)).toLowerCase(),o=e.trim(d.substr(s+1)),a){if(i[a]&&t.indexOf(a)>=0)return;a==="set-cookie"?i[a]=(i[a]?i[a]:[]).concat([o]):i[a]=i[a]?i[a]+", "+o:o}}),i},aw}var ow,XM;function iFe(){if(XM)return ow;XM=1;var e=Li;return ow=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function a(o){var s=o;return n&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=a(window.location.href),function(s){var l=e.isString(s)?a(s):s;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}(),ow}var sw,QM;function gT(){if(QM)return sw;QM=1;var e=Jf,t=Li;function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),sw=n,sw}var lw,e9;function aFe(){return e9||(e9=1,lw=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),lw}var cw,t9;function n9(){if(t9)return cw;t9=1;var e=Li,t=Z9e(),n=X9e(),r=rY,i=cY,a=rFe(),o=iFe(),s=sY,l=Jf,d=gT(),u=aFe();return cw=function(h){return new Promise(function(g,k){var C=h.data,S=h.headers,I=h.responseType,L;function N(){h.cancelToken&&h.cancelToken.unsubscribe(L),h.signal&&h.signal.removeEventListener("abort",L)}e.isFormData(C)&&e.isStandardBrowserEnv()&&delete S["Content-Type"];var q=new XMLHttpRequest;if(h.auth){var H=h.auth.username||"",V=h.auth.password?unescape(encodeURIComponent(h.auth.password)):"";S.Authorization="Basic "+btoa(H+":"+V)}var X=i(h.baseURL,h.url);q.open(h.method.toUpperCase(),r(X,h.params,h.paramsSerializer),!0),q.timeout=h.timeout;function re(){if(q){var B="getAllResponseHeaders"in q?a(q.getAllResponseHeaders()):null,T=!I||I==="text"||I==="json"?q.responseText:q.response,c={data:T,status:q.status,statusText:q.statusText,headers:B,config:h,request:q};t(function(b){g(b),N()},function(b){k(b),N()},c),q=null}}if("onloadend"in q?q.onloadend=re:q.onreadystatechange=function(){!q||q.readyState!==4||q.status===0&&!(q.responseURL&&q.responseURL.indexOf("file:")===0)||setTimeout(re)},q.onabort=function(){q&&(k(new l("Request aborted",l.ECONNABORTED,h,q)),q=null)},q.onerror=function(){k(new l("Network Error",l.ERR_NETWORK,h,q,q)),q=null},q.ontimeout=function(){var T=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded",c=h.transitional||s;h.timeoutErrorMessage&&(T=h.timeoutErrorMessage),k(new l(T,c.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,h,q)),q=null},e.isStandardBrowserEnv()){var le=(h.withCredentials||o(X))&&h.xsrfCookieName?n.read(h.xsrfCookieName):void 0;le&&(S[h.xsrfHeaderName]=le)}"setRequestHeader"in q&&e.forEach(S,function(T,c){typeof C>"u"&&c.toLowerCase()==="content-type"?delete S[c]:q.setRequestHeader(c,T)}),e.isUndefined(h.withCredentials)||(q.withCredentials=!!h.withCredentials),I&&I!=="json"&&(q.responseType=h.responseType),typeof h.onDownloadProgress=="function"&&q.addEventListener("progress",h.onDownloadProgress),typeof h.onUploadProgress=="function"&&q.upload&&q.upload.addEventListener("progress",h.onUploadProgress),(h.cancelToken||h.signal)&&(L=function(B){q&&(k(!B||B&&B.type?new d:B),q.abort(),q=null)},h.cancelToken&&h.cancelToken.subscribe(L),h.signal&&(h.signal.aborted?L():h.signal.addEventListener("abort",L))),C||(C=null);var Q=u(X);if(Q&&["http","https","file"].indexOf(Q)===-1){k(new l("Unsupported protocol "+Q+":",l.ERR_BAD_REQUEST,h));return}q.send(C)})},cw}var uw,r9;function oFe(){return r9||(r9=1,uw=null),uw}var ui=Li,i9=K9e,a9=Jf,sFe=sY,lFe=lY,cFe={"Content-Type":"application/x-www-form-urlencoded"};function o9(e,t){!ui.isUndefined(e)&&ui.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function uFe(){var e;return(typeof XMLHttpRequest<"u"||typeof Kt<"u"&&Object.prototype.toString.call(Kt)==="[object process]")&&(e=n9()),e}function dFe(e,t,n){if(ui.isString(e))try{return(t||JSON.parse)(e),ui.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var vT={transitional:sFe,adapter:uFe(),transformRequest:[function(t,n){if(i9(n,"Accept"),i9(n,"Content-Type"),ui.isFormData(t)||ui.isArrayBuffer(t)||ui.isBuffer(t)||ui.isStream(t)||ui.isFile(t)||ui.isBlob(t))return t;if(ui.isArrayBufferView(t))return t.buffer;if(ui.isURLSearchParams(t))return o9(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=ui.isObject(t),i=n&&n["Content-Type"],a;if((a=ui.isFileList(t))||r&&i==="multipart/form-data"){var o=this.env&&this.env.FormData;return lFe(a?{"files[]":t}:t,o&&new o)}else if(r||i==="application/json")return o9(n,"application/json"),dFe(t);return t}],transformResponse:[function(t){var n=this.transitional||vT.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,a=!r&&this.responseType==="json";if(a||i&&ui.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(a)throw o.name==="SyntaxError"?a9.from(o,a9.ERR_BAD_RESPONSE,this,null,this.response):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oFe()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ui.forEach(["delete","get","head"],function(t){vT.headers[t]={}});ui.forEach(["post","put","patch"],function(t){vT.headers[t]=ui.merge(cFe)});var m6=vT,pFe=Li,fFe=m6,hFe=function(t,n,r){var i=this||fFe;return pFe.forEach(r,function(o){t=o.call(i,t,n)}),t},dw,s9;function uY(){return s9||(s9=1,dw=function(t){return!!(t&&t.__CANCEL__)}),dw}var l9=Li,pw=hFe,mFe=uY(),gFe=m6,vFe=gT();function fw(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vFe}var yFe=function(t){fw(t),t.headers=t.headers||{},t.data=pw.call(t,t.data,t.headers,t.transformRequest),t.headers=l9.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),l9.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||gFe.adapter;return n(t).then(function(i){return fw(t),i.data=pw.call(t,i.data,i.headers,t.transformResponse),i},function(i){return mFe(i)||(fw(t),i&&i.response&&(i.response.data=pw.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},xa=Li,dY=function(t,n){n=n||{};var r={};function i(u,p){return xa.isPlainObject(u)&&xa.isPlainObject(p)?xa.merge(u,p):xa.isPlainObject(p)?xa.merge({},p):xa.isArray(p)?p.slice():p}function a(u){if(xa.isUndefined(n[u])){if(!xa.isUndefined(t[u]))return i(void 0,t[u])}else return i(t[u],n[u])}function o(u){if(!xa.isUndefined(n[u]))return i(void 0,n[u])}function s(u){if(xa.isUndefined(n[u])){if(!xa.isUndefined(t[u]))return i(void 0,t[u])}else return i(void 0,n[u])}function l(u){if(u in n)return i(t[u],n[u]);if(u in t)return i(void 0,t[u])}var d={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return xa.forEach(Object.keys(t).concat(Object.keys(n)),function(p){var h=d[p]||a,v=h(p);xa.isUndefined(v)&&h!==l||(r[p]=v)}),r},hw,c9;function pY(){return c9||(c9=1,hw={version:"0.27.2"}),hw}var bFe=pY().version,oc=Jf,g6={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){g6[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var u9={};g6.transitional=function(t,n,r){function i(a,o){return"[Axios v"+bFe+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return function(a,o,s){if(t===!1)throw new oc(i(o," has been removed"+(n?" in "+n:"")),oc.ERR_DEPRECATED);return n&&!u9[o]&&(u9[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};function TFe(e,t,n){if(typeof e!="object")throw new oc("options must be an object",oc.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],o=t[a];if(o){var s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new oc("option "+a+" must be "+l,oc.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new oc("Unknown option "+a,oc.ERR_BAD_OPTION)}}var kFe={assertOptions:TFe,validators:g6},fY=Li,SFe=rY,d9=G9e,p9=yFe,yT=dY,AFe=cY,hY=kFe,Gd=hY.validators;function ff(e){this.defaults=e,this.interceptors={request:new d9,response:new d9}}ff.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=yT(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&hY.assertOptions(r,{silentJSONParsing:Gd.transitional(Gd.boolean),forcedJSONParsing:Gd.transitional(Gd.boolean),clarifyTimeoutError:Gd.transitional(Gd.boolean)},!1);var i=[],a=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(a=a&&v.synchronous,i.unshift(v.fulfilled,v.rejected))});var o=[];this.interceptors.response.forEach(function(v){o.push(v.fulfilled,v.rejected)});var s;if(!a){var l=[p9,void 0];for(Array.prototype.unshift.apply(l,i),l=l.concat(o),s=Promise.resolve(n);l.length;)s=s.then(l.shift(),l.shift());return s}for(var d=n;i.length;){var u=i.shift(),p=i.shift();try{d=u(d)}catch(h){p(h);break}}try{s=p9(d)}catch(h){return Promise.reject(h)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};ff.prototype.getUri=function(t){t=yT(this.defaults,t);var n=AFe(t.baseURL,t.url);return SFe(n,t.params,t.paramsSerializer)};fY.forEach(["delete","get","head","options"],function(t){ff.prototype[t]=function(n,r){return this.request(yT(r||{},{method:t,url:n,data:(r||{}).data}))}});fY.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,s){return this.request(yT(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}ff.prototype[t]=n(),ff.prototype[t+"Form"]=n(!0)});var DFe=ff,mw,f9;function wFe(){if(f9)return mw;f9=1;var e=gT();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(o){r=o});var i=this;this.promise.then(function(a){if(i._listeners){var o,s=i._listeners.length;for(o=0;o<s;o++)i._listeners[o](a);i._listeners=null}}),this.promise.then=function(a){var o,s=new Promise(function(l){i.subscribe(l),o=l}).then(a);return s.cancel=function(){i.unsubscribe(o)},s},n(function(o){i.reason||(i.reason=new e(o),r(i.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},t.prototype.unsubscribe=function(r){if(this._listeners){var i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}},t.source=function(){var r,i=new t(function(o){r=o});return{token:i,cancel:r}},mw=t,mw}var gw,h9;function EFe(){return h9||(h9=1,gw=function(t){return function(r){return t.apply(null,r)}}),gw}var vw,m9;function CFe(){if(m9)return vw;m9=1;var e=Li;return vw=function(n){return e.isObject(n)&&n.isAxiosError===!0},vw}var g9=Li,RFe=eY,Ay=DFe,xFe=dY,IFe=m6;function mY(e){var t=new Ay(e),n=RFe(Ay.prototype.request,t);return g9.extend(n,Ay.prototype,t),g9.extend(n,t),n.create=function(i){return mY(xFe(e,i))},n}var ba=mY(IFe);ba.Axios=Ay;ba.CanceledError=gT();ba.CancelToken=wFe();ba.isCancel=uY();ba.VERSION=pY().version;ba.toFormData=lY;ba.AxiosError=Jf;ba.Cancel=ba.CanceledError;ba.all=function(t){return Promise.all(t)};ba.spread=EFe();ba.isAxiosError=CFe();c6.exports=ba;c6.exports.default=ba;var _Fe=c6.exports,gY=_Fe;const vY=Nt(gY),LFe="@arcblock/did-connect",PFe="2.9.2",$Fe="Client side library to work with DID Connect by ArcBlock.",BFe=["react","arcblock","component"],NFe="wangshijun<wangshijun2010@gmail.com>",OFe="https://github.com/ArcBlock/ux#readme",MFe="Apache-2.0",FFe="lib/index.js",UFe="es/index.js",HFe={type:"git",url:"git+https://github.com/ArcBlock/ux.git"},jFe={lint:"eslint src tests --ext js --ext jsx","lint:fix":"npm run lint -- --fix",build:"npm run build:lib && npm run build:es && npm run autoexports","build:lib":"babel src --out-dir lib --copy-files --no-copy-ignored","build:es":"babel --config-file ./babel.config.es.js src --out-dir es --copy-files --no-copy-ignored",autoexports:"node tools/auto-exports.js",watch:"babel src --out-dir lib -w --copy-files --no-copy-ignored",precommit:"CI=1 npm run lint",prepush:"CI=1 npm run lint",prepublish:"npm run build",test:"node tools/jest.js",coverage:"npm run test -- --coverage"},qFe={url:"https://github.com/ArcBlock/ux/issues"},VFe={".":{import:"./es/index.js",require:"./lib/index.js"},"./lib/":{import:"./es/",require:"./lib/"},"./lib/Address":{import:"./es/Address/index.js",require:"./lib/Address/index.js"},"./lib/Avatar":{import:"./es/Avatar/index.js",require:"./lib/Avatar/index.js"},"./lib/Button":{import:"./es/Button/index.js",require:"./lib/Button/index.js"},"./lib/Connect":{import:"./es/Connect/index.js",require:"./lib/Connect/index.js"},"./lib/Logo":{import:"./es/Logo/index.js",require:"./lib/Logo/index.js"},"./lib/OAuth":{import:"./es/OAuth/index.js",require:"./lib/OAuth/index.js"},"./lib/Service":{import:"./es/Service/index.js",require:"./lib/Service/index.js"},"./lib/Session":{import:"./es/Session/index.js",require:"./lib/Session/index.js"},"./lib/SessionManager":{import:"./es/SessionManager/index.js",require:"./lib/SessionManager/index.js"},"./lib/Storage":{import:"./es/Storage/index.js",require:"./lib/Storage/index.js"},"./lib/User":{import:"./es/User/index.js",require:"./lib/User/index.js"},"./lib/WebWalletSWKeeper":{import:"./es/WebWalletSWKeeper/index.js",require:"./lib/WebWalletSWKeeper/index.js"}},zFe={"@arcblock/icons":"^2.9.2","@arcblock/react-hooks":"^2.9.2","@arcblock/ux":"^2.9.2","@arcblock/ws":"^1.18.90","@auth0/auth0-react":"^2.0.1","@emotion/react":"^11.10.4","@emotion/styled":"^11.10.4","@fontsource/lato":"^4.5.10","@iconify-icons/logos":"^1.2.36","@iconify-icons/material-symbols":"^1.2.58","@iconify/react":"^4.1.1","@mui/icons-material":"^5.14.8","@mui/material":"^5.14.8",ahooks:"^3.7.8",axios:"^0.27.2",buffer:"^6.0.3","core-js":"^3.25.5",dsbridge:"3.1.4",eventemitter3:"^5.0.1","js-cookie":"^2.2.1","jwt-decode":"^3.1.2",lodash:"^4.17.21","mdi-material-ui":"^7.5.0","p-wait-for":"^5.0.2","path-to-regexp":"^1.8.0",semver:"^7.5.4",tweetnacl:"^1.0.3","tweetnacl-sealedbox-js":"^1.2.0","url-join":"^4.0.1"},JFe={react:">=18.1.0"},GFe={access:"public"},WFe={"@babel/cli":"^7.19.3","@babel/core":"^7.19.3","@babel/preset-env":"^7.19.3","@babel/preset-react":"^7.18.6","eslint-plugin-react-hooks":"^4.6.0",glob:"^10.3.3",jest:"^28.1.3"},KFe="b765e587f0e8d8072c63c8988aa5c47794916a6f",YFe={name:LFe,version:PFe,description:$Fe,keywords:BFe,author:NFe,homepage:OFe,license:MFe,main:FFe,module:UFe,repository:HFe,scripts:jFe,bugs:qFe,exports:VFe,dependencies:zFe,peerDependencies:JFe,publishConfig:GFe,devDependencies:WFe,gitHead:KFe},ZFe="wallet_url",yY=()=>{var e,t;return window.localStorage.getItem(ZFe)||((e=window.env)==null?void 0:e.webWalletUrl)||((t=window.blocklet)==null?void 0:t.webWalletUrl)||"https://web.abtwallet.io/"},bY=e=>{const{protocol:t}=window.location;let n="";try{n=new URL(e).protocol}catch{n=""}return t===n},{version:XFe}=YFe;function TY(e){return(e+"===".slice((e.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function QFe(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const eUe=e=>window.atob(TY(e)),tUe=e=>{const t=new URL(e),n=decodeURIComponent(t.searchParams.get("url"));return new URL(n).searchParams.get("_t_")},v6=(e,t)=>{var r,i,a;let n=t==null?void 0:t.publisher;if(!n){if(e!=null&&e.agentDid)return e.agentDid;n=e==null?void 0:e.publisher}return n?n.replace("did:abt:",""):((r=globalThis.blocklet)==null?void 0:r.appPid)||((i=globalThis.blocklet)==null?void 0:i.appId)||((a=globalThis.env)==null?void 0:a.appId)||""},kY=e=>{var n;const t=Zu({expireInDays:7,returnDomain:!1});$r.set("connected_did",e.did||"",t),$r.set("connected_pk",e.pk||"",t),$r.set("connected_app",v6(e.appInfo,e.memberAppInfo),t),(n=e.connectedWallet)!=null&&n.os&&$r.set("connected_wallet_os",e.connectedWallet.os,t)},sv=e=>QFe(mg.from(e).toString("base64")),v9=e=>Uint8Array.from(mg.from(TY(e),"base64")),SY=(e,t,n)=>{const r=D9e.open(Uint8Array.from(mg.from(e,"base64")),v9(t),v9(n));return JSON.parse(mg.from(r).toString("utf8"))},nUe=(e,t="_t_")=>{const n=new URL(e),r={baseUrl:n.origin,prefix:n.pathname.replace(/\/auth$/,""),token:n.searchParams.get(t)||""};if(!r.baseUrl)throw new Error("Invalid next workflow: origin empty");if(!r.token)throw new Error("Invalid next workflow: token not found");return r},AY=(e,t)=>{var r;let n=e.message;return e.response&&(n=((r=e.response)==null?void 0:r.data)||t),n},Ul=(e={},{lazy:t=!1,lazyTime:n=300}={})=>{const r=vY.create({...e,headers:{...e.headers,"x-did-connect-version":XFe}});if(t){async function i(a){a.metaData.endTime=new Date;const{startTime:o,endTime:s}=a.metaData,l=s-o;l<n&&await bT(n-l),delete a.metaData}r.interceptors.request.use(a=>(a.metaData={startTime:new Date},a),a=>Promise.reject(a)),r.interceptors.response.use(async a=>(await i(a.config),a),async a=>(await i(a.response.config),Promise.reject(a)))}return r},bT=(e=0)=>new Promise(t=>{setTimeout(()=>{t()},e)});function DY(){if(typeof window>"u")return null;const e=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null;return{"zh-CN":"zh","zh-TW":"zh",zh:"zh",en:"en"}[e]||"en"}function wY({callback:e}){return G.useEffect(()=>(window.addEventListener("focus",e),()=>{window.removeEventListener("focus",e)}),[]),null}wY.propTypes={callback:be.func.isRequired};function TT({children:e,title:t,prepend:n,toolbar:r,actions:i,showCloseButton:a,actionsPosition:o,PaperProps:s,...l}){const d=za(),u=ZI(d.breakpoints.down("md")),p=t||a||r,h=(g,k)=>{const{onClose:C}=l;C&&C(g,k)};s.style=Object.assign({minWidth:300,minHeight:300},s.style);const v=Y.jsx(Bs,{className:"ux-dialog_closeButton",onClick:g=>h(g,"closeButton"),size:"large",children:Y.jsx(d4,{})});return Y.jsxs(rUe,{fullScreen:u,onClose:h,PaperProps:s,...l,children:[p&&Y.jsxs(iUe,{className:"ux-dialog_header",isMobile:u,children:[Y.jsxs("div",{className:"ux-dialog_left",children:[a&&u&&v,n&&Y.jsx("div",{className:"ux-dialog_prepend",children:n}),t&&Y.jsx("h6",{className:"ux-dialog_title",children:t})]}),Y.jsxs("div",{className:"ux-dialog_right",children:[Y.jsx("div",{className:"ux-dialog_toolbar",children:r}),a&&!u&&v]})]}),Y.jsx(Pz,{children:e}),i&&Y.jsx(P3e,{className:`ux-dialog_actions--${o}`,children:i})]})}TT.propTypes={children:be.node.isRequired,title:be.node,prepend:be.node,toolbar:be.node,actions:be.node,showCloseButton:be.bool,actionsPosition:be.oneOf(["left","center","right"]),PaperProps:be.object};TT.defaultProps={showCloseButton:!0,title:"",prepend:null,toolbar:null,actions:null,actionsPosition:"right",PaperProps:{}};const rUe=Ii(Lz)`
276
+ `),function(d){if(s=d.indexOf(":"),a=e.trim(d.substr(0,s)).toLowerCase(),o=e.trim(d.substr(s+1)),a){if(i[a]&&t.indexOf(a)>=0)return;a==="set-cookie"?i[a]=(i[a]?i[a]:[]).concat([o]):i[a]=i[a]?i[a]+", "+o:o}}),i},aw}var ow,XM;function iFe(){if(XM)return ow;XM=1;var e=Li;return ow=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function a(o){var s=o;return n&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=a(window.location.href),function(s){var l=e.isString(s)?a(s):s;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}(),ow}var sw,QM;function gT(){if(QM)return sw;QM=1;var e=Jf,t=Li;function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),sw=n,sw}var lw,e9;function aFe(){return e9||(e9=1,lw=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),lw}var cw,t9;function n9(){if(t9)return cw;t9=1;var e=Li,t=Z9e(),n=X9e(),r=rY,i=cY,a=rFe(),o=iFe(),s=sY,l=Jf,d=gT(),u=aFe();return cw=function(h){return new Promise(function(g,k){var C=h.data,S=h.headers,I=h.responseType,L;function N(){h.cancelToken&&h.cancelToken.unsubscribe(L),h.signal&&h.signal.removeEventListener("abort",L)}e.isFormData(C)&&e.isStandardBrowserEnv()&&delete S["Content-Type"];var q=new XMLHttpRequest;if(h.auth){var H=h.auth.username||"",V=h.auth.password?unescape(encodeURIComponent(h.auth.password)):"";S.Authorization="Basic "+btoa(H+":"+V)}var X=i(h.baseURL,h.url);q.open(h.method.toUpperCase(),r(X,h.params,h.paramsSerializer),!0),q.timeout=h.timeout;function re(){if(q){var B="getAllResponseHeaders"in q?a(q.getAllResponseHeaders()):null,T=!I||I==="text"||I==="json"?q.responseText:q.response,c={data:T,status:q.status,statusText:q.statusText,headers:B,config:h,request:q};t(function(b){g(b),N()},function(b){k(b),N()},c),q=null}}if("onloadend"in q?q.onloadend=re:q.onreadystatechange=function(){!q||q.readyState!==4||q.status===0&&!(q.responseURL&&q.responseURL.indexOf("file:")===0)||setTimeout(re)},q.onabort=function(){q&&(k(new l("Request aborted",l.ECONNABORTED,h,q)),q=null)},q.onerror=function(){k(new l("Network Error",l.ERR_NETWORK,h,q,q)),q=null},q.ontimeout=function(){var T=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded",c=h.transitional||s;h.timeoutErrorMessage&&(T=h.timeoutErrorMessage),k(new l(T,c.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,h,q)),q=null},e.isStandardBrowserEnv()){var le=(h.withCredentials||o(X))&&h.xsrfCookieName?n.read(h.xsrfCookieName):void 0;le&&(S[h.xsrfHeaderName]=le)}"setRequestHeader"in q&&e.forEach(S,function(T,c){typeof C>"u"&&c.toLowerCase()==="content-type"?delete S[c]:q.setRequestHeader(c,T)}),e.isUndefined(h.withCredentials)||(q.withCredentials=!!h.withCredentials),I&&I!=="json"&&(q.responseType=h.responseType),typeof h.onDownloadProgress=="function"&&q.addEventListener("progress",h.onDownloadProgress),typeof h.onUploadProgress=="function"&&q.upload&&q.upload.addEventListener("progress",h.onUploadProgress),(h.cancelToken||h.signal)&&(L=function(B){q&&(k(!B||B&&B.type?new d:B),q.abort(),q=null)},h.cancelToken&&h.cancelToken.subscribe(L),h.signal&&(h.signal.aborted?L():h.signal.addEventListener("abort",L))),C||(C=null);var Q=u(X);if(Q&&["http","https","file"].indexOf(Q)===-1){k(new l("Unsupported protocol "+Q+":",l.ERR_BAD_REQUEST,h));return}q.send(C)})},cw}var uw,r9;function oFe(){return r9||(r9=1,uw=null),uw}var ui=Li,i9=K9e,a9=Jf,sFe=sY,lFe=lY,cFe={"Content-Type":"application/x-www-form-urlencoded"};function o9(e,t){!ui.isUndefined(e)&&ui.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function uFe(){var e;return(typeof XMLHttpRequest<"u"||typeof Kt<"u"&&Object.prototype.toString.call(Kt)==="[object process]")&&(e=n9()),e}function dFe(e,t,n){if(ui.isString(e))try{return(t||JSON.parse)(e),ui.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var vT={transitional:sFe,adapter:uFe(),transformRequest:[function(t,n){if(i9(n,"Accept"),i9(n,"Content-Type"),ui.isFormData(t)||ui.isArrayBuffer(t)||ui.isBuffer(t)||ui.isStream(t)||ui.isFile(t)||ui.isBlob(t))return t;if(ui.isArrayBufferView(t))return t.buffer;if(ui.isURLSearchParams(t))return o9(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=ui.isObject(t),i=n&&n["Content-Type"],a;if((a=ui.isFileList(t))||r&&i==="multipart/form-data"){var o=this.env&&this.env.FormData;return lFe(a?{"files[]":t}:t,o&&new o)}else if(r||i==="application/json")return o9(n,"application/json"),dFe(t);return t}],transformResponse:[function(t){var n=this.transitional||vT.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,a=!r&&this.responseType==="json";if(a||i&&ui.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(a)throw o.name==="SyntaxError"?a9.from(o,a9.ERR_BAD_RESPONSE,this,null,this.response):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oFe()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ui.forEach(["delete","get","head"],function(t){vT.headers[t]={}});ui.forEach(["post","put","patch"],function(t){vT.headers[t]=ui.merge(cFe)});var m6=vT,pFe=Li,fFe=m6,hFe=function(t,n,r){var i=this||fFe;return pFe.forEach(r,function(o){t=o.call(i,t,n)}),t},dw,s9;function uY(){return s9||(s9=1,dw=function(t){return!!(t&&t.__CANCEL__)}),dw}var l9=Li,pw=hFe,mFe=uY(),gFe=m6,vFe=gT();function fw(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vFe}var yFe=function(t){fw(t),t.headers=t.headers||{},t.data=pw.call(t,t.data,t.headers,t.transformRequest),t.headers=l9.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),l9.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||gFe.adapter;return n(t).then(function(i){return fw(t),i.data=pw.call(t,i.data,i.headers,t.transformResponse),i},function(i){return mFe(i)||(fw(t),i&&i.response&&(i.response.data=pw.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},xa=Li,dY=function(t,n){n=n||{};var r={};function i(u,p){return xa.isPlainObject(u)&&xa.isPlainObject(p)?xa.merge(u,p):xa.isPlainObject(p)?xa.merge({},p):xa.isArray(p)?p.slice():p}function a(u){if(xa.isUndefined(n[u])){if(!xa.isUndefined(t[u]))return i(void 0,t[u])}else return i(t[u],n[u])}function o(u){if(!xa.isUndefined(n[u]))return i(void 0,n[u])}function s(u){if(xa.isUndefined(n[u])){if(!xa.isUndefined(t[u]))return i(void 0,t[u])}else return i(void 0,n[u])}function l(u){if(u in n)return i(t[u],n[u]);if(u in t)return i(void 0,t[u])}var d={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return xa.forEach(Object.keys(t).concat(Object.keys(n)),function(p){var h=d[p]||a,v=h(p);xa.isUndefined(v)&&h!==l||(r[p]=v)}),r},hw,c9;function pY(){return c9||(c9=1,hw={version:"0.27.2"}),hw}var bFe=pY().version,oc=Jf,g6={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){g6[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var u9={};g6.transitional=function(t,n,r){function i(a,o){return"[Axios v"+bFe+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return function(a,o,s){if(t===!1)throw new oc(i(o," has been removed"+(n?" in "+n:"")),oc.ERR_DEPRECATED);return n&&!u9[o]&&(u9[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};function TFe(e,t,n){if(typeof e!="object")throw new oc("options must be an object",oc.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],o=t[a];if(o){var s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new oc("option "+a+" must be "+l,oc.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new oc("Unknown option "+a,oc.ERR_BAD_OPTION)}}var kFe={assertOptions:TFe,validators:g6},fY=Li,SFe=rY,d9=G9e,p9=yFe,yT=dY,AFe=cY,hY=kFe,Gd=hY.validators;function ff(e){this.defaults=e,this.interceptors={request:new d9,response:new d9}}ff.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=yT(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&hY.assertOptions(r,{silentJSONParsing:Gd.transitional(Gd.boolean),forcedJSONParsing:Gd.transitional(Gd.boolean),clarifyTimeoutError:Gd.transitional(Gd.boolean)},!1);var i=[],a=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(a=a&&v.synchronous,i.unshift(v.fulfilled,v.rejected))});var o=[];this.interceptors.response.forEach(function(v){o.push(v.fulfilled,v.rejected)});var s;if(!a){var l=[p9,void 0];for(Array.prototype.unshift.apply(l,i),l=l.concat(o),s=Promise.resolve(n);l.length;)s=s.then(l.shift(),l.shift());return s}for(var d=n;i.length;){var u=i.shift(),p=i.shift();try{d=u(d)}catch(h){p(h);break}}try{s=p9(d)}catch(h){return Promise.reject(h)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};ff.prototype.getUri=function(t){t=yT(this.defaults,t);var n=AFe(t.baseURL,t.url);return SFe(n,t.params,t.paramsSerializer)};fY.forEach(["delete","get","head","options"],function(t){ff.prototype[t]=function(n,r){return this.request(yT(r||{},{method:t,url:n,data:(r||{}).data}))}});fY.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,s){return this.request(yT(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}ff.prototype[t]=n(),ff.prototype[t+"Form"]=n(!0)});var DFe=ff,mw,f9;function wFe(){if(f9)return mw;f9=1;var e=gT();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(o){r=o});var i=this;this.promise.then(function(a){if(i._listeners){var o,s=i._listeners.length;for(o=0;o<s;o++)i._listeners[o](a);i._listeners=null}}),this.promise.then=function(a){var o,s=new Promise(function(l){i.subscribe(l),o=l}).then(a);return s.cancel=function(){i.unsubscribe(o)},s},n(function(o){i.reason||(i.reason=new e(o),r(i.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},t.prototype.unsubscribe=function(r){if(this._listeners){var i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}},t.source=function(){var r,i=new t(function(o){r=o});return{token:i,cancel:r}},mw=t,mw}var gw,h9;function EFe(){return h9||(h9=1,gw=function(t){return function(r){return t.apply(null,r)}}),gw}var vw,m9;function CFe(){if(m9)return vw;m9=1;var e=Li;return vw=function(n){return e.isObject(n)&&n.isAxiosError===!0},vw}var g9=Li,RFe=eY,Ay=DFe,xFe=dY,IFe=m6;function mY(e){var t=new Ay(e),n=RFe(Ay.prototype.request,t);return g9.extend(n,Ay.prototype,t),g9.extend(n,t),n.create=function(i){return mY(xFe(e,i))},n}var ba=mY(IFe);ba.Axios=Ay;ba.CanceledError=gT();ba.CancelToken=wFe();ba.isCancel=uY();ba.VERSION=pY().version;ba.toFormData=lY;ba.AxiosError=Jf;ba.Cancel=ba.CanceledError;ba.all=function(t){return Promise.all(t)};ba.spread=EFe();ba.isAxiosError=CFe();c6.exports=ba;c6.exports.default=ba;var _Fe=c6.exports,gY=_Fe;const vY=Nt(gY),LFe="@arcblock/did-connect",PFe="2.9.3",$Fe="Client side library to work with DID Connect by ArcBlock.",BFe=["react","arcblock","component"],NFe="wangshijun<wangshijun2010@gmail.com>",OFe="https://github.com/ArcBlock/ux#readme",MFe="Apache-2.0",FFe="lib/index.js",UFe="es/index.js",HFe={type:"git",url:"git+https://github.com/ArcBlock/ux.git"},jFe={lint:"eslint src tests --ext js --ext jsx","lint:fix":"npm run lint -- --fix",build:"npm run build:lib && npm run build:es && npm run autoexports","build:lib":"babel src --out-dir lib --copy-files --no-copy-ignored","build:es":"babel --config-file ./babel.config.es.js src --out-dir es --copy-files --no-copy-ignored",autoexports:"node tools/auto-exports.js",watch:"babel src --out-dir lib -w --copy-files --no-copy-ignored",precommit:"CI=1 npm run lint",prepush:"CI=1 npm run lint",prepublish:"npm run build",test:"node tools/jest.js",coverage:"npm run test -- --coverage"},qFe={url:"https://github.com/ArcBlock/ux/issues"},VFe={".":{import:"./es/index.js",require:"./lib/index.js"},"./lib/":{import:"./es/",require:"./lib/"},"./lib/Address":{import:"./es/Address/index.js",require:"./lib/Address/index.js"},"./lib/Avatar":{import:"./es/Avatar/index.js",require:"./lib/Avatar/index.js"},"./lib/Button":{import:"./es/Button/index.js",require:"./lib/Button/index.js"},"./lib/Connect":{import:"./es/Connect/index.js",require:"./lib/Connect/index.js"},"./lib/Logo":{import:"./es/Logo/index.js",require:"./lib/Logo/index.js"},"./lib/OAuth":{import:"./es/OAuth/index.js",require:"./lib/OAuth/index.js"},"./lib/Service":{import:"./es/Service/index.js",require:"./lib/Service/index.js"},"./lib/Session":{import:"./es/Session/index.js",require:"./lib/Session/index.js"},"./lib/SessionManager":{import:"./es/SessionManager/index.js",require:"./lib/SessionManager/index.js"},"./lib/Storage":{import:"./es/Storage/index.js",require:"./lib/Storage/index.js"},"./lib/User":{import:"./es/User/index.js",require:"./lib/User/index.js"},"./lib/WebWalletSWKeeper":{import:"./es/WebWalletSWKeeper/index.js",require:"./lib/WebWalletSWKeeper/index.js"}},zFe={"@arcblock/icons":"^2.9.3","@arcblock/react-hooks":"^2.9.3","@arcblock/ux":"^2.9.3","@arcblock/ws":"^1.18.90","@auth0/auth0-react":"^2.0.1","@emotion/react":"^11.10.4","@emotion/styled":"^11.10.4","@fontsource/lato":"^4.5.10","@iconify-icons/logos":"^1.2.36","@iconify-icons/material-symbols":"^1.2.58","@iconify/react":"^4.1.1","@mui/icons-material":"^5.14.8","@mui/material":"^5.14.8",ahooks:"^3.7.8",axios:"^0.27.2",buffer:"^6.0.3","core-js":"^3.25.5",dsbridge:"3.1.4",eventemitter3:"^5.0.1","js-cookie":"^2.2.1","jwt-decode":"^3.1.2",lodash:"^4.17.21","mdi-material-ui":"^7.5.0","p-wait-for":"^5.0.2","path-to-regexp":"^1.8.0",semver:"^7.5.4",tweetnacl:"^1.0.3","tweetnacl-sealedbox-js":"^1.2.0","url-join":"^4.0.1"},JFe={react:">=18.1.0"},GFe={access:"public"},WFe={"@babel/cli":"^7.19.3","@babel/core":"^7.19.3","@babel/preset-env":"^7.19.3","@babel/preset-react":"^7.18.6","eslint-plugin-react-hooks":"^4.6.0",glob:"^10.3.3",jest:"^28.1.3"},KFe="fac6bb44cbd82829e83687a85395be022bd90ba5",YFe={name:LFe,version:PFe,description:$Fe,keywords:BFe,author:NFe,homepage:OFe,license:MFe,main:FFe,module:UFe,repository:HFe,scripts:jFe,bugs:qFe,exports:VFe,dependencies:zFe,peerDependencies:JFe,publishConfig:GFe,devDependencies:WFe,gitHead:KFe},ZFe="wallet_url",yY=()=>{var e,t;return window.localStorage.getItem(ZFe)||((e=window.env)==null?void 0:e.webWalletUrl)||((t=window.blocklet)==null?void 0:t.webWalletUrl)||"https://web.abtwallet.io/"},bY=e=>{const{protocol:t}=window.location;let n="";try{n=new URL(e).protocol}catch{n=""}return t===n},{version:XFe}=YFe;function TY(e){return(e+"===".slice((e.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function QFe(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const eUe=e=>window.atob(TY(e)),tUe=e=>{const t=new URL(e),n=decodeURIComponent(t.searchParams.get("url"));return new URL(n).searchParams.get("_t_")},v6=(e,t)=>{var r,i,a;let n=t==null?void 0:t.publisher;if(!n){if(e!=null&&e.agentDid)return e.agentDid;n=e==null?void 0:e.publisher}return n?n.replace("did:abt:",""):((r=globalThis.blocklet)==null?void 0:r.appPid)||((i=globalThis.blocklet)==null?void 0:i.appId)||((a=globalThis.env)==null?void 0:a.appId)||""},kY=e=>{var n;const t=Zu({expireInDays:7,returnDomain:!1});$r.set("connected_did",e.did||"",t),$r.set("connected_pk",e.pk||"",t),$r.set("connected_app",v6(e.appInfo,e.memberAppInfo),t),(n=e.connectedWallet)!=null&&n.os&&$r.set("connected_wallet_os",e.connectedWallet.os,t)},sv=e=>QFe(mg.from(e).toString("base64")),v9=e=>Uint8Array.from(mg.from(TY(e),"base64")),SY=(e,t,n)=>{const r=D9e.open(Uint8Array.from(mg.from(e,"base64")),v9(t),v9(n));return JSON.parse(mg.from(r).toString("utf8"))},nUe=(e,t="_t_")=>{const n=new URL(e),r={baseUrl:n.origin,prefix:n.pathname.replace(/\/auth$/,""),token:n.searchParams.get(t)||""};if(!r.baseUrl)throw new Error("Invalid next workflow: origin empty");if(!r.token)throw new Error("Invalid next workflow: token not found");return r},AY=(e,t)=>{var r;let n=e.message;return e.response&&(n=((r=e.response)==null?void 0:r.data)||t),n},Ul=(e={},{lazy:t=!1,lazyTime:n=300}={})=>{const r=vY.create({...e,headers:{...e.headers,"x-did-connect-version":XFe}});if(t){async function i(a){a.metaData.endTime=new Date;const{startTime:o,endTime:s}=a.metaData,l=s-o;l<n&&await bT(n-l),delete a.metaData}r.interceptors.request.use(a=>(a.metaData={startTime:new Date},a),a=>Promise.reject(a)),r.interceptors.response.use(async a=>(await i(a.config),a),async a=>(await i(a.response.config),Promise.reject(a)))}return r},bT=(e=0)=>new Promise(t=>{setTimeout(()=>{t()},e)});function DY(){if(typeof window>"u")return null;const e=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null;return{"zh-CN":"zh","zh-TW":"zh",zh:"zh",en:"en"}[e]||"en"}function wY({callback:e}){return G.useEffect(()=>(window.addEventListener("focus",e),()=>{window.removeEventListener("focus",e)}),[]),null}wY.propTypes={callback:be.func.isRequired};function TT({children:e,title:t,prepend:n,toolbar:r,actions:i,showCloseButton:a,actionsPosition:o,PaperProps:s,...l}){const d=za(),u=ZI(d.breakpoints.down("md")),p=t||a||r,h=(g,k)=>{const{onClose:C}=l;C&&C(g,k)};s.style=Object.assign({minWidth:300,minHeight:300},s.style);const v=Y.jsx(Bs,{className:"ux-dialog_closeButton",onClick:g=>h(g,"closeButton"),size:"large",children:Y.jsx(d4,{})});return Y.jsxs(rUe,{fullScreen:u,onClose:h,PaperProps:s,...l,children:[p&&Y.jsxs(iUe,{className:"ux-dialog_header",isMobile:u,children:[Y.jsxs("div",{className:"ux-dialog_left",children:[a&&u&&v,n&&Y.jsx("div",{className:"ux-dialog_prepend",children:n}),t&&Y.jsx("h6",{className:"ux-dialog_title",children:t})]}),Y.jsxs("div",{className:"ux-dialog_right",children:[Y.jsx("div",{className:"ux-dialog_toolbar",children:r}),a&&!u&&v]})]}),Y.jsx(Pz,{children:e}),i&&Y.jsx(P3e,{className:`ux-dialog_actions--${o}`,children:i})]})}TT.propTypes={children:be.node.isRequired,title:be.node,prepend:be.node,toolbar:be.node,actions:be.node,showCloseButton:be.bool,actionsPosition:be.oneOf(["left","center","right"]),PaperProps:be.object};TT.defaultProps={showCloseButton:!0,title:"",prepend:null,toolbar:null,actions:null,actionsPosition:"right",PaperProps:{}};const rUe=Ii(Lz)`
277
277
  .MuiDialog-paper {
278
278
  ${e=>e.fullScreen?"border-radius: 0;":""};
279
279
  }
@@ -628,7 +628,7 @@ function print() { __p += __j.call(arguments, '') }
628
628
  `}return Oe.substring(0,Oe.length-1)},E.renderTo2dContext=function(j,$){$=$||2;for(var Z=E.getModuleCount(),W=0;W<Z;W++)for(var te=0;te<Z;te++)j.fillStyle=E.isDark(W,te)?"black":"white",j.fillRect(W*$,te*$,$,$)},E};u.stringToBytes=(u.stringToBytesFuncs={default:function(T){for(var c=[],f=0;f<T.length;f+=1){var b=T.charCodeAt(f);c.push(255&b)}return c}}).default,u.createStringToBytes=function(T,c){var f=function(){for(var D=Q(T),R=function(){var ne=D.read();if(ne==-1)throw"eof";return ne},x=0,w={};;){var E=D.read();if(E==-1)break;var y=R(),_=R()<<8|R();w[String.fromCharCode(E<<8|y)]=_,x+=1}if(x!=c)throw x+" != "+c;return w}(),b=63;return function(D){for(var R=[],x=0;x<D.length;x+=1){var w=D.charCodeAt(x);if(w<128)R.push(w);else{var E=f[D.charAt(x)];typeof E=="number"?(255&E)==E?R.push(E):(R.push(E>>>8),R.push(255&E)):R.push(b)}}return R}};var p,h,v,g,k,C={L:1,M:0,Q:3,H:2},S=(p=[[],[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]],h=1335,v=7973,k=function(T){for(var c=0;T!=0;)c+=1,T>>>=1;return c},(g={}).getBCHTypeInfo=function(T){for(var c=T<<10;k(c)-k(h)>=0;)c^=h<<k(c)-k(h);return 21522^(T<<10|c)},g.getBCHTypeNumber=function(T){for(var c=T<<12;k(c)-k(v)>=0;)c^=v<<k(c)-k(v);return T<<12|c},g.getPatternPosition=function(T){return p[T-1]},g.getMaskFunction=function(T){switch(T){case 0:return function(c,f){return(c+f)%2==0};case 1:return function(c,f){return c%2==0};case 2:return function(c,f){return f%3==0};case 3:return function(c,f){return(c+f)%3==0};case 4:return function(c,f){return(Math.floor(c/2)+Math.floor(f/3))%2==0};case 5:return function(c,f){return c*f%2+c*f%3==0};case 6:return function(c,f){return(c*f%2+c*f%3)%2==0};case 7:return function(c,f){return(c*f%3+(c+f)%2)%2==0};default:throw"bad maskPattern:"+T}},g.getErrorCorrectPolynomial=function(T){for(var c=L([1],0),f=0;f<T;f+=1)c=c.multiply(L([1,I.gexp(f)],0));return c},g.getLengthInBits=function(T,c){if(1<=c&&c<10)switch(T){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+T}else if(c<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(!(c<41))throw"type:"+c;switch(T){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+T}}},g.getLostPoint=function(T){for(var c=T.getModuleCount(),f=0,b=0;b<c;b+=1)for(var D=0;D<c;D+=1){for(var R=0,x=T.isDark(b,D),w=-1;w<=1;w+=1)if(!(b+w<0||c<=b+w))for(var E=-1;E<=1;E+=1)D+E<0||c<=D+E||w==0&&E==0||x==T.isDark(b+w,D+E)&&(R+=1);R>5&&(f+=3+R-5)}for(b=0;b<c-1;b+=1)for(D=0;D<c-1;D+=1){var y=0;T.isDark(b,D)&&(y+=1),T.isDark(b+1,D)&&(y+=1),T.isDark(b,D+1)&&(y+=1),T.isDark(b+1,D+1)&&(y+=1),y!=0&&y!=4||(f+=3)}for(b=0;b<c;b+=1)for(D=0;D<c-6;D+=1)T.isDark(b,D)&&!T.isDark(b,D+1)&&T.isDark(b,D+2)&&T.isDark(b,D+3)&&T.isDark(b,D+4)&&!T.isDark(b,D+5)&&T.isDark(b,D+6)&&(f+=40);for(D=0;D<c;D+=1)for(b=0;b<c-6;b+=1)T.isDark(b,D)&&!T.isDark(b+1,D)&&T.isDark(b+2,D)&&T.isDark(b+3,D)&&T.isDark(b+4,D)&&!T.isDark(b+5,D)&&T.isDark(b+6,D)&&(f+=40);var _=0;for(D=0;D<c;D+=1)for(b=0;b<c;b+=1)T.isDark(b,D)&&(_+=1);return f+Math.abs(100*_/c/c-50)/5*10},g),I=function(){for(var T=new Array(256),c=new Array(256),f=0;f<8;f+=1)T[f]=1<<f;for(f=8;f<256;f+=1)T[f]=T[f-4]^T[f-5]^T[f-6]^T[f-8];for(f=0;f<255;f+=1)c[T[f]]=f;return{glog:function(b){if(b<1)throw"glog("+b+")";return c[b]},gexp:function(b){for(;b<0;)b+=255;for(;b>=256;)b-=255;return T[b]}}}();function L(T,c){if(T.length===void 0)throw T.length+"/"+c;var f=function(){for(var D=0;D<T.length&&T[D]==0;)D+=1;for(var R=new Array(T.length-D+c),x=0;x<T.length-D;x+=1)R[x]=T[x+D];return R}(),b={getAt:function(D){return f[D]},getLength:function(){return f.length},multiply:function(D){for(var R=new Array(b.getLength()+D.getLength()-1),x=0;x<b.getLength();x+=1)for(var w=0;w<D.getLength();w+=1)R[x+w]^=I.gexp(I.glog(b.getAt(x))+I.glog(D.getAt(w)));return L(R,0)},mod:function(D){if(b.getLength()-D.getLength()<0)return b;for(var R=I.glog(b.getAt(0))-I.glog(D.getAt(0)),x=new Array(b.getLength()),w=0;w<b.getLength();w+=1)x[w]=b.getAt(w);for(w=0;w<D.getLength();w+=1)x[w]^=I.gexp(I.glog(D.getAt(w))+R);return L(x,0).mod(D)}};return b}var N=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]],c=function(b,D){var R={};return R.totalCount=b,R.dataCount=D,R},f={getRSBlocks:function(b,D){var R=function(z,ie){switch(ie){case C.L:return T[4*(z-1)+0];case C.M:return T[4*(z-1)+1];case C.Q:return T[4*(z-1)+2];case C.H:return T[4*(z-1)+3];default:return}}(b,D);if(R===void 0)throw"bad rs block @ typeNumber:"+b+"/errorCorrectionLevel:"+D;for(var x=R.length/3,w=[],E=0;E<x;E+=1)for(var y=R[3*E+0],_=R[3*E+1],ne=R[3*E+2],M=0;M<y;M+=1)w.push(c(_,ne));return w}};return f}(),q=function(){var T=[],c=0,f={getBuffer:function(){return T},getAt:function(b){var D=Math.floor(b/8);return(T[D]>>>7-b%8&1)==1},put:function(b,D){for(var R=0;R<D;R+=1)f.putBit((b>>>D-R-1&1)==1)},getLengthInBits:function(){return c},putBit:function(b){var D=Math.floor(c/8);T.length<=D&&T.push(0),b&&(T[D]|=128>>>c%8),c+=1}};return f},H=function(T){var c=T,f={getMode:function(){return 1},getLength:function(R){return c.length},write:function(R){for(var x=c,w=0;w+2<x.length;)R.put(b(x.substring(w,w+3)),10),w+=3;w<x.length&&(x.length-w==1?R.put(b(x.substring(w,w+1)),4):x.length-w==2&&R.put(b(x.substring(w,w+2)),7))}},b=function(R){for(var x=0,w=0;w<R.length;w+=1)x=10*x+D(R.charAt(w));return x},D=function(R){if("0"<=R&&R<="9")return R.charCodeAt(0)-48;throw"illegal char :"+R};return f},V=function(T){var c=T,f={getMode:function(){return 2},getLength:function(D){return c.length},write:function(D){for(var R=c,x=0;x+1<R.length;)D.put(45*b(R.charAt(x))+b(R.charAt(x+1)),11),x+=2;x<R.length&&D.put(b(R.charAt(x)),6)}},b=function(D){if("0"<=D&&D<="9")return D.charCodeAt(0)-48;if("A"<=D&&D<="Z")return D.charCodeAt(0)-65+10;switch(D){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 :"+D}};return f},X=function(T){var c=u.stringToBytes(T);return{getMode:function(){return 4},getLength:function(f){return c.length},write:function(f){for(var b=0;b<c.length;b+=1)f.put(c[b],8)}}},re=function(T){var c=u.stringToBytesFuncs.SJIS;if(!c)throw"sjis not supported.";(function(D,R){var x=c("友");if(x.length!=2||(x[0]<<8|x[1])!=38726)throw"sjis not supported."})();var f=c(T),b={getMode:function(){return 8},getLength:function(D){return~~(f.length/2)},write:function(D){for(var R=f,x=0;x+1<R.length;){var w=(255&R[x])<<8|255&R[x+1];if(33088<=w&&w<=40956)w-=33088;else{if(!(57408<=w&&w<=60351))throw"illegal char at "+(x+1)+"/"+w;w-=49472}w=192*(w>>>8&255)+(255&w),D.put(w,13),x+=2}if(x<R.length)throw"illegal char at "+(x+1)}};return b},le=function(){var T=[],c={writeByte:function(f){T.push(255&f)},writeShort:function(f){c.writeByte(f),c.writeByte(f>>>8)},writeBytes:function(f,b,D){b=b||0,D=D||f.length;for(var R=0;R<D;R+=1)c.writeByte(f[R+b])},writeString:function(f){for(var b=0;b<f.length;b+=1)c.writeByte(f.charCodeAt(b))},toByteArray:function(){return T},toString:function(){var f="";f+="[";for(var b=0;b<T.length;b+=1)b>0&&(f+=","),f+=T[b];return f+"]"}};return c},Q=function(T){var c=T,f=0,b=0,D=0,R={read:function(){for(;D<8;){if(f>=c.length){if(D==0)return-1;throw"unexpected end of file./"+D}var w=c.charAt(f);if(f+=1,w=="=")return D=0,-1;w.match(/^\s$/)||(b=b<<6|x(w.charCodeAt(0)),D+=6)}var E=b>>>D-8&255;return D-=8,E}},x=function(w){if(65<=w&&w<=90)return w-65;if(97<=w&&w<=122)return w-97+26;if(48<=w&&w<=57)return w-48+52;if(w==43)return 62;if(w==47)return 63;throw"c:"+w};return R},B=function(T,c,f){for(var b=function(_,ne){var M=_,z=ne,ie=new Array(_*ne),ce={setPixel:function(j,$,Z){ie[$*M+j]=Z},write:function(j){j.writeString("GIF87a"),j.writeShort(M),j.writeShort(z),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(M),j.writeShort(z),j.writeByte(0);var $=he(2);j.writeByte(2);for(var Z=0;$.length-Z>255;)j.writeByte(255),j.writeBytes($,Z,255),Z+=255;j.writeByte($.length-Z),j.writeBytes($,Z,$.length-Z),j.writeByte(0),j.writeString(";")}},he=function(j){for(var $=1<<j,Z=1+(1<<j),W=j+1,te=De(),ge=0;ge<$;ge+=1)te.add(String.fromCharCode(ge));te.add(String.fromCharCode($)),te.add(String.fromCharCode(Z));var fe,oe,me,Ae=le(),ye=(fe=Ae,oe=0,me=0,{write:function(Pe,Ie){if(Pe>>>Ie)throw"length over";for(;oe+Ie>=8;)fe.writeByte(255&(Pe<<oe|me)),Ie-=8-oe,Pe>>>=8-oe,me=0,oe=0;me|=Pe<<oe,oe+=Ie},flush:function(){oe>0&&fe.writeByte(me)}});ye.write($,W);var Oe=0,$e=String.fromCharCode(ie[Oe]);for(Oe+=1;Oe<ie.length;){var Ee=String.fromCharCode(ie[Oe]);Oe+=1,te.contains($e+Ee)?$e+=Ee:(ye.write(te.indexOf($e),W),te.size()<4095&&(te.size()==1<<W&&(W+=1),te.add($e+Ee)),$e=Ee)}return ye.write(te.indexOf($e),W),ye.write(Z,W),ye.flush(),Ae.toByteArray()},De=function(){var j={},$=0,Z={add:function(W){if(Z.contains(W))throw"dup key:"+W;j[W]=$,$+=1},size:function(){return $},indexOf:function(W){return j[W]},contains:function(W){return j[W]!==void 0}};return Z};return ce}(T,c),D=0;D<c;D+=1)for(var R=0;R<T;R+=1)b.setPixel(R,D,f(R,D));var x=le();b.write(x);for(var w=function(){var _=0,ne=0,M=0,z="",ie={},ce=function(De){z+=String.fromCharCode(he(63&De))},he=function(De){if(!(De<0)){if(De<26)return 65+De;if(De<52)return De-26+97;if(De<62)return De-52+48;if(De==62)return 43;if(De==63)return 47}throw"n:"+De};return ie.writeByte=function(De){for(_=_<<8|255&De,ne+=8,M+=1;ne>=6;)ce(_>>>ne-6),ne-=6},ie.flush=function(){if(ne>0&&(ce(_<<6-ne),_=0,ne=0),M%3!=0)for(var De=3-M%3,j=0;j<De;j+=1)z+="="},ie.toString=function(){return z},ie}(),E=x.toByteArray(),y=0;y<E.length;y+=1)w.writeByte(E[y]);return w.flush(),"data:image/gif;base64,"+w};return u}();d.stringToBytesFuncs["UTF-8"]=function(u){return function(p){for(var h=[],v=0;v<p.length;v++){var g=p.charCodeAt(v);g<128?h.push(g):g<2048?h.push(192|g>>6,128|63&g):g<55296||g>=57344?h.push(224|g>>12,128|g>>6&63,128|63&g):(v++,g=65536+((1023&g)<<10|1023&p.charCodeAt(v)),h.push(240|g>>18,128|g>>12&63,128|g>>6&63,128|63&g))}return h}(u)},(l=typeof(s=function(){return d})=="function"?s.apply(o,[]):s)===void 0||(a.exports=l)},676:(a,o,s)=>{s.d(o,{default:()=>De});const l="Numeric",d="Alphanumeric",u="Byte";var p=function(){return p=Object.assign||function(j){for(var $,Z=1,W=arguments.length;Z<W;Z++)for(var te in $=arguments[Z])Object.prototype.hasOwnProperty.call($,te)&&(j[te]=$[te]);return j},p.apply(this,arguments)},h=function(){for(var j=0,$=0,Z=arguments.length;$<Z;$++)j+=arguments[$].length;var W=Array(j),te=0;for($=0;$<Z;$++)for(var ge=arguments[$],fe=0,oe=ge.length;fe<oe;fe++,te++)W[te]=ge[fe];return W},v=function(j){return!!j&&typeof j=="object"&&!Array.isArray(j)};function g(j){for(var $=[],Z=1;Z<arguments.length;Z++)$[Z-1]=arguments[Z];if(!$.length)return j;var W=$.shift();return W!==void 0&&v(j)&&v(W)?(j=p({},j),Object.keys(W).forEach(function(te){var ge=j[te],fe=W[te];Array.isArray(ge)&&Array.isArray(fe)?j[te]=fe:v(ge)&&v(fe)?j[te]=g(Object.assign({},ge),fe):j[te]=fe}),g.apply(void 0,h([j],$))):j}function k(j,$){var Z=document.createElement("a");Z.download=$,Z.href=j,document.body.appendChild(Z),Z.click(),document.body.removeChild(Z)}var C=function(j,$,Z,W){return new(Z||(Z=Promise))(function(te,ge){function fe(Ae){try{me(W.next(Ae))}catch(ye){ge(ye)}}function oe(Ae){try{me(W.throw(Ae))}catch(ye){ge(ye)}}function me(Ae){var ye;Ae.done?te(Ae.value):(ye=Ae.value,ye instanceof Z?ye:new Z(function(Oe){Oe(ye)})).then(fe,oe)}me((W=W.apply(j,$||[])).next())})},S=function(j,$){var Z,W,te,ge,fe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ge={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function oe(me){return function(Ae){return function(ye){if(Z)throw new TypeError("Generator is already executing.");for(;fe;)try{if(Z=1,W&&(te=2&ye[0]?W.return:ye[0]?W.throw||((te=W.return)&&te.call(W),0):W.next)&&!(te=te.call(W,ye[1])).done)return te;switch(W=0,te&&(ye=[2&ye[0],te.value]),ye[0]){case 0:case 1:te=ye;break;case 4:return fe.label++,{value:ye[1],done:!1};case 5:fe.label++,W=ye[1],ye=[0];continue;case 7:ye=fe.ops.pop(),fe.trys.pop();continue;default:if(!((te=(te=fe.trys).length>0&&te[te.length-1])||ye[0]!==6&&ye[0]!==2)){fe=0;continue}if(ye[0]===3&&(!te||ye[1]>te[0]&&ye[1]<te[3])){fe.label=ye[1];break}if(ye[0]===6&&fe.label<te[1]){fe.label=te[1],te=ye;break}if(te&&fe.label<te[2]){fe.label=te[2],fe.ops.push(ye);break}te[2]&&fe.ops.pop(),fe.trys.pop();continue}ye=$.call(j,fe)}catch(Oe){ye=[6,Oe],W=0}finally{Z=te=0}if(5&ye[0])throw ye[1];return{value:ye[0]?ye[1]:void 0,done:!0}}([me,Ae])}}};function I(j){return C(this,void 0,void 0,function(){return S(this,function($){return[2,new Promise(function(Z){var W=new XMLHttpRequest;W.onload=function(){var te=new FileReader;te.onloadend=function(){Z(te.result)},te.readAsDataURL(W.response)},W.open("GET",j),W.responseType="blob",W.send()})]})})}const L={L:.07,M:.15,Q:.25,H:.3};var N=function(){return N=Object.assign||function(j){for(var $,Z=1,W=arguments.length;Z<W;Z++)for(var te in $=arguments[Z])Object.prototype.hasOwnProperty.call($,te)&&(j[te]=$[te]);return j},N.apply(this,arguments)},q=function(){function j($){var Z=$.svg,W=$.type;this._svg=Z,this._type=W}return j.prototype.draw=function($,Z,W,te){var ge;switch(this._type){case"dots":ge=this._drawDot;break;case"classy":ge=this._drawClassy;break;case"classy-rounded":ge=this._drawClassyRounded;break;case"rounded":ge=this._drawRounded;break;case"extra-rounded":ge=this._drawExtraRounded;break;default:ge=this._drawSquare}ge.call(this,{x:$,y:Z,size:W,getNeighbor:te})},j.prototype._rotateFigure=function($){var Z,W=$.x,te=$.y,ge=$.size,fe=$.rotation,oe=fe===void 0?0:fe,me=W+ge/2,Ae=te+ge/2;(0,$.draw)(),(Z=this._element)===null||Z===void 0||Z.setAttribute("transform","rotate("+180*oe/Math.PI+","+me+","+Ae+")")},j.prototype._basicDot=function($){var Z=this,W=$.size,te=$.x,ge=$.y;this._rotateFigure(N(N({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Z._element.setAttribute("cx",String(te+W/2)),Z._element.setAttribute("cy",String(ge+W/2)),Z._element.setAttribute("r",String(W/2))}}))},j.prototype._basicSquare=function($){var Z=this,W=$.size,te=$.x,ge=$.y;this._rotateFigure(N(N({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Z._element.setAttribute("x",String(te)),Z._element.setAttribute("y",String(ge)),Z._element.setAttribute("width",String(W)),Z._element.setAttribute("height",String(W))}}))},j.prototype._basicSideRounded=function($){var Z=this,W=$.size,te=$.x,ge=$.y;this._rotateFigure(N(N({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("d","M "+te+" "+ge+"v "+W+"h "+W/2+"a "+W/2+" "+W/2+", 0, 0, 0, 0 "+-W)}}))},j.prototype._basicCornerRounded=function($){var Z=this,W=$.size,te=$.x,ge=$.y;this._rotateFigure(N(N({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("d","M "+te+" "+ge+"v "+W+"h "+W+"v "+-W/2+"a "+W/2+" "+W/2+", 0, 0, 0, "+-W/2+" "+-W/2)}}))},j.prototype._basicCornerExtraRounded=function($){var Z=this,W=$.size,te=$.x,ge=$.y;this._rotateFigure(N(N({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("d","M "+te+" "+ge+"v "+W+"h "+W+"a "+W+" "+W+", 0, 0, 0, "+-W+" "+-W)}}))},j.prototype._basicCornersRounded=function($){var Z=this,W=$.size,te=$.x,ge=$.y;this._rotateFigure(N(N({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("d","M "+te+" "+ge+"v "+W/2+"a "+W/2+" "+W/2+", 0, 0, 0, "+W/2+" "+W/2+"h "+W/2+"v "+-W/2+"a "+W/2+" "+W/2+", 0, 0, 0, "+-W/2+" "+-W/2)}}))},j.prototype._drawDot=function($){var Z=$.x,W=$.y,te=$.size;this._basicDot({x:Z,y:W,size:te,rotation:0})},j.prototype._drawSquare=function($){var Z=$.x,W=$.y,te=$.size;this._basicSquare({x:Z,y:W,size:te,rotation:0})},j.prototype._drawRounded=function($){var Z=$.x,W=$.y,te=$.size,ge=$.getNeighbor,fe=ge?+ge(-1,0):0,oe=ge?+ge(1,0):0,me=ge?+ge(0,-1):0,Ae=ge?+ge(0,1):0,ye=fe+oe+me+Ae;if(ye!==0)if(ye>2||fe&&oe||me&&Ae)this._basicSquare({x:Z,y:W,size:te,rotation:0});else{if(ye===2){var Oe=0;return fe&&me?Oe=Math.PI/2:me&&oe?Oe=Math.PI:oe&&Ae&&(Oe=-Math.PI/2),void this._basicCornerRounded({x:Z,y:W,size:te,rotation:Oe})}if(ye===1)return Oe=0,me?Oe=Math.PI/2:oe?Oe=Math.PI:Ae&&(Oe=-Math.PI/2),void this._basicSideRounded({x:Z,y:W,size:te,rotation:Oe})}else this._basicDot({x:Z,y:W,size:te,rotation:0})},j.prototype._drawExtraRounded=function($){var Z=$.x,W=$.y,te=$.size,ge=$.getNeighbor,fe=ge?+ge(-1,0):0,oe=ge?+ge(1,0):0,me=ge?+ge(0,-1):0,Ae=ge?+ge(0,1):0,ye=fe+oe+me+Ae;if(ye!==0)if(ye>2||fe&&oe||me&&Ae)this._basicSquare({x:Z,y:W,size:te,rotation:0});else{if(ye===2){var Oe=0;return fe&&me?Oe=Math.PI/2:me&&oe?Oe=Math.PI:oe&&Ae&&(Oe=-Math.PI/2),void this._basicCornerExtraRounded({x:Z,y:W,size:te,rotation:Oe})}if(ye===1)return Oe=0,me?Oe=Math.PI/2:oe?Oe=Math.PI:Ae&&(Oe=-Math.PI/2),void this._basicSideRounded({x:Z,y:W,size:te,rotation:Oe})}else this._basicDot({x:Z,y:W,size:te,rotation:0})},j.prototype._drawClassy=function($){var Z=$.x,W=$.y,te=$.size,ge=$.getNeighbor,fe=ge?+ge(-1,0):0,oe=ge?+ge(1,0):0,me=ge?+ge(0,-1):0,Ae=ge?+ge(0,1):0;fe+oe+me+Ae!==0?fe||me?oe||Ae?this._basicSquare({x:Z,y:W,size:te,rotation:0}):this._basicCornerRounded({x:Z,y:W,size:te,rotation:Math.PI/2}):this._basicCornerRounded({x:Z,y:W,size:te,rotation:-Math.PI/2}):this._basicCornersRounded({x:Z,y:W,size:te,rotation:Math.PI/2})},j.prototype._drawClassyRounded=function($){var Z=$.x,W=$.y,te=$.size,ge=$.getNeighbor,fe=ge?+ge(-1,0):0,oe=ge?+ge(1,0):0,me=ge?+ge(0,-1):0,Ae=ge?+ge(0,1):0;fe+oe+me+Ae!==0?fe||me?oe||Ae?this._basicSquare({x:Z,y:W,size:te,rotation:0}):this._basicCornerExtraRounded({x:Z,y:W,size:te,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:Z,y:W,size:te,rotation:-Math.PI/2}):this._basicCornersRounded({x:Z,y:W,size:te,rotation:Math.PI/2})},j}();const H=q;var V=function(){return V=Object.assign||function(j){for(var $,Z=1,W=arguments.length;Z<W;Z++)for(var te in $=arguments[Z])Object.prototype.hasOwnProperty.call($,te)&&(j[te]=$[te]);return j},V.apply(this,arguments)},X=function(){function j($){var Z=$.svg,W=$.type;this._svg=Z,this._type=W}return j.prototype.draw=function($,Z,W,te){var ge;switch(this._type){case"square":ge=this._drawSquare;break;case"extra-rounded":ge=this._drawExtraRounded;break;default:ge=this._drawDot}ge.call(this,{x:$,y:Z,size:W,rotation:te})},j.prototype._rotateFigure=function($){var Z,W=$.x,te=$.y,ge=$.size,fe=$.rotation,oe=fe===void 0?0:fe,me=W+ge/2,Ae=te+ge/2;(0,$.draw)(),(Z=this._element)===null||Z===void 0||Z.setAttribute("transform","rotate("+180*oe/Math.PI+","+me+","+Ae+")")},j.prototype._basicDot=function($){var Z=this,W=$.size,te=$.x,ge=$.y,fe=W/7;this._rotateFigure(V(V({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("clip-rule","evenodd"),Z._element.setAttribute("d","M "+(te+W/2)+" "+ge+"a "+W/2+" "+W/2+" 0 1 0 0.1 0zm 0 "+fe+"a "+(W/2-fe)+" "+(W/2-fe)+" 0 1 1 -0.1 0Z")}}))},j.prototype._basicSquare=function($){var Z=this,W=$.size,te=$.x,ge=$.y,fe=W/7;this._rotateFigure(V(V({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("clip-rule","evenodd"),Z._element.setAttribute("d","M "+te+" "+ge+"v "+W+"h "+W+"v "+-W+"zM "+(te+fe)+" "+(ge+fe)+"h "+(W-2*fe)+"v "+(W-2*fe)+"h "+(2*fe-W)+"z")}}))},j.prototype._basicExtraRounded=function($){var Z=this,W=$.size,te=$.x,ge=$.y,fe=W/7;this._rotateFigure(V(V({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("clip-rule","evenodd"),Z._element.setAttribute("d","M "+te+" "+(ge+2.5*fe)+"v "+2*fe+"a "+2.5*fe+" "+2.5*fe+", 0, 0, 0, "+2.5*fe+" "+2.5*fe+"h "+2*fe+"a "+2.5*fe+" "+2.5*fe+", 0, 0, 0, "+2.5*fe+" "+2.5*-fe+"v "+-2*fe+"a "+2.5*fe+" "+2.5*fe+", 0, 0, 0, "+2.5*-fe+" "+2.5*-fe+"h "+-2*fe+"a "+2.5*fe+" "+2.5*fe+", 0, 0, 0, "+2.5*-fe+" "+2.5*fe+"M "+(te+2.5*fe)+" "+(ge+fe)+"h "+2*fe+"a "+1.5*fe+" "+1.5*fe+", 0, 0, 1, "+1.5*fe+" "+1.5*fe+"v "+2*fe+"a "+1.5*fe+" "+1.5*fe+", 0, 0, 1, "+1.5*-fe+" "+1.5*fe+"h "+-2*fe+"a "+1.5*fe+" "+1.5*fe+", 0, 0, 1, "+1.5*-fe+" "+1.5*-fe+"v "+-2*fe+"a "+1.5*fe+" "+1.5*fe+", 0, 0, 1, "+1.5*fe+" "+1.5*-fe)}}))},j.prototype._drawDot=function($){var Z=$.x,W=$.y,te=$.size,ge=$.rotation;this._basicDot({x:Z,y:W,size:te,rotation:ge})},j.prototype._drawSquare=function($){var Z=$.x,W=$.y,te=$.size,ge=$.rotation;this._basicSquare({x:Z,y:W,size:te,rotation:ge})},j.prototype._drawExtraRounded=function($){var Z=$.x,W=$.y,te=$.size,ge=$.rotation;this._basicExtraRounded({x:Z,y:W,size:te,rotation:ge})},j}();const re=X;var le=function(){return le=Object.assign||function(j){for(var $,Z=1,W=arguments.length;Z<W;Z++)for(var te in $=arguments[Z])Object.prototype.hasOwnProperty.call($,te)&&(j[te]=$[te]);return j},le.apply(this,arguments)},Q=function(){function j($){var Z=$.svg,W=$.type;this._svg=Z,this._type=W}return j.prototype.draw=function($,Z,W,te){(this._type==="square"?this._drawSquare:this._drawDot).call(this,{x:$,y:Z,size:W,rotation:te})},j.prototype._rotateFigure=function($){var Z,W=$.x,te=$.y,ge=$.size,fe=$.rotation,oe=fe===void 0?0:fe,me=W+ge/2,Ae=te+ge/2;(0,$.draw)(),(Z=this._element)===null||Z===void 0||Z.setAttribute("transform","rotate("+180*oe/Math.PI+","+me+","+Ae+")")},j.prototype._basicDot=function($){var Z=this,W=$.size,te=$.x,ge=$.y;this._rotateFigure(le(le({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Z._element.setAttribute("cx",String(te+W/2)),Z._element.setAttribute("cy",String(ge+W/2)),Z._element.setAttribute("r",String(W/2))}}))},j.prototype._basicSquare=function($){var Z=this,W=$.size,te=$.x,ge=$.y;this._rotateFigure(le(le({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Z._element.setAttribute("x",String(te)),Z._element.setAttribute("y",String(ge)),Z._element.setAttribute("width",String(W)),Z._element.setAttribute("height",String(W))}}))},j.prototype._drawDot=function($){var Z=$.x,W=$.y,te=$.size,ge=$.rotation;this._basicDot({x:Z,y:W,size:te,rotation:ge})},j.prototype._drawSquare=function($){var Z=$.x,W=$.y,te=$.size,ge=$.rotation;this._basicSquare({x:Z,y:W,size:te,rotation:ge})},j}();const B=Q,T="circle";var c=function(j,$,Z,W){return new(Z||(Z=Promise))(function(te,ge){function fe(Ae){try{me(W.next(Ae))}catch(ye){ge(ye)}}function oe(Ae){try{me(W.throw(Ae))}catch(ye){ge(ye)}}function me(Ae){var ye;Ae.done?te(Ae.value):(ye=Ae.value,ye instanceof Z?ye:new Z(function(Oe){Oe(ye)})).then(fe,oe)}me((W=W.apply(j,$||[])).next())})},f=function(j,$){var Z,W,te,ge,fe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ge={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function oe(me){return function(Ae){return function(ye){if(Z)throw new TypeError("Generator is already executing.");for(;fe;)try{if(Z=1,W&&(te=2&ye[0]?W.return:ye[0]?W.throw||((te=W.return)&&te.call(W),0):W.next)&&!(te=te.call(W,ye[1])).done)return te;switch(W=0,te&&(ye=[2&ye[0],te.value]),ye[0]){case 0:case 1:te=ye;break;case 4:return fe.label++,{value:ye[1],done:!1};case 5:fe.label++,W=ye[1],ye=[0];continue;case 7:ye=fe.ops.pop(),fe.trys.pop();continue;default:if(!((te=(te=fe.trys).length>0&&te[te.length-1])||ye[0]!==6&&ye[0]!==2)){fe=0;continue}if(ye[0]===3&&(!te||ye[1]>te[0]&&ye[1]<te[3])){fe.label=ye[1];break}if(ye[0]===6&&fe.label<te[1]){fe.label=te[1],te=ye;break}if(te&&fe.label<te[2]){fe.label=te[2],fe.ops.push(ye);break}te[2]&&fe.ops.pop(),fe.trys.pop();continue}ye=$.call(j,fe)}catch(Oe){ye=[6,Oe],W=0}finally{Z=te=0}if(5&ye[0])throw ye[1];return{value:ye[0]?ye[1]:void 0,done:!0}}([me,Ae])}}},b=[[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]],D=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const R=function(){function j($){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String($.width)),this._element.setAttribute("height",String($.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._instanceId=j.instanceCount++,this._options=$}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($){return c(this,void 0,void 0,function(){var Z,W,te,ge,fe,oe,me,Ae,ye,Oe,$e=this;return f(this,function(Ee){switch(Ee.label){case 0:return Z=$.getModuleCount(),W=Math.min(this._options.width,this._options.height)-2*this._options.margin,te=this._options.shape===T?W/Math.sqrt(2):W,ge=te/Z,fe={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=$,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Ee.sent(),!this._image)return[2];oe=this._options,me=oe.imageOptions,Ae=oe.qrOptions,ye=me.imageSize*L[Ae.errorCorrectionLevel],Oe=Math.floor(ye*Z*Z),fe=function(Pe){var Ie=Pe.originalHeight,Ue=Pe.originalWidth,Xe=Pe.maxHiddenDots,Me=Pe.maxHiddenAxisDots,J=Pe.dotSize,O={x:0,y:0},F={x:0,y:0};if(Ie<=0||Ue<=0||Xe<=0||J<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var se=Ie/Ue;return O.x=Math.floor(Math.sqrt(Xe/se)),O.x<=0&&(O.x=1),Me&&Me<O.x&&(O.x=Me),O.x%2==0&&O.x--,F.x=O.x*J,O.y=1+2*Math.ceil((O.x*se-1)/2),F.y=Math.round(F.x*se),(O.y*O.x>Xe||Me&&Me<O.y)&&(Me&&Me<O.y?(O.y=Me,O.y%2==0&&O.x--):O.y-=2,F.y=O.y*J,O.x=1+2*Math.ceil((O.y/se-1)/2),F.x=Math.round(F.y/se)),{height:F.y,width:F.x,hideYDots:O.y,hideXDots:O.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:Oe,maxHiddenAxisDots:Z-14,dotSize:ge}),Ee.label=2;case 2:return this.drawBackground(),this.drawDots(function(Pe,Ie){var Ue,Xe,Me,J,O,F;return!($e._options.imageOptions.hideBackgroundDots&&Pe>=(Z-fe.hideXDots)/2&&Pe<(Z+fe.hideXDots)/2&&Ie>=(Z-fe.hideYDots)/2&&Ie<(Z+fe.hideYDots)/2||!((Ue=b[Pe])===null||Ue===void 0)&&Ue[Ie]||!((Xe=b[Pe-Z+7])===null||Xe===void 0)&&Xe[Ie]||!((Me=b[Pe])===null||Me===void 0)&&Me[Ie-Z+7]||!((J=D[Pe])===null||J===void 0)&&J[Ie]||!((O=D[Pe-Z+7])===null||O===void 0)&&O[Ie]||!((F=D[Pe])===null||F===void 0)&&F[Ie-Z+7])}),this.drawCorners(),this._options.image?[4,this.drawImage({width:fe.width,height:fe.height,count:Z,dotSize:ge})]:[3,4];case 3:Ee.sent(),Ee.label=4;case 4:return[2]}})})},j.prototype.drawBackground=function(){var $,Z,W,te=this._element,ge=this._options;if(te){var fe=($=ge.backgroundOptions)===null||$===void 0?void 0:$.gradient,oe=(Z=ge.backgroundOptions)===null||Z===void 0?void 0:Z.color;if((fe||oe)&&this._createColor({options:fe,color:oe,additionalRotation:0,x:0,y:0,height:ge.height,width:ge.width,name:"background-color"}),(W=ge.backgroundOptions)===null||W===void 0?void 0:W.round){var me=Math.min(ge.width,ge.height),Ae=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),Ae.setAttribute("x",String((ge.width-me)/2)),Ae.setAttribute("y",String((ge.height-me)/2)),Ae.setAttribute("width",String(me)),Ae.setAttribute("height",String(me)),Ae.setAttribute("rx",String(me/2*ge.backgroundOptions.round)),this._backgroundClipPath.appendChild(Ae)}}},j.prototype.drawDots=function($){var Z,W,te=this;if(!this._qr)throw"QR code is not defined";var ge=this._options,fe=this._qr.getModuleCount();if(fe>ge.width||fe>ge.height)throw"The canvas is too small.";var oe=Math.min(ge.width,ge.height)-2*ge.margin,me=(ge.shape===T?oe/Math.sqrt(2):oe)/fe,Ae=(ge.width-fe*me)/2,ye=(ge.height-fe*me)/2,Oe=new H({svg:this._element,type:ge.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color-"+this._instanceId),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(Z=ge.dotsOptions)===null||Z===void 0?void 0:Z.gradient,color:ge.dotsOptions.color,additionalRotation:0,x:0,y:0,height:ge.height,width:ge.width,name:"dot-color-"+this._instanceId});for(var $e=function(Se){for(var we=function(He){return $&&!$(Se,He)?"continue":!((W=Ee._qr)===null||W===void 0)&&W.isDark(Se,He)?(Oe.draw(Ae+Se*me,ye+He*me,me,function(qe,dt){return!(Se+qe<0||He+dt<0||Se+qe>=fe||He+dt>=fe)&&!($&&!$(Se+qe,He+dt))&&!!te._qr&&te._qr.isDark(Se+qe,He+dt)}),void(Oe._element&&Ee._dotsClipPath&&Ee._dotsClipPath.appendChild(Oe._element))):"continue"},Ge=0;Ge<fe;Ge++)we(Ge)},Ee=this,Pe=0;Pe<fe;Pe++)$e(Pe);if(ge.shape===T){var Ie=Math.floor((oe/me-fe)/2),Ue=fe+2*Ie,Xe=Ae-Ie*me,Me=ye-Ie*me,J=[],O=Math.floor(Ue/2);for(Pe=0;Pe<Ue;Pe++){J[Pe]=[];for(var F=0;F<Ue;F++)Pe>=Ie-1&&Pe<=Ue-Ie&&F>=Ie-1&&F<=Ue-Ie||Math.sqrt((Pe-O)*(Pe-O)+(F-O)*(F-O))>O?J[Pe][F]=0:J[Pe][F]=this._qr.isDark(F-2*Ie<0?F:F>=fe?F-2*Ie:F-Ie,Pe-2*Ie<0?Pe:Pe>=fe?Pe-2*Ie:Pe-Ie)?1:0}var se=function(Se){for(var we=function(He){if(!J[Se][He])return"continue";Oe.draw(Xe+Se*me,Me+He*me,me,function(qe,dt){var Ye;return!!(!((Ye=J[Se+qe])===null||Ye===void 0)&&Ye[He+dt])}),Oe._element&&ke._dotsClipPath&&ke._dotsClipPath.appendChild(Oe._element)},Ge=0;Ge<Ue;Ge++)we(Ge)},ke=this;for(Pe=0;Pe<Ue;Pe++)se(Pe)}},j.prototype.drawCorners=function(){var $=this;if(!this._qr)throw"QR code is not defined";var Z=this._element,W=this._options;if(!Z)throw"Element code is not defined";var te=this._qr.getModuleCount(),ge=Math.min(W.width,W.height)-2*W.margin,fe=(W.shape===T?ge/Math.sqrt(2):ge)/te,oe=7*fe,me=3*fe,Ae=(W.width-te*fe)/2,ye=(W.height-te*fe)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(Oe){var $e,Ee,Pe,Ie,Ue,Xe,Me,J,O,F,se,ke,Se=Oe[0],we=Oe[1],Ge=Oe[2],He=Ae+Se*fe*(te-7),qe=ye+we*fe*(te-7),dt=$._dotsClipPath,Ye=$._dotsClipPath;if((!(($e=W.cornersSquareOptions)===null||$e===void 0)&&$e.gradient||!((Ee=W.cornersSquareOptions)===null||Ee===void 0)&&Ee.color)&&((dt=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Se+"-"+we),$._defs.appendChild(dt),$._cornersSquareClipPath=$._cornersDotClipPath=Ye=dt,$._createColor({options:(Pe=W.cornersSquareOptions)===null||Pe===void 0?void 0:Pe.gradient,color:(Ie=W.cornersSquareOptions)===null||Ie===void 0?void 0:Ie.color,additionalRotation:Ge,x:He,y:qe,height:oe,width:oe,name:"corners-square-color-"+Se+"-"+we})),(Ue=W.cornersSquareOptions)===null||Ue===void 0?void 0:Ue.type){var rt=new re({svg:$._element,type:W.cornersSquareOptions.type});rt.draw(He,qe,oe,Ge),rt._element&&dt&&dt.appendChild(rt._element)}else for(var $t=new H({svg:$._element,type:W.dotsOptions.type}),mt=function(st){for(var Zt=function(nt){if(!(!((Xe=b[st])===null||Xe===void 0)&&Xe[nt]))return"continue";$t.draw(He+st*fe,qe+nt*fe,fe,function(tn,ee){var ae;return!!(!((ae=b[st+tn])===null||ae===void 0)&&ae[nt+ee])}),$t._element&&dt&&dt.appendChild($t._element)},St=0;St<b[st].length;St++)Zt(St)},ot=0;ot<b.length;ot++)mt(ot);if((!((Me=W.cornersDotOptions)===null||Me===void 0)&&Me.gradient||!((J=W.cornersDotOptions)===null||J===void 0)&&J.color)&&((Ye=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Se+"-"+we),$._defs.appendChild(Ye),$._cornersDotClipPath=Ye,$._createColor({options:(O=W.cornersDotOptions)===null||O===void 0?void 0:O.gradient,color:(F=W.cornersDotOptions)===null||F===void 0?void 0:F.color,additionalRotation:Ge,x:He+2*fe,y:qe+2*fe,height:me,width:me,name:"corners-dot-color-"+Se+"-"+we})),(se=W.cornersDotOptions)===null||se===void 0?void 0:se.type){var Gt=new B({svg:$._element,type:W.cornersDotOptions.type});Gt.draw(He+2*fe,qe+2*fe,me,Ge),Gt._element&&Ye&&Ye.appendChild(Gt._element)}else{$t=new H({svg:$._element,type:W.dotsOptions.type});var At=function(st){for(var Zt=function(nt){if(!(!((ke=D[st])===null||ke===void 0)&&ke[nt]))return"continue";$t.draw(He+st*fe,qe+nt*fe,fe,function(tn,ee){var ae;return!!(!((ae=D[st+tn])===null||ae===void 0)&&ae[nt+ee])}),$t._element&&Ye&&Ye.appendChild($t._element)},St=0;St<D[st].length;St++)Zt(St)};for(ot=0;ot<D.length;ot++)At(ot)}})},j.prototype.loadImage=function(){var $=this;return new Promise(function(Z,W){var te=$._options,ge=new Image;if(!te.image)return W("Image is not defined");typeof te.imageOptions.crossOrigin=="string"&&(ge.crossOrigin=te.imageOptions.crossOrigin),$._image=ge,ge.onload=function(){Z()},ge.src=te.image})},j.prototype.drawImage=function($){var Z=$.width,W=$.height,te=$.count,ge=$.dotSize;return c(this,void 0,void 0,function(){var fe,oe,me,Ae,ye,Oe,$e,Ee,Pe;return f(this,function(Ie){switch(Ie.label){case 0:return fe=this._options,oe=(fe.width-te*ge)/2,me=(fe.height-te*ge)/2,Ae=oe+fe.imageOptions.margin+(te*ge-Z)/2,ye=me+fe.imageOptions.margin+(te*ge-W)/2,Oe=Z-2*fe.imageOptions.margin,$e=W-2*fe.imageOptions.margin,(Ee=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(Ae)),Ee.setAttribute("y",String(ye)),Ee.setAttribute("width",Oe+"px"),Ee.setAttribute("height",$e+"px"),[4,I(fe.image||"")];case 1:return Pe=Ie.sent(),Ee.setAttribute("href",Pe||""),this._element.appendChild(Ee),[2]}})})},j.prototype._createColor=function($){var Z=$.options,W=$.color,te=$.additionalRotation,ge=$.x,fe=$.y,oe=$.height,me=$.width,Ae=$.name,ye=me>oe?me:oe,Oe=document.createElementNS("http://www.w3.org/2000/svg","rect");if(Oe.setAttribute("x",String(ge)),Oe.setAttribute("y",String(fe)),Oe.setAttribute("height",String(oe)),Oe.setAttribute("width",String(me)),Oe.setAttribute("clip-path","url('#clip-path-"+Ae+"')"),Z){var $e;if(Z.type==="radial")($e=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",Ae),$e.setAttribute("gradientUnits","userSpaceOnUse"),$e.setAttribute("fx",String(ge+me/2)),$e.setAttribute("fy",String(fe+oe/2)),$e.setAttribute("cx",String(ge+me/2)),$e.setAttribute("cy",String(fe+oe/2)),$e.setAttribute("r",String(ye/2));else{var Ee=((Z.rotation||0)+te)%(2*Math.PI),Pe=(Ee+2*Math.PI)%(2*Math.PI),Ie=ge+me/2,Ue=fe+oe/2,Xe=ge+me/2,Me=fe+oe/2;Pe>=0&&Pe<=.25*Math.PI||Pe>1.75*Math.PI&&Pe<=2*Math.PI?(Ie-=me/2,Ue-=oe/2*Math.tan(Ee),Xe+=me/2,Me+=oe/2*Math.tan(Ee)):Pe>.25*Math.PI&&Pe<=.75*Math.PI?(Ue-=oe/2,Ie-=me/2/Math.tan(Ee),Me+=oe/2,Xe+=me/2/Math.tan(Ee)):Pe>.75*Math.PI&&Pe<=1.25*Math.PI?(Ie+=me/2,Ue+=oe/2*Math.tan(Ee),Xe-=me/2,Me-=oe/2*Math.tan(Ee)):Pe>1.25*Math.PI&&Pe<=1.75*Math.PI&&(Ue+=oe/2,Ie+=me/2/Math.tan(Ee),Me-=oe/2,Xe-=me/2/Math.tan(Ee)),($e=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",Ae),$e.setAttribute("gradientUnits","userSpaceOnUse"),$e.setAttribute("x1",String(Math.round(Ie))),$e.setAttribute("y1",String(Math.round(Ue))),$e.setAttribute("x2",String(Math.round(Xe))),$e.setAttribute("y2",String(Math.round(Me)))}Z.colorStops.forEach(function(J){var O=J.offset,F=J.color,se=document.createElementNS("http://www.w3.org/2000/svg","stop");se.setAttribute("offset",100*O+"%"),se.setAttribute("stop-color",F),$e.appendChild(se)}),Oe.setAttribute("fill","url('#"+Ae+"')"),this._defs.appendChild($e)}else W&&Oe.setAttribute("fill",W);this._element.appendChild(Oe)},j.instanceCount=0,j}(),x="canvas";for(var w={},E=0;E<=40;E++)w[E]=E;const y={type:x,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:w[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 _=function(){return _=Object.assign||function(j){for(var $,Z=1,W=arguments.length;Z<W;Z++)for(var te in $=arguments[Z])Object.prototype.hasOwnProperty.call($,te)&&(j[te]=$[te]);return j},_.apply(this,arguments)};function ne(j){var $=_({},j);if(!$.colorStops||!$.colorStops.length)throw"Field 'colorStops' is required in gradient";return $.rotation?$.rotation=Number($.rotation):$.rotation=0,$.colorStops=$.colorStops.map(function(Z){return _(_({},Z),{offset:Number(Z.offset)})}),$}function M(j){var $=_({},j);return $.width=Number($.width),$.height=Number($.height),$.margin=Number($.margin),$.imageOptions=_(_({},$.imageOptions),{hideBackgroundDots:!!$.imageOptions.hideBackgroundDots,imageSize:Number($.imageOptions.imageSize),margin:Number($.imageOptions.margin)}),$.margin>Math.min($.width,$.height)&&($.margin=Math.min($.width,$.height)),$.dotsOptions=_({},$.dotsOptions),$.dotsOptions.gradient&&($.dotsOptions.gradient=ne($.dotsOptions.gradient)),$.cornersSquareOptions&&($.cornersSquareOptions=_({},$.cornersSquareOptions),$.cornersSquareOptions.gradient&&($.cornersSquareOptions.gradient=ne($.cornersSquareOptions.gradient))),$.cornersDotOptions&&($.cornersDotOptions=_({},$.cornersDotOptions),$.cornersDotOptions.gradient&&($.cornersDotOptions.gradient=ne($.cornersDotOptions.gradient))),$.backgroundOptions&&($.backgroundOptions=_({},$.backgroundOptions),$.backgroundOptions.gradient&&($.backgroundOptions.gradient=ne($.backgroundOptions.gradient))),$}var z=s(192),ie=s.n(z),ce=function(j,$,Z,W){return new(Z||(Z=Promise))(function(te,ge){function fe(Ae){try{me(W.next(Ae))}catch(ye){ge(ye)}}function oe(Ae){try{me(W.throw(Ae))}catch(ye){ge(ye)}}function me(Ae){var ye;Ae.done?te(Ae.value):(ye=Ae.value,ye instanceof Z?ye:new Z(function(Oe){Oe(ye)})).then(fe,oe)}me((W=W.apply(j,$||[])).next())})},he=function(j,$){var Z,W,te,ge,fe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ge={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function oe(me){return function(Ae){return function(ye){if(Z)throw new TypeError("Generator is already executing.");for(;fe;)try{if(Z=1,W&&(te=2&ye[0]?W.return:ye[0]?W.throw||((te=W.return)&&te.call(W),0):W.next)&&!(te=te.call(W,ye[1])).done)return te;switch(W=0,te&&(ye=[2&ye[0],te.value]),ye[0]){case 0:case 1:te=ye;break;case 4:return fe.label++,{value:ye[1],done:!1};case 5:fe.label++,W=ye[1],ye=[0];continue;case 7:ye=fe.ops.pop(),fe.trys.pop();continue;default:if(!((te=(te=fe.trys).length>0&&te[te.length-1])||ye[0]!==6&&ye[0]!==2)){fe=0;continue}if(ye[0]===3&&(!te||ye[1]>te[0]&&ye[1]<te[3])){fe.label=ye[1];break}if(ye[0]===6&&fe.label<te[1]){fe.label=te[1],te=ye;break}if(te&&fe.label<te[2]){fe.label=te[2],fe.ops.push(ye);break}te[2]&&fe.ops.pop(),fe.trys.pop();continue}ye=$.call(j,fe)}catch(Oe){ye=[6,Oe],W=0}finally{Z=te=0}if(5&ye[0])throw ye[1];return{value:ye[0]?ye[1]:void 0,done:!0}}([me,Ae])}}};const De=function(){function j($){this._options=$?M(g(y,$)):y,this.update()}return j._clearContainer=function($){$&&($.innerHTML="")},j.prototype._setupSvg=function(){var $=this;if(this._qr){var Z=new R(this._options);this._svg=Z.getElement(),this._svgDrawingPromise=Z.drawQR(this._qr).then(function(){var W;$._svg&&((W=$._extension)===null||W===void 0||W.call($,Z.getElement(),$._options))})}},j.prototype._setupCanvas=function(){var $,Z=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=($=this._svgDrawingPromise)===null||$===void 0?void 0:$.then(function(){if(Z._svg){var W=Z._svg,te=new XMLSerializer().serializeToString(W),ge="data:image/svg+xml;base64,"+btoa(te),fe=new Image;return new Promise(function(oe){fe.onload=function(){var me,Ae;(Ae=(me=Z._canvas)===null||me===void 0?void 0:me.getContext("2d"))===null||Ae===void 0||Ae.drawImage(fe,0,0),oe()},fe.src=ge})}}))},j.prototype._getElement=function($){return $===void 0&&($="png"),ce(this,void 0,void 0,function(){return he(this,function(Z){switch(Z.label){case 0:if(!this._qr)throw"QR code is empty";return $.toLowerCase()!=="svg"?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return Z.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return Z.sent(),[2,this._canvas]}})})},j.prototype.update=function($){j._clearContainer(this._container),this._options=$?M(g(this._options,$)):this._options,this._options.data&&(this._qr=ie()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(Z){switch(!0){case/^[0-9]*$/.test(Z):return l;case/^[0-9A-Z $%*+\-./:]*$/.test(Z):return d;default:return u}}(this._options.data)),this._qr.make(),this._options.type===x?this._setupCanvas():this._setupSvg(),this.append(this._container))},j.prototype.append=function($){if($){if(typeof $.appendChild!="function")throw"Container should be a single DOM node";this._options.type===x?this._canvas&&$.appendChild(this._canvas):this._svg&&$.appendChild(this._svg),this._container=$}},j.prototype.applyExtension=function($){if(!$)throw"Extension function should be defined.";this._extension=$,this.update()},j.prototype.deleteExtension=function(){this._extension=void 0,this.update()},j.prototype.getRawData=function($){return $===void 0&&($="png"),ce(this,void 0,void 0,function(){var Z,W,te;return he(this,function(ge){switch(ge.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement($)];case 1:return(Z=ge.sent())?$.toLowerCase()==="svg"?(W=new XMLSerializer,te=W.serializeToString(Z),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
629
629
  `+te],{type:"image/svg+xml"})]):[2,new Promise(function(fe){return Z.toBlob(fe,"image/"+$,1)})]:[2,null]}})})},j.prototype.download=function($){return ce(this,void 0,void 0,function(){var Z,W,te,ge,fe;return he(this,function(oe){switch(oe.label){case 0:if(!this._qr)throw"QR code is empty";return Z="png",W="qr",typeof $=="string"?(Z=$,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof $=="object"&&$!==null&&($.name&&(W=$.name),$.extension&&(Z=$.extension)),[4,this._getElement(Z)];case 1:return(te=oe.sent())?(Z.toLowerCase()==="svg"?(ge=new XMLSerializer,fe=`<?xml version="1.0" standalone="no"?>\r
630
630
  `+(fe=ge.serializeToString(te)),k("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(fe),W+".svg")):k(te.toDataURL("image/"+Z),W+"."+Z),[2]):[2]}})})},j}()}},r={};function i(a){if(r[a])return r[a].exports;var o=r[a]={exports:{}};return n[a](o,o.exports,i),o.exports}return i.n=a=>{var o=a&&a.__esModule?()=>a.default:()=>a;return i.d(o,{a:o}),o},i.d=(a,o)=>{for(var s in o)i.o(o,s)&&!i.o(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:o[s]})},i.o=(a,o)=>Object.prototype.hasOwnProperty.call(a,o),i(676)})().default})})(XZ);var Rze=XZ.exports;const xze=Nt(Rze),Ize={margin:0,dotsOptions:{type:"dots"},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"}};function f_({data:e,size:t,image:n,config:r,...i}){const a=G.useRef(null),o=G.useMemo(()=>({...Ize,data:e,width:t,height:t,...n&&{image:n,imageOptions:{crossOrigin:"anonymous",margin:0}},...r}),[e,t,n,r]),[s]=G.useState(new xze(o));return G.useEffect(()=>{a.current&&s.append(a.current)},[s,a]),G.useEffect(()=>{s&&s.update(o)},[e,t,n,r]),Y.jsx(vt,{ref:a,...i})}f_.propTypes={data:be.string.isRequired,size:be.number.isRequired,image:be.string,config:be.object};f_.defaultProps={image:null,config:{}};function h_({tokenState:e,locale:t,messages:n}){const{t:r}=zc(),i="Mobile Wallet",a=(n==null?void 0:n.scan)||r("scanWithWallet"),o=r("download"),s=r("downloadTips"),l=180,d=mn(()=>["zh","en"].includes?`https://www.didwallet.io/${t}`:"https://www.didwallet.io/en",[t]);return Y.jsxs(Jc,{sx:{display:"flex",gap:1,justifyContent:"space-between",alignItems:{xs:"center",md:"stretch"},flexDirection:{xs:"column",md:"row"}},children:[Y.jsx(vt,{sx:{display:{xs:"none",md:"block"}},children:Y.jsx(Xn,{icon:Cze,fontSize:"1.3rem"})}),Y.jsxs(vt,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",flex:1},children:[Y.jsx(xi,{sx:{fontSize:"16px",fontWeight:"bold"},children:i}),Y.jsx(xi,{sx:{flex:1,color:zt.textMuted,fontSize:"14px",display:{xs:"none",md:"block"}},children:a}),Y.jsxs(vt,{sx:{color:zt.textMuted,fontSize:"12px",display:{xs:"none",md:"block"}},children:[s," ",Y.jsx(vt,{component:"a",href:d,target:"_blank",rel:"noreferrer",sx:{color:zt.primary100,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:o})]})]}),Y.jsx(f_,{data:e.url,size:l,sx:{p:1.5,borderRadius:2,backgroundColor:"white",fontSize:0}})]})}h_.propTypes={tokenState:be.object.isRequired,locale:be.string,messages:be.object};h_.defaultProps={locale:"en",messages:{}};const QZ={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"/>'},eX={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"/>'},tX={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"/>'},nX={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"/>'},m_={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 rX({icon:e,...t}){return Y.jsx(Bs,{...t,sx:{backgroundColor:"white",border:`1px solid ${zt.borderBase}`,...t==null?void 0:t.sx},children:Y.jsx(Xn,{icon:e})})}rX.propTypes={icon:be.any.isRequired};function iX({providerList:e,onLogin:t}){return Y.jsxs(Jc,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[Y.jsxs(vt,{sx:{display:"flex",alignItems:"center",gap:1},children:[Y.jsx(Xn,{icon:QZ,fontSize:"1.3rem"}),Y.jsx(xi,{sx:{fontSize:"16px",fontWeight:"bold"},children:"Others"})]}),Y.jsx(vt,{sx:{display:"flex",gap:2},children:e.map(r=>{const i={auth0:m_,apple:eX,github:tX,google:nX};return Y.jsx(rX,{icon:i[r.provider],onClick:()=>t(r)},r.provider)})})]})}iX.propTypes={onLogin:be.func.isRequired,providerList:be.array.isRequired};function aX({title:e,icon:t,...n}){return Y.jsxs(Jc,{...n,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:zt.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:[Y.jsxs(vt,{sx:{display:"flex",alignItems:"center",gap:1},children:[Y.jsx(Xn,{icon:t,fontSize:"1.5rem",style:{transform:"scale(0.95)"}}),Y.jsx(xi,{sx:{fontSize:"16px",fontWeight:"bold"},children:e})]}),Y.jsx(Xn,{className:"other-item-icon",icon:xT,fontSize:"1.3rem",color:zt.primaryBase})]})}aX.propTypes={title:be.string.isRequired,icon:be.string.isRequired};function oX({providerList:e,onLogin:t}){return Y.jsx(vt,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:e.map(n=>{const r={auth0:m_,apple:eX,github:tX,google:nX},i={auth0:"Auth0",apple:"Apple",github:"Github",google:"Google"};return Y.jsx(aX,{title:i[n.provider],icon:r[n.provider],onClick:()=>{t(n)}},n.provider)})})}oX.propTypes={onLogin:be.func.isRequired,providerList:be.array.isRequired};function Gb({providerList:e,type:t,onSuccess:n,onError:r,tokenState:i}){const{extraParams:a,changeStatus:o}=zc(),{loginOAuth:s,logoutOAuth:l,translation:d,oauthState:u}=L6(),p=xt(async h=>{try{u.loading=!0,u.status="scanned";const v=await s(h,{action:i.action,...a}),g=Zu({returnDomain:!1});$r.remove("connected_did",g),$r.remove("connected_pk",g),$r.remove("connected_wallet_os",g),$r.set("connected_app",v6(i.appInfo,i.memberAppInfo),g),v!=null&&v.sessionToken&&(u.loading=!1,u.status="succeed",await l({provider:h.provider}),n({...v,encrypted:!1},k=>k,{sourceAppPid:a==null?void 0:a.sourceAppPid}))}catch(v){const g=AY(v,d.loginOAuthFailed);u.loading=!1,u.error=g,u.status="error",await l({provider:h.provider}),r(new Error(g))}});return G.useEffect(()=>{o(u.status)},[o,u.status]),t==="stack"?Y.jsx(iX,{providerList:e,onLogin:p}):Y.jsx(oX,{providerList:e,onLogin:p})}Gb.propTypes={providerList:be.array.isRequired,type:be.oneOf(["list","stack"]),onSuccess:be.func.isRequired,onError:be.func.isRequired,tokenState:be.object.isRequired};Gb.defaultProps={type:"stack"};var _ze=O2,Lze=_4,Pze=1,$ze=2;function Bze(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],d=e[l],u=s[1];if(o&&s[2]){if(d===void 0&&!(l in e))return!1}else{var p=new _ze;if(r)var h=r(d,u,l,e,t,p);if(!(h===void 0?Lze(u,d,Pze|$ze,r,p):h))return!1}}return!0}var Nze=Bze,Oze=Ji;function Mze(e){return e===e&&!Oze(e)}var sX=Mze,Fze=sX,Uze=i0;function Hze(e){for(var t=Uze(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Fze(i)]}return t}var jze=Hze;function qze(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var lX=qze,Vze=Nze,zze=jze,Jze=lX;function Gze(e){var t=zze(e);return t.length==1&&t[0][2]?Jze(t[0][0],t[0][1]):function(n){return n===e||Vze(n,e,t)}}var Wze=Gze,Kze=_4,Yze=Yg,Zze=hG,Xze=e4,Qze=sX,eJe=lX,tJe=Pf,nJe=1,rJe=2;function iJe(e,t){return Xze(e)&&Qze(t)?eJe(tJe(e),t):function(n){var r=Yze(n,e);return r===void 0&&r===t?Zze(n,e):Kze(t,r,nJe|rJe)}}var aJe=iJe,oJe=Kg;function sJe(e){return function(t){return oJe(t,e)}}var lJe=sJe,cJe=Zz,uJe=lJe,dJe=e4,pJe=Pf;function fJe(e){return dJe(e)?cJe(pJe(e)):uJe(e)}var hJe=fJe,mJe=Wze,gJe=aJe,vJe=H2,yJe=Ta,bJe=hJe;function TJe(e){return typeof e=="function"?e:e==null?vJe:typeof e=="object"?yJe(e)?gJe(e[0],e[1]):mJe(e):bJe(e)}var LT=TJe,kJe="Expected a function";function SJe(e){if(typeof e!="function")throw new TypeError(kJe);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 AJe=SJe,DJe=_f,wJe=LT,EJe=fG,CJe=A4;function RJe(e,t){if(e==null)return{};var n=DJe(CJe(e),function(r){return[r]});return t=wJe(t),EJe(e,n,function(r,i){return t(r,i[0])})}var xJe=RJe,IJe=LT,_Je=AJe,LJe=xJe;function PJe(e,t){return LJe(e,_Je(IJe(t)))}var $Je=PJe;const iF=Nt($Je);function BJe(e){return e==null}var NJe=BJe;const aF=Nt(NJe);var cX={};Object.defineProperty(cX,"__esModule",{value:!0});var OJe=cX.default=MJe,Iw=G;function MJe(e,t){const n=(0,Iw.useRef)();(0,Iw.useEffect)(()=>{n.current=e},[e]),(0,Iw.useEffect)(()=>{function r(){n.current()}if(t!==null){const i=setInterval(r,t);return()=>clearInterval(i)}},[t])}var uX={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,d,u){this.fn=l,this.context=d,this.once=u||!1}function a(l,d,u,p,h){if(typeof u!="function")throw new TypeError("The listener must be a function");var v=new i(u,p||l,h),g=n?n+d:d;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],v]:l._events[g].push(v):(l._events[g]=v,l._eventsCount++),l}function o(l,d){--l._eventsCount===0?l._events=new r:delete l._events[d]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var d=[],u,p;if(this._eventsCount===0)return d;for(p in u=this._events)t.call(u,p)&&d.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(u)):d},s.prototype.listeners=function(d){var u=n?n+d:d,p=this._events[u];if(!p)return[];if(p.fn)return[p.fn];for(var h=0,v=p.length,g=new Array(v);h<v;h++)g[h]=p[h].fn;return g},s.prototype.listenerCount=function(d){var u=n?n+d:d,p=this._events[u];return p?p.fn?1:p.length:0},s.prototype.emit=function(d,u,p,h,v,g){var k=n?n+d:d;if(!this._events[k])return!1;var C=this._events[k],S=arguments.length,I,L;if(C.fn){switch(C.once&&this.removeListener(d,C.fn,void 0,!0),S){case 1:return C.fn.call(C.context),!0;case 2:return C.fn.call(C.context,u),!0;case 3:return C.fn.call(C.context,u,p),!0;case 4:return C.fn.call(C.context,u,p,h),!0;case 5:return C.fn.call(C.context,u,p,h,v),!0;case 6:return C.fn.call(C.context,u,p,h,v,g),!0}for(L=1,I=new Array(S-1);L<S;L++)I[L-1]=arguments[L];C.fn.apply(C.context,I)}else{var N=C.length,q;for(L=0;L<N;L++)switch(C[L].once&&this.removeListener(d,C[L].fn,void 0,!0),S){case 1:C[L].fn.call(C[L].context);break;case 2:C[L].fn.call(C[L].context,u);break;case 3:C[L].fn.call(C[L].context,u,p);break;case 4:C[L].fn.call(C[L].context,u,p,h);break;default:if(!I)for(q=1,I=new Array(S-1);q<S;q++)I[q-1]=arguments[q];C[L].fn.apply(C[L].context,I)}}return!0},s.prototype.on=function(d,u,p){return a(this,d,u,p,!1)},s.prototype.once=function(d,u,p){return a(this,d,u,p,!0)},s.prototype.removeListener=function(d,u,p,h){var v=n?n+d:d;if(!this._events[v])return this;if(!u)return o(this,v),this;var g=this._events[v];if(g.fn)g.fn===u&&(!h||g.once)&&(!p||g.context===p)&&o(this,v);else{for(var k=0,C=[],S=g.length;k<S;k++)(g[k].fn!==u||h&&!g[k].once||p&&g[k].context!==p)&&C.push(g[k]);C.length?this._events[v]=C.length===1?C[0]:C:o(this,v)}return this},s.prototype.removeAllListeners=function(d){var u;return d?(u=n?n+d:d,this._events[u]&&o(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(uX);var dX=uX.exports,g_=Object.defineProperty,FJe=Object.getOwnPropertyDescriptor,UJe=Object.getOwnPropertyNames,HJe=Object.prototype.hasOwnProperty,jJe=(e,t)=>{for(var n in t)g_(e,n,{get:t[n],enumerable:!0})},qJe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of UJe(t))!HJe.call(e,i)&&i!==n&&g_(e,i,{get:()=>t[i],enumerable:!(r=FJe(t,i))||r.enumerable});return e},VJe=e=>qJe(g_({},"__esModule",{value:!0}),e),pX={};jJe(pX,{Channel:()=>hX,LongPoll:()=>Ry,Presence:()=>rm,Serializer:()=>im,Socket:()=>ZJe});var zJe=VJe(pX),Im=e=>typeof e=="function"?e:function(){return e},JJe=typeof self<"u"?self:null,nm=typeof window<"u"?window:null,_m=JJe||nm||_m,GJe="2.0.0",Ss={connecting:0,open:1,closing:2,closed:3},WJe=1e4,KJe=1e3,Ia={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},ol={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},OR={longpoll:"longpoll",websocket:"websocket"},YJe={complete:4},bv=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})}},fX=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))}},hX=class{constructor(e,t,n){this.state=Ia.closed,this.topic=e,this.params=Im(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new bv(this,ol.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new fX(()=>{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=Ia.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=Ia.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=Ia.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=Ia.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 bv(this,ol.leave,Im({}),this.timeout).send(),this.state=Ia.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(ol.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(ol.close,e)}onError(e){return this.on(ol.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 bv(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=Ia.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(ol.close,"leave")},n=new bv(this,ol.leave,Im({}),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=Ia.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===Ia.closed}isErrored(){return this.state===Ia.errored}isJoined(){return this.state===Ia.joined}isJoining(){return this.state===Ia.joining}isLeaving(){return this.state===Ia.leaving}},Wb=class{static request(e,t,n,r,i,a,o){if(_m.XDomainRequest){let s=new _m.XDomainRequest;return this.xdomainRequest(s,e,t,r,i,a,o)}else{let s=new _m.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===YJe.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)}`}},Ry=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=Ss.connecting,this.poll()}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+OR.websocket),"$1/"+OR.longpoll)}endpointURL(){return Wb.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=Ss.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Ss.open||this.readyState===Ss.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=Ss.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(`
631
- `),()=>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=Ss.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=Wb.request(e,this.endpointURL(),t,n,this.timeout,o,s=>{this.reqs.delete(a),this.isActive()&&i(s)}),this.reqs.add(a)}},rm=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=rm.syncState(this.state,r,i,a),this.pendingDiffs.forEach(s=>{this.state=rm.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=rm.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 rm.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 d=i[s];if(d){let u=l.metas.map(g=>g.phx_ref),p=d.metas.map(g=>g.phx_ref),h=l.metas.filter(g=>p.indexOf(g.phx_ref)<0),v=d.metas.filter(g=>u.indexOf(g.phx_ref)<0);h.length>0&&(a[s]=l,a[s].metas=h),v.length>0&&(o[s]=this.clone(d),o[s].metas=v)}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 d=e[o].metas.map(p=>p.phx_ref),u=l.metas.filter(p=>d.indexOf(p.phx_ref)<0);e[o].metas.unshift(...u)}n(o,l,s)}),this.map(a,(o,s)=>{let l=e[o];if(!l)return;let d=s.metas.map(u=>u.phx_ref);l.metas=l.metas.filter(u=>d.indexOf(u.phx_ref)<0),r(o,l,s),l.metas.length===0&&delete e[o]}),e}static list(e,t){return t||(t=function(n,r){return r}),this.map(e,(n,r)=>t(n,r))}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static clone(e){return JSON.parse(JSON.stringify(e))}},im={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),d=0;l.setUint8(d++,this.KINDS.push),l.setUint8(d++,t.length),l.setUint8(d++,n.length),l.setUint8(d++,i.length),l.setUint8(d++,r.length),Array.from(t,p=>l.setUint8(d++,p.charCodeAt(0))),Array.from(n,p=>l.setUint8(d++,p.charCodeAt(0))),Array.from(i,p=>l.setUint8(d++,p.charCodeAt(0))),Array.from(r,p=>l.setUint8(d++,p.charCodeAt(0)));var u=new Uint8Array(s.byteLength+a.byteLength);return u.set(new Uint8Array(s),0),u.set(new Uint8Array(a),s.byteLength),u.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(e.slice(o,o+r));o=o+r;let l=n.decode(e.slice(o,o+i));o=o+i;let d=n.decode(e.slice(o,o+a));o=o+a;let u=e.slice(o,e.byteLength);return{join_ref:s,ref:null,topic:l,event:d,payload:u}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(s,s+r));s=s+r;let d=n.decode(e.slice(s,s+i));s=s+i;let u=n.decode(e.slice(s,s+a));s=s+a;let p=n.decode(e.slice(s,s+o));s=s+o;let h=e.slice(s,e.byteLength),v={status:p,response:h};return{join_ref:l,ref:d,topic:u,event:ol.reply,payload:v}},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}}},ZJe=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=n.timeout||WJe,this.transport=n.transport||_m.WebSocket||Ry,this.establishedConnections=0,this.defaultEncoder=im.encode.bind(im),this.defaultDecoder=im.decode.bind(im),this.closeWasClean=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Ry?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;nm&&nm.addEventListener&&(nm.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),nm.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=Im(n.params||{}),this.endPoint=`${t}/${OR.websocket}`,this.vsn=n.vsn||GJe,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new fX(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Ry}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=Wb.appendParams(Wb.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=Im(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(),KJe,"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===Ss.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(ol.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Ss.connecting:return"connecting";case Ss.open:return"open";case Ss.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 hX(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 d=this.channels[l];d.isMember(r,i,a,s)&&d.trigger(i,a,o,s)}for(let l=0;l<this.stateChangeCallbacks.message.length;l++){let[,d]=this.stateChangeCallbacks.message[l];d(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())}},MR={exports:{}},_w,oF;function XJe(){if(oF)return _w;oF=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;_w=function(u,p){p=p||{};var h=typeof u;if(h==="string"&&u.length>0)return o(u);if(h==="number"&&isFinite(u))return p.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function o(u){if(u=String(u),!(u.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(p){var h=parseFloat(p[1]),v=(p[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return h*a;case"weeks":case"week":case"w":return h*i;case"days":case"day":case"d":return h*r;case"hours":case"hour":case"hrs":case"hr":case"h":return h*n;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function s(u){var p=Math.abs(u);return p>=r?Math.round(u/r)+"d":p>=n?Math.round(u/n)+"h":p>=t?Math.round(u/t)+"m":p>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var p=Math.abs(u);return p>=r?d(u,p,r,"day"):p>=n?d(u,p,n,"hour"):p>=t?d(u,p,t,"minute"):p>=e?d(u,p,e,"second"):u+" ms"}function d(u,p,h,v){var g=p>=h*1.5;return Math.round(u/h)+" "+v+(g?"s":"")}return _w}function QJe(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=o,n.humanize=XJe(),n.destroy=d,Object.keys(e).forEach(u=>{n[u]=e[u]}),n.names=[],n.skips=[],n.formatters={};function t(u){let p=0;for(let h=0;h<u.length;h++)p=(p<<5)-p+u.charCodeAt(h),p|=0;return n.colors[Math.abs(p)%n.colors.length]}n.selectColor=t;function n(u){let p,h=null,v,g;function k(...C){if(!k.enabled)return;const S=k,I=Number(new Date),L=I-(p||I);S.diff=L,S.prev=p,S.curr=I,p=I,C[0]=n.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let N=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(H,V)=>{if(H==="%%")return"%";N++;const X=n.formatters[V];if(typeof X=="function"){const re=C[N];H=X.call(S,re),C.splice(N,1),N--}return H}),n.formatArgs.call(S,C),(S.log||n.log).apply(S,C)}return k.namespace=u,k.useColors=n.useColors(),k.color=n.selectColor(u),k.extend=r,k.destroy=n.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(v!==n.namespaces&&(v=n.namespaces,g=n.enabled(u)),g),set:C=>{h=C}}),typeof n.init=="function"&&n.init(k),k}function r(u,p){const h=n(this.namespace+(typeof p>"u"?":":p)+u);return h.log=this.log,h}function i(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let p;const h=(typeof u=="string"?u:"").split(/[\s,]+/),v=h.length;for(p=0;p<v;p++)h[p]&&(u=h[p].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")))}function a(){const u=[...n.names.map(s),...n.skips.map(s).map(p=>"-"+p)].join(",");return n.enable(""),u}function o(u){if(u[u.length-1]==="*")return!0;let p,h;for(p=0,h=n.skips.length;p<h;p++)if(n.skips[p].test(u))return!1;for(p=0,h=n.names.length;p<h;p++)if(n.names[p].test(u))return!0;return!1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}function d(){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 eGe=QJe;(function(e,t){var n={};t.formatArgs=i,t.save=a,t.load=o,t.useColors=r,t.storage=s(),t.destroy=(()=>{let d=!1;return()=>{d||(d=!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(d){if(d[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+d[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;d.splice(1,0,u,"color: inherit");let p=0,h=0;d[0].replace(/%[a-zA-Z%]/g,v=>{v!=="%%"&&(p++,v==="%c"&&(h=p))}),d.splice(h,0,u)}t.log=console.debug||console.log||(()=>{});function a(d){try{d?t.storage.setItem("debug",d):t.storage.removeItem("debug")}catch{}}function o(){let d;try{d=t.storage.getItem("debug")}catch{}return!d&&typeof Kt<"u"&&"env"in Kt&&(d=n.DEBUG),d}function s(){try{return localStorage}catch{}}e.exports=eGe(t);const{formatters:l}=e.exports;l.j=function(d){try{return JSON.stringify(d)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(MR,MR.exports);var v_=MR.exports;const tGe=v_;var nGe=(e,t=!1)=>{const n=tGe(["@arcblock/ws",e].join(":"));return{debug:n,warn:n,info:n,trace:t?n:console.error,error:t?n:console.error}};const rGe=nGe;var iGe=(e,t,n)=>class extends e{constructor(i,a={}){super(i,{transport:n,...a}),this._logger=rGe("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:d})=>{l==="ok"?this.emitter.emit(i,d):this._logger.debug("response error",{topic:i,status:l,data:d})})}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 aGe=dX,{Socket:oGe}=zJe,sGe=iGe;var lGe=sGe(oGe,aGe);const cGe=lGe;var y_={WsClient:cGe};function uGe(e){const t=G.useRef(e);G.useEffect(()=>{t.current=e},[e]),G.useEffect(()=>{const n=r=>{!document.hidden&&t.current&&t.current(r)};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)}},[])}function dGe(e){const t=e||window.location.href;return new URL(t).host}function am(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 Lw={};function pGe({action:e,prefix:t,checkFn:n,extraParams:r,baseUrl:i}){const a=`${t}/token?${em(r)}`;return Lw[a]||(Lw[a]=async function(){var d,u;const s=await n(a,{headers:am(i)});if((d=s==null?void 0:s.data)!=null&&d.token)return s.data;if((u=s==null?void 0:s.data)!=null&&u.error)throw new Error(s.data.error);const l=B2(t)?t:`${i}${t}`;throw new Error(`Error generating ${e} qrcode from: ${l}`)}),Lw[a]}const fGe=()=>{try{const t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;const n=eUe(t);return{token:tUe(n),url:n}}catch(e){return{error:e}}},mX=()=>Sc(globalThis,"blocklet.appPid")||Sc(globalThis,"blocklet.appId")||Sc(globalThis,"env.appId")||"",hGe=()=>(Sc(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(qY,""),Pw=e=>`relay:${mX()}:${e}`,mGe=()=>window.location.protocol==="https:"?"wss:":"ws:",sF=e=>!e||new URL(e).origin===window.location.origin,lF=e=>["succeed","error","timeout","busy"].includes(e);function gGe({action:e,checkFn:t,checkInterval:n,checkTimeout:r,extraParams:i,locale:a,prefix:o,tokenKey:s,encKey:l,onError:d,onSuccess:u,baseUrl:p,autoConnect:h=!0,forceConnected:v=!0,saveConnect:g=!0,useSocket:k=!0,provider:C="wallet"}){const S=ea({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:p,prefix:`${o}/${e}`,extraParams:iF(i,aF),checkFn:t,results:{},action:e,provider:C}),I=Sg[a]||Sg.en,L=mn(()=>fGe(),[]),N=Math.ceil(r/n),q=ea({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:H,decrypt:V}=iqe(),X=l0(),re=Xg(),le=xt((...E)=>{const y={[l]:H,...S.extraParams,locale:a,forceConnected:v,autoConnect:h&&!X.wallet&&!q.cancelWhenScannedCounter&&["ios","android"].includes($r.get("connected_wallet_os")),provider:S.provider};return re&&(y.visitorId=re),pGe({action:e,prefix:S.prefix,baseUrl:S.baseUrl,checkFn:S.checkFn,extraParams:y})(...E)}),Q=()=>{q.cancelWhenScannedCounter++};G.useEffect(()=>{q.cancelWhenScannedCounter>0&&(i.nw?d(new Error(I.retryForbidden)):D())},[q.cancelWhenScannedCounter]);const B=G.useRef(null),T=G.useRef(null);G.useEffect(()=>(k&&sF(S.baseUrl)&&mX()?(!B.current||B.current.isConnected()===!1||B.current.baseUrl!==S.baseUrl)&&(B.current=new y_.WsClient(`${mGe()}//${dGe(S.baseUrl)}${hGe()}${qY}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),B.current.baseUrl=S.baseUrl,B.current.onOpen(()=>{q.isSocketAvailable=!0}),B.current.connect()):q.isSocketAvailable&&(q.isSocketAvailable=!1),()=>{B.current&&(B.current.disconnect(),B.current=null)}),[S.baseUrl]);const c={...S.extraParams,locale:a,[s]:S.token||(L==null?void 0:L.token),provider:S.provider},f=()=>!S.token||S.loading||lF(S.status)?null:n,b=async()=>{try{c[s]&&S.status==="created"&&await S.checkFn(`${S.prefix}/timeout?${em(c)}`,{headers:am(S.baseUrl)})}catch{}try{S.token&&T.current&&(await B.current.unsubscribe(Pw(S.token)),T.current=null)}catch{}},D=xt(async(E=!0)=>{E&&b();try{S.loading=!0,S.token="",S.url="",S.store=null,S.extraParams=iF(i,aF),await bT();const y=await le(),_=y.extra||{};S.loading=!1,S.token=y.token,S.url=y.url,S.status="created",S.error="",S.checkCount=0,S.appInfo=y.appInfo,S.memberAppInfo=y.memberAppInfo,S.connectedDid=_.connectedDid,S.saveConnect=_.saveConnect}catch(y){S.loading=!1,S.status="error",S.error=`${I.generateError}: ${y.message}`}}),R=G.useRef(null);G.useEffect(()=>{R.current={state:S,params:c}}),G.useEffect(()=>()=>{const{state:E,params:y}=R.current;E.status==="created"&&y[s]&&E.checkFn(`${E.prefix}/timeout?${em(y)}`,{headers:am(E.baseUrl)})},[]);const x=async()=>{try{if(L.error)throw L.error;S.loading=!0,S.token=L.token,S.url=L.url,S.inExistingSession=!0;const E=await w();if(E!=null&&E.status&&(E==null?void 0:E.status)!=="created")throw new Error(`${I.invalidSessionStatus} [${E.status}]`)}catch(E){S.status="error",S.error=E.message,d(E,S==null?void 0:S.store,V)}finally{S.loading=!1}};G.useEffect(()=>{if(!S.token&&!S.store&&!S.loading&&!S.error)if(L)x();else{D(!1);return}if(S.status!=="timeout"&&S.checkCount>N){S.status="timeout",b();return}if(S.status==="succeed"&&!q.onSuccessCalled&&(sF(S.baseUrl)&&g&&S.saveConnect&&S.store.did&&kY({...S.store,appInfo:S.appInfo,memberAppInfo:S.memberAppInfo}),S.store)){const{nextWorkflow:E}=S.store;if(E)try{const y=nUe(E,s);S.nextWorkflow=(y==null?void 0:y.nextWorkflow)||E,Object.assign(S,y),S.store=null,S.error="",S.url="",S.appInfo=null,S.memberAppInfo=null,S.checkCount=0,S.status="scanned",S.results={...S.results,[S.token]:S.store},S.checkFn=Ul({baseURL:y.baseUrl,timeout:8e3}).get,w()}catch(y){console.error(`Invalid nextWorkflow: ${E}`,y),S.status="error",S.error=`Invalid nextWorkflow: ${E}: ${y.message}`}else if(S.nextWorkflow&&(S.nextWorkflow="",S.url=""),typeof u=="function"){const y=Object.values({...S.results,[S.token]:S.store});q.onSuccessCalled=!0;const _=y.length>1?y:y[0],ne=Tl(_);u(ne,V,{sourceAppPid:i==null?void 0:i.sourceAppPid})}}}),G.useEffect(()=>{if(S.token&&q.isSocketAvailable&&B.current){let E=!1;T.current?T.current.token!==S.token&&(B.current.unsubscribe(Pw(T.current.token)),E=!0):E=!0,E&&(T.current=B.current.subscribe(Pw(S.token)),T.current.token=S.token,T.current.on("updated",({response:y})=>{let{status:_,error:ne}=y;_==="forbidden"&&(ne=I.forbidden,_="error"),S.status=_,S.mfaCode=y.mfaCode||0,S.store=y,S.error=ne}))}},[S.token,q.isSocketAvailable,B.current]);const w=async(E=!1)=>{var y;if(S.checking||(S.status==="created"&&S.checkCount++,q.isSocketAvailable&&!E))return null;try{S.checking=!0;const _=await S.checkFn(`${S.prefix}/status?${em(c)}`,{headers:am(S.baseUrl)}),{status:ne,error:M,mfaCode:z=0}=_.data;if(S.store=_.data,S.mfaCode=z,S.checking=!1,S.status=ne,ne==="error"&&M){const ie=new Error(M);throw ie.response=_,ie}return _.data}catch(_){const{response:ne}=_;if(ne!=null&&ne.status){c[s]&&S.checkFn(`${S.prefix}/timeout?${em(c)}`,{headers:am(S.baseUrl)});const M=(y=ne==null?void 0:ne.data)!=null&&y.error?ne.data.error:_.message,z=new Error(M);z.code=ne.status,S.status="error",S.checking=!1,S.error=M,d(z,S==null?void 0:S.store,V)}else S.status="error",S.checking=!1,S.error=I.generateError}return null};return OJe(w,f()),uGe(()=>{q.isSocketAvailable&&S.token&&lF(S.status)===!1&&w(!0)}),{state:S,generate:D,cancelWhenScanned:Q}}var b_={};Object.defineProperty(b_,"__esModule",{value:!0});var gX=b_.default=void 0;vGe(G);var sn=Y;function vGe(e){return e&&e.__esModule?e:{default:e}}function cF(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 uF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cF(Object(n),!0).forEach(function(r){yGe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yGe(e,t,n){return t=bGe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bGe(e){var t=TGe(e,"string");return typeof t=="symbol"?t:String(t)}function TGe(e,t){if(typeof e!="object"||e===null)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 T_=function(t){return(0,sn.jsxs)("svg",uF(uF({},t),{},{children:[(0,sn.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,sn.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"url(#paint0_linear)"}),(0,sn.jsx)("path",{d:"M3.52 7.36A2.56 2.56 0 0 1 6.08 4.8h19.84a2.56 2.56 0 0 1 2.56 2.56v12.16a2.56 2.56 0 0 1-2.56 2.56H6.08a2.56 2.56 0 0 1-2.56-2.56V7.36z",fill:"#9FCBFF",filter:"url(#filter0_i)"}),(0,sn.jsx)("path",{d:"M2.56 9.28a2.56 2.56 0 0 1 2.56-2.56h21.76a2.56 2.56 0 0 1 2.56 2.56v13.6a2.56 2.56 0 0 1-2.56 2.56H5.12a2.56 2.56 0 0 1-2.56-2.56V9.28z",fill:"url(#paint1_linear)",filter:"url(#filter1_d)"}),(0,sn.jsx)("path",{d:"M0 22.32l32-6.16V32H0v-9.68z",fill:"url(#paint2_linear)",filter:"url(#filter2_d)"}),(0,sn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.536 9.248h8.288c.408 0 .74.3.74.672v4.64c0 .371-.332.672-.74.672H5.536c-.408 0-.74-.3-.74-.672v-.04a.158.158 0 1 0-.316 0v.04c0 .53.473.96 1.056.96h8.288c.583 0 1.056-.43 1.056-.96V9.92c0-.53-.473-.96-1.056-.96H5.536c-.583 0-1.056.43-1.056.96v.04a.158.158 0 0 0 .317 0v-.04c0-.371.33-.672.739-.672zm-1.023 4.638a.127.127 0 0 0 .087.034h1.267c.472 0 .83-.107 1.076-.322.25-.217.381-.548.397-.993a11.281 11.281 0 0 0 0-.734c-.012-.426-.148-.751-.406-.975-.258-.224-.622-.336-1.09-.336H4.6a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.794-.806c-.099.1-.253.149-.464.149h-.502V11.25h.478c.21 0 .369.051.474.154.108.102.166.26.172.475.006.09.01.208.01.355s-.004.267-.01.36c-.006.221-.059.383-.158.485zm1.63.806a.127.127 0 0 0 .087.034h.64a.116.116 0 0 0 .087-.034.11.11 0 0 0 .038-.086v-3.12a.11.11 0 0 0-.038-.086.116.116 0 0 0-.086-.034h-.641a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.637.034a.127.127 0 0 1-.086-.034.128.128 0 0 1-.033-.086v-3.12c0-.035.01-.064.033-.086a.127.127 0 0 1 .086-.034h1.244c.469 0 .832.112 1.09.336.259.224.394.549.407.974a11.244 11.244 0 0 1 0 .735c-.016.445-.148.776-.397.993-.245.215-.604.322-1.076.322H9.574zm1.244-.691c.21 0 .365-.05.464-.149.099-.102.152-.264.158-.485a5.52 5.52 0 0 0 .01-.36c0-.147-.004-.265-.01-.355-.006-.214-.064-.373-.172-.475-.106-.103-.263-.154-.474-.154h-.478v1.978h.502zm2.468-1.382a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.286-.288.286zm0 1.495a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.287-.288.287z",fill:"#4598FA"})]}),(0,sn.jsxs)("defs",{children:[(0,sn.jsxs)("filter",{id:"filter0_i",x:"3.52",y:"1.8",width:"24.96",height:"20.28",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,sn.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,sn.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,sn.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,sn.jsx)("feOffset",{dy:"-3"}),(0,sn.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,sn.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,sn.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.2 0"}),(0,sn.jsx)("feBlend",{in2:"shape",result:"effect1_innerShadow"})]}),(0,sn.jsxs)("filter",{id:"filter1_d",x:"-1.44",y:"1.72",width:"34.88",height:"26.72",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,sn.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,sn.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,sn.jsx)("feOffset",{dy:"-1"}),(0,sn.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,sn.jsx)("feColorMatrix",{values:"0 0 0 0 0.220767 0 0 0 0 0.470803 0 0 0 0 0.701605 0 0 0 0.18 0"}),(0,sn.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,sn.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,sn.jsxs)("filter",{id:"filter2_d",x:"-5",y:"11.16",width:"42",height:"25.84",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,sn.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,sn.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,sn.jsx)("feOffset",{}),(0,sn.jsx)("feGaussianBlur",{stdDeviation:"2.5"}),(0,sn.jsx)("feColorMatrix",{values:"0 0 0 0 0.14382 0 0 0 0 0.205065 0 0 0 0 0.522634 0 0 0 0.25 0"}),(0,sn.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,sn.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,sn.jsxs)("linearGradient",{id:"paint0_linear",x1:"16",x2:"16",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,sn.jsx)("stop",{stopColor:"#4F9DF6"}),(0,sn.jsx)("stop",{offset:"1",stopColor:"#0A79F8"})]}),(0,sn.jsxs)("linearGradient",{id:"paint1_linear",x1:"16",y1:"6.72",x2:"16",y2:"25.44",gradientUnits:"userSpaceOnUse",children:[(0,sn.jsx)("stop",{stopColor:"#fff"}),(0,sn.jsx)("stop",{offset:"1",stopColor:"#ECEFFF"})]}),(0,sn.jsxs)("linearGradient",{id:"paint2_linear",x1:"16",y1:"19.2",x2:"18.48",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,sn.jsx)("stop",{offset:".007",stopColor:"#77B2F6"}),(0,sn.jsx)("stop",{offset:".055",stopColor:"#4F9DF6"}),(0,sn.jsx)("stop",{offset:"1",stopColor:"#4598FA"})]}),(0,sn.jsx)("clipPath",{id:"clip0",children:(0,sn.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"#fff"})})]})]}))};T_.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};T_.displayName="did-wallet";var kGe=T_;gX=b_.default=kGe;function k_({tokenState:e,locale:t,tokenKey:n}){const{t:r,isWalletWebview:i}=zc(),a=r("openInWallet"),o=mn(()=>{if(!e.url)return"";const d=new URL(window.location.href);d.searchParams.set("tokenKey",e.token);const u=new URL(e.url);return u.searchParams.set("callback",encodeURIComponent(d)),u.searchParams.set("callback_delay",1500),u.searchParams.set("locale",t),u.href.replace(/^https?:\/\//,"abt://")},[n,e.token]),s=xt(()=>{Ur(()=>import("./index-0niAcafj.js").then(d=>d.i),__vite__mapDeps([])).then(d=>{d.call||(d=d.default),d.call("authAction",{action:"auth",deepLink:o})}).catch(d=>{console.error("load dsbridge error",d)})}),l={};return i||(l.component="a",l.href=o),o0(()=>{o&&s()}),Y.jsxs(Jc,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:zt.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...l,onClick:i?s:sr,children:[Y.jsxs(vt,{sx:{display:"flex",alignItems:"center",gap:1},children:[Y.jsx(gX,{}),Y.jsx(xi,{sx:{fontSize:"16px",fontWeight:"bold"},children:a})]}),Y.jsx(Xn,{icon:xT,fontSize:"1.3rem",color:zt.primaryBase})]})}k_.propTypes={tokenState:be.object.isRequired,locale:be.string,tokenKey:be.string};k_.defaultProps={locale:"en",tokenKey:"_t_"};function vX(){return Y.jsx(vt,{sx:{height:"100%",minWidth:"160px",minHeight:"160px",display:"flex",justifyContent:"center",alignItems:"center"},children:Y.jsx(jg,{sx:{color:zt.primary100}})})}const Tv=["scanned","succeed","error","busy"];function S_({onSuccess:e,onError:t,action:n,prefix:r,checkFn:i,checkInterval:a,checkTimeout:o,locale:s,tokenKey:l,encKey:d,baseUrl:u,autoConnect:p,forceConnected:h,saveConnect:v,useSocket:g,allowWallet:k,provider:C,webWalletUrl:S,onRecreateSession:I,messages:L,enabledConnectTypes:N}){var Z,W,te;if(typeof i!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const q=G.useContext(Kf),{lostPassportUrl:H,connectState:V,extraParams:X,staticState:re,changeStatus:le,t:Q,isWalletWebview:B}=zc(),T=l0(),c=mn(()=>{var ge;return C||(X==null?void 0:X.provider)||((ge=q==null?void 0:q.session)==null?void 0:ge.provider)||"wallet"},[X==null?void 0:X.provider,(Z=q==null?void 0:q.session)==null?void 0:Z.provider]);G.useEffect(()=>{R(u)},[u]);const{state:f,generate:b,cancelWhenScanned:D}=gGe({action:n,baseUrl:u,checkFn:i,checkInterval:a,checkTimeout:o,extraParams:X,prefix:r,onError:t,onSuccess:e,locale:s,tokenKey:l,encKey:d,autoConnect:p,forceConnected:h,saveConnect:v,useSocket:g,allowWallet:k,provider:c}),{setBaseUrl:R,oauthConfigList:x,oauthState:w}=L6({defaultStatus:f.status});af(()=>{b()},[V==null?void 0:V.sourceAppPid]);const E=mn(()=>Tv.includes(w.status)||Tv.includes(f.status),[f.status,w.status]);G.useEffect(()=>{Tv.includes(w.status)?le(w.status):Tv.includes(f.status)?le(f.status):le("created")},[le,f.status,w.status]);const y=xt(()=>{I(),w.reset(),f.inExistingSession||b()}),_=xt(()=>{I(),f.inExistingSession||(re.current.cancelCount++,D())}),ne=mn(()=>({confirm:L.confirm,success:L.success,error:f.error||w.error||""}),[L.confirm,L.success,f.error,w.error]),M=mn(()=>k&&N.includes("mobile")&&!B,[k,N,B]),z=bY(S),ie=mn(()=>k&&N.includes("web")&&(z||$2())&&!T.mobile.any,[k,N,(W=T==null?void 0:T.mobile)==null?void 0:W.any]),ce=mn(()=>k&&N.includes("mobile")&&T.mobile.any,[k,N,(te=T==null?void 0:T.mobile)==null?void 0:te.any]),he=mn(()=>{const ge=wze(["auth0","apple","github","google"],N);return x.filter(fe=>ge.includes(fe.provider))},[x,N]),De=mn(()=>he.length>0&&["login","invite"].includes(f.action),[he]),j=mn(()=>{const ge=M||ie||ce;let fe=null;return De&&(fe=ge?Y.jsxs(Y.Fragment,{children:[Y.jsx(YI,{light:!0,sx:{color:zt.textMuted,width:{xs:"200px",md:"368px"},maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:zt.lineStep}},children:"OR"}),Y.jsx(Gb,{providerList:he,onSuccess:e,onError:t,tokenState:f,locale:s})]}):Y.jsx(Gb,{providerList:he,onSuccess:e,onError:t,tokenState:f,type:"list",locale:s})),Y.jsxs(Y.Fragment,{children:[Y.jsx(vt,{"data-did-auth-url":f.url,sx:{display:"none"}}),ce&&Y.jsx(k_,{tokenState:f,locale:s,tokenKey:l}),M&&Y.jsx(h_,{tokenState:f,messages:L,locale:s}),ie&&Y.jsx(p_,{tokenState:f,webWalletUrl:S,locale:s}),ge&&H&&Y.jsx(Uz,{href:H,underline:"none",sx:{fontSize:"12px",width:"auto",margin:"auto",display:{xs:"inline-block",md:"none"}},children:Q("lostPassport")}),fe]})},[f.url,H,M,ie,ce]);return mn(()=>f.loading||w.loading,[f.loading,w.loading])?Y.jsx(vX,{}):E?Y.jsxs(Y.Fragment,{children:[Y.jsx(vt,{"data-did-auth-url":f.url,sx:{display:"none"}}),Y.jsx(_T,{status:w.status||f.status,nextWorkflow:f.nextWorkflow,mfaCode:f.mfaCode,onCancel:_,onRetry:y,messages:ne,locale:s,className:"auth-status"})]}):j}S_.propTypes={onError:be.func,onSuccess:be.func.isRequired,action:be.string.isRequired,checkFn:be.func.isRequired,prefix:be.string,checkInterval:be.number,checkTimeout:be.number,locale:be.oneOf(["en","zh",""]),tokenKey:be.string,encKey:be.string,baseUrl:be.string,autoConnect:be.bool,forceConnected:be.oneOfType([be.bool,be.string]),saveConnect:be.bool,useSocket:be.bool,allowWallet:be.bool,provider:be.oneOf(["wallet","auth0",""]),webWalletUrl:be.string,onRecreateSession:be.func,messages:be.object,enabledConnectTypes:be.arrayOf(be.oneOf(["web","mobile","github","apple","google","auth0"]))};S_.defaultProps={prefix:I6,onError:sr,checkInterval:2*1e3,checkTimeout:jY*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:yY(),onRecreateSession:sr,messages:{},enabledConnectTypes:["web","mobile","github","apple","google","auth0"]};var $w=iG,SGe=EJ,AGe=I4,DGe=1/0,wGe=$w&&1/AGe(new $w([,-0]))[1]==DGe?function(e){return new $w(e)}:SGe,EGe=wGe,CGe=R4,RGe=YZ,xGe=ZZ,IGe=x4,_Ge=EGe,LGe=I4,PGe=200;function $Ge(e,t,n){var r=-1,i=RGe,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=xGe;else if(a>=PGe){var d=t?null:_Ge(e);if(d)return LGe(d);o=!1,i=IGe,l=new CGe}else l=t?[]:s;e:for(;++r<a;){var u=e[r],p=t?t(u):u;if(u=n||u!==0?u:0,o&&p===p){for(var h=l.length;h--;)if(l[h]===p)continue e;t&&l.push(p),s.push(u)}else i(l,p,n)||(l!==s&&l.push(p),s.push(u))}return s}var yX=$Ge,BGe=D4,NGe=LT,OGe=r0,MGe=yX,dF=g4,FGe=j2,UGe=OGe(function(e){var t=FGe(e);return dF(t)&&(t=void 0),MGe(BGe(e,1,dF,!0),NGe(t))}),HGe=UGe;const jGe=Nt(HGe);var qGe=NJ,VGe=i0;function zGe(e,t){return e&&qGe(e,t,VGe)}var JGe=zGe,GGe=dd;function WGe(e,t){return function(n,r){if(n==null)return n;if(!GGe(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 KGe=WGe,YGe=JGe,ZGe=KGe,XGe=ZGe(YGe),QGe=XGe,eWe=QGe,tWe=dd;function nWe(e,t){var n=-1,r=tWe(e)?Array(e.length):[];return eWe(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var rWe=nWe;function iWe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var aWe=iWe,pF=Gg;function oWe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=pF(e),o=t!==void 0,s=t===null,l=t===t,d=pF(t);if(!s&&!d&&!a&&e>t||a&&o&&l&&!s&&!d||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!d&&e<t||d&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var sWe=oWe,lWe=sWe;function cWe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=lWe(i[r],a[r]);if(l){if(r>=s)return l;var d=n[r];return l*(d=="desc"?-1:1)}}return e.index-t.index}var uWe=cWe,Bw=_f,dWe=Kg,pWe=LT,fWe=rWe,hWe=aWe,mWe=t0,gWe=uWe,vWe=H2,yWe=Ta;function bWe(e,t,n){t.length?t=Bw(t,function(a){return yWe(a)?function(o){return dWe(o,a.length===1?a[0]:a)}:a}):t=[vWe];var r=-1;t=Bw(t,mWe(pWe));var i=fWe(e,function(a,o,s){var l=Bw(t,function(d){return d(a)});return{criteria:l,index:++r,value:a}});return hWe(i,function(a,o){return gWe(a,o,n)})}var TWe=bWe,kWe=D4,SWe=TWe,AWe=r0,fF=ZJ,DWe=AWe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&fF(e,t[0],t[1])?t=[]:n>2&&fF(t[0],t[1],t[2])&&(t=[t[0]]),SWe(e,kWe(t,1),[])}),wWe=DWe;const bX=Nt(wWe),EWe=Ln(ji,"/api/user-session");function TX({appPid:e,sourceAppPid:t,loginAppPid:n,autoFetch:r=!0,baseUrl:i="/"}={}){const a=Xg(),o=mn(()=>Ul({baseURL:Ln(i,EWe)},{lazy:!0,lazyTime:500}),[i]),s=xt(async()=>{const{data:v}=await o.get("",{params:{visitorId:a,appPid:e}});return v}),l=ea({loaded:!1,loadingId:null}),d=b8e(s,{manual:!r,onFinally(){l.loaded=!0},refreshDeps:[e,i]}),u=async v=>{var k,C,S;const g=q2(v,["userDid","visitorId","passportId"]);try{l.loadingId=v.id;const{data:I}=await o.post("login",{...g,appPid:n});return I}catch(I){const L=I.response?((C=(k=I.response)==null?void 0:k.data)==null?void 0:C.error)||((S=I.response)==null?void 0:S.data):I.message;throw wi.error(L),console.error("Quick login error",I),I}finally{l.loadingId=null}},p=mn(()=>{if(!d.data)return[];const v=new Date().getTime(),g=d.data.filter(C=>t!==null?!0:C.appPid===e),k=bX(g,C=>v-new Date(C.updatedAt).getTime());return jGe(k,C=>[C.userDid].join("_"))},[d.data,t,e]),h=mn(()=>p.data&&p.data.length>0,[p==null?void 0:p.data]);return{loadingId:l.loadingId,userSessions:p,quickLoginEnabled:h,loginUserSession:u,loading:d.loading,loaded:d.loaded,refresh:d.refreshAsync}}const kv="did-connect",hF="quick-connect";function A_({mode:e,hideCloseButton:t,...n}){var le;const r=ea({showTab:kv}),{connectState:i,blocklet:a}=zc(),{extraContent:o,onSuccess:s,action:l,onClose:d,options:u}=n,p=mn(()=>(i==null?void 0:i.sourceAppPid)||aW(),[i==null?void 0:i.sourceAppPid]),{quickLoginEnabled:h,loading:v,userSessions:g,loginUserSession:k,refresh:C}=TX({appPid:p,loginAppPid:a==null?void 0:a.appPid,sourceAppPid:i==null?void 0:i.sourceAppPid,autoFetch:["login"].includes(l)}),S=mn(()=>{var Q;return((Q=n==null?void 0:n.messages)==null?void 0:Q.title)||XUe},[(le=n==null?void 0:n.messages)==null?void 0:le.title]),I=xt(async(...Q)=>{const B=await k(...Q);await s({...B,encrypted:!1},T=>T)});G.useEffect(()=>{(u==null?void 0:u.showQuickConnect)!==!1&&!v&&h&&(r.showTab=hF)},[v,h,u==null?void 0:u.showQuickConnect]);const L=w8e(v,{wait:100}),N=xt(()=>{r.showTab=kv}),q=xt(()=>{r.showTab=hF}),H=mn(()=>r.showTab===kv||!h,[r.showTab,h]),V=mn(()=>{let Q=!0;return(v||L)&&(Q=!1),h||(Q=!1),u.showQuickConnect===!1&&(Q=!1),r.showTab!==kv&&(Q=!1),Q},[h,r.showTab,v,L]),X=mn(()=>Y.jsx(vt,{onClick:d,sx:{fontSize:"1.5rem",cursor:"pointer",width:"1.5rem",height:"1.5rem",textAlign:"center",color:zt.textMuted,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:Y.jsx(vt,{component:"span",sx:{display:"block",fontWeight:"lighter",lineHeight:1,transform:"scale(1.3)"},children:"×"})}),[d]);let re=null;return v||L?re=Y.jsx(vX,{}):H?re=Y.jsx(S_,{...n}):re=Y.jsx(d_,{userSessions:g,onLogin:I,onRetry:C,messages:n.messages,onLoginAnother:N}),Y.jsxs(vt,{sx:{display:"flex",flexDirection:"column",gap:1.5,color:zt.textBase,width:"100%"},children:[e==="dialog"?Y.jsxs(vt,{sx:{pb:2,display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:{xs:"none",md:`1px solid ${zt.lineStep}`}},children:[Y.jsxs(xi,{component:"h3",variant:"h6",sx:{display:"flex",alignItems:"center"},children:[V&&Y.jsx(Bs,{size:"small",disabled:i.status!=="created",onClick:q,disableRipple:!0,sx:{fontSize:"0.75em"},children:Y.jsx(Xn,{icon:J9,color:zt.textMuted})}),S]}),!t&&Y.jsx(vt,{sx:{display:{xs:"none",md:"block"}},children:X})]}):Y.jsxs(xi,{component:"h3",variant:"h4",sx:{pt:{xs:1.5,md:3},pb:{xs:0,md:1.5},fontWeight:"bold",display:"flex",alignItems:"center"},children:[V&&Y.jsx(Bs,{size:"small",onClick:q,disabled:i.status!=="created",disableRipple:!0,sx:{fontSize:"0.75em"},children:Y.jsx(Xn,{icon:J9,color:zt.textMuted})}),S]}),re,Y.jsxs(vt,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",pt:1.5,pb:{xs:1.5,md:0},px:{xs:3,md:0},position:{xs:"fixed",md:"static"},top:0,left:0,right:0,backgroundColor:"white",borderBottom:{xs:`1px solid ${zt.lineStep}`,md:"none"}},children:[Y.jsx(n_,{disableSwitchApp:n.disableSwitchApp}),e==="dialog"&&!t&&Y.jsx(vt,{sx:{display:{xs:"block",md:"none"}},children:X})]}),o?Y.jsx(vt,{children:o}):null]})}A_.propTypes={onSuccess:be.func,onClose:be.func,action:be.string.isRequired,messages:be.object,extraContent:be.any,disableSwitchApp:be.bool,mode:be.oneOf(["fullScreen","dialog","normal"]),options:be.object,hideCloseButton:be.bool};A_.defaultProps={onSuccess:sr,onClose:sr,mode:"normal",extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!1};function D_(e){const{checkFn:t,extraParams:n,blocklet:r,action:i,locale:a,lostPassportUrl:o}=e;if(typeof t!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const[s,l]=G.useState(300),d=G.useRef(null),u=s0(d);return G.useEffect(()=>{u!=null&&u.height&&u.height>s&&l(u.height)},[u==null?void 0:u.height,s]),Y.jsx(vt,{sx:{position:"relative",width:"100%",height:"100%",display:"flex",alignItems:"center",lineHeight:1.2,fontFamily:"Lato",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:Y.jsx(e_,{blocklet:r,action:i,locale:a,extraParams:n,lostPassportUrl:o,children:Y.jsx(vt,{sx:{height:s,overflow:"hidden",transition:"height 0.2s ease"},children:Y.jsx(vt,{ref:d,children:Y.jsx(A_,{...e})})})})})}D_.propTypes={checkFn:be.func.isRequired,extraParams:be.object,blocklet:be.object.isRequired,action:be.string.isRequired,locale:be.string,lostPassportUrl:be.string};D_.defaultProps={extraParams:{},locale:"en",lostPassportUrl:void 0};const CWe=eqe(Mje(rqe(D_))),RWe=G.forwardRef((e,t)=>{const{api:n}=G.useContext(Kf),r={containerEl:null,popup:!0,checkFn:(n==null?void 0:n.get)||sr,onSuccess:()=>{setTimeout(()=>{d()},2e3)},messages:{title:"DID Connect",scan:"Scan QR code to complete this action",confirm:"Confirm on your DID Wallet",success:"Success!"}},i=ea({show:!1,...Tl(r)}),[a,o]=G.useState({}),s=xt(p=>{const{containerEl:h,checkFn:v,popup:g,onSuccess:k,messages:C,...S}=Tl(p);typeof v=="function"&&(i.checkFn=v),typeof k=="function"&&(i.onSuccess=(...I)=>{k(...I),setTimeout(()=>{d()},2e3)}),g!==void 0&&(i.popup=g),C!==void 0&&(i.messages=C),h!==void 0&&(i.containerEl=h),o(S),i.show=!0}),l=xt(()=>{const p=Tl(r);Object.keys(p).forEach(h=>{i[h]=p[h]})}),d=xt(()=>{i.show=!1,l()});G.useImperativeHandle(t,()=>({open:s,close:d}),[s,d]);const u=Y.jsx(CWe,{open:!0,popup:i.popup,messages:i.messages,onClose:d,onSuccess:i.onSuccess,checkFn:i.checkFn,...a});return i.containerEl?Lg.createPortal(u,i.containerEl):i.show&&u});function xWe(){const e=G.useRef(null),t=xt((...o)=>{var s;(s=e.current)==null||s.open(...o)}),n=xt(async(o={},{baseUrl:s,locale:l="en",blocklet:d=globalThis==null?void 0:globalThis.blocklet}={})=>{var C;if(pc(s)){const S=g0(),I=Gf();s=S?I.appUrl:window.location.origin}const{onSuccess:u,onClose:p,onError:h,...v}=o;if(!((C=v==null?void 0:v.extraParams)!=null&&C.provider))throw Eu(h)&&h("Must have extraParams.provider"),new Error("Must have extraParams.provider");v!=null&&v.prefix||(v.prefix=window.location.origin+Ln(d==null?void 0:d.prefix,I6));const g=new URLSearchParams;g.set("params",btoa(encodeURIComponent(JSON.stringify(v)))),g.set("appPid",d==null?void 0:d.appPid),g.set("locale",l);const k=BHe(Ln(s||"/",ji,`/connect?${g.toString()}`));try{const S=await NHe({popup:k});return Eu(u)&&u({...S,encrypted:!1}),{...S,encrypted:!1}}catch(S){throw S.message==="Popup closed"?Eu(p)&&p():Eu(h)&&h(S),S}}),r=xt((...o)=>{var s;(s=e.current)==null||s.close(...o)}),i=mn(()=>Y.jsx(RWe,{ref:e})),a=mn(()=>({open:t,close:r,openPopup:n}));return{connectHolder:i,connectApi:a}}const Qr={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")},IWe={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-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:"Bind DID Wallet",scan:"Scan following qrcode with DID Wallet to bind wallet",confirm:"Select passport in your DID Wallet",success:"Passport and session updated"},zh:{title:"绑定 DID 钱包",scan:"请使用 DID 钱包扫码下面的二维码以绑定 DID 钱包",confirm:"在 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:"找回通行证"}}};var FR={exports:{}};const _We="2.0.0",kX=256,LWe=Number.MAX_SAFE_INTEGER||9007199254740991,PWe=16,$We=kX-6,BWe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var PT={MAX_LENGTH:kX,MAX_SAFE_COMPONENT_LENGTH:PWe,MAX_SAFE_BUILD_LENGTH:$We,MAX_SAFE_INTEGER:LWe,RELEASE_TYPES:BWe,SEMVER_SPEC_VERSION:_We,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Nw={};const NWe=typeof Kt=="object"&&Nw&&Nw.NODE_DEBUG&&/\bsemver\b/i.test(Nw.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var $T=NWe;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=PT,a=$T;t=e.exports={};const o=t.re=[],s=t.safeRe=[],l=t.src=[],d=t.t={};let u=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",i],[p,r]],v=k=>{for(const[C,S]of h)k=k.split(`${C}*`).join(`${C}{0,${S}}`).split(`${C}+`).join(`${C}{1,${S}}`);return k},g=(k,C,S)=>{const I=v(C),L=u++;a(k,L,C),d[k]=L,l[L]=C,o[L]=new RegExp(C,S?"g":void 0),s[L]=new RegExp(I,S?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),g("MAINVERSION",`(${l[d.NUMERICIDENTIFIER]})\\.(${l[d.NUMERICIDENTIFIER]})\\.(${l[d.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${l[d.NUMERICIDENTIFIERLOOSE]})\\.(${l[d.NUMERICIDENTIFIERLOOSE]})\\.(${l[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${l[d.NUMERICIDENTIFIER]}|${l[d.NONNUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${l[d.NUMERICIDENTIFIERLOOSE]}|${l[d.NONNUMERICIDENTIFIER]})`),g("PRERELEASE",`(?:-(${l[d.PRERELEASEIDENTIFIER]}(?:\\.${l[d.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${l[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[d.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${p}+`),g("BUILD",`(?:\\+(${l[d.BUILDIDENTIFIER]}(?:\\.${l[d.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${l[d.MAINVERSION]}${l[d.PRERELEASE]}?${l[d.BUILD]}?`),g("FULL",`^${l[d.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${l[d.MAINVERSIONLOOSE]}${l[d.PRERELEASELOOSE]}?${l[d.BUILD]}?`),g("LOOSE",`^${l[d.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${l[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${l[d.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${l[d.XRANGEIDENTIFIER]})(?:\\.(${l[d.XRANGEIDENTIFIER]})(?:\\.(${l[d.XRANGEIDENTIFIER]})(?:${l[d.PRERELEASE]})?${l[d.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${l[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[d.XRANGEIDENTIFIERLOOSE]})(?:${l[d.PRERELEASELOOSE]})?${l[d.BUILD]}?)?)?`),g("XRANGE",`^${l[d.GTLT]}\\s*${l[d.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${l[d.GTLT]}\\s*${l[d.XRANGEPLAINLOOSE]}$`),g("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),g("COERCERTL",l[d.COERCE],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${l[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${l[d.LONETILDE]}${l[d.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${l[d.LONETILDE]}${l[d.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${l[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${l[d.LONECARET]}${l[d.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${l[d.LONECARET]}${l[d.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${l[d.GTLT]}\\s*(${l[d.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${l[d.GTLT]}\\s*(${l[d.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${l[d.GTLT]}\\s*(${l[d.LOOSEPLAIN]}|${l[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${l[d.XRANGEPLAIN]})\\s+-\\s+(${l[d.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${l[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[d.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(FR,FR.exports);var b0=FR.exports;const OWe=Object.freeze({loose:!0}),MWe=Object.freeze({}),FWe=e=>e?typeof e!="object"?OWe:e:MWe;var w_=FWe;const mF=/^[0-9]+$/,SX=(e,t)=>{const n=mF.test(e),r=mF.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},UWe=(e,t)=>SX(t,e);var AX={compareIdentifiers:SX,rcompareIdentifiers:UWe};const Sv=$T,{MAX_LENGTH:gF,MAX_SAFE_INTEGER:Av}=PT,{safeRe:vF,t:yF}=b0,HWe=w_,{compareIdentifiers:Yd}=AX;let jWe=class ms{constructor(t,n){if(n=HWe(n),t instanceof ms){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>gF)throw new TypeError(`version is longer than ${gF} characters`);Sv("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?vF[yF.LOOSE]:vF[yF.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Av||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Av||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Av||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const a=+i;if(a>=0&&a<Av)return a}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Sv("SemVer.compare",this.version,this.options,t),!(t instanceof ms)){if(typeof t=="string"&&t===this.version)return 0;t=new ms(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof ms||(t=new ms(t,this.options)),Yd(this.major,t.major)||Yd(this.minor,t.minor)||Yd(this.patch,t.patch)}comparePre(t){if(t instanceof ms||(t=new ms(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(Sv("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 Yd(r,i)}while(++n)}compareBuild(t){t instanceof ms||(t=new ms(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(Sv("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 Yd(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]),Yd(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 ra=jWe;const bF=ra,qWe=(e,t,n=!1)=>{if(e instanceof bF)return e;try{return new bF(e,t)}catch(r){if(!n)return null;throw r}};var Yf=qWe;const VWe=Yf,zWe=(e,t)=>{const n=VWe(e,t);return n?n.version:null};var JWe=zWe;const GWe=Yf,WWe=(e,t)=>{const n=GWe(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var KWe=WWe;const TF=ra,YWe=(e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new TF(e instanceof TF?e.version:e,n).inc(t,r,i).version}catch{return null}};var ZWe=YWe;const kF=Yf,XWe=(e,t)=>{const n=kF(e,null,!0),r=kF(t,null,!0),i=n.compare(r);if(i===0)return null;const a=i>0,o=a?n:r,s=a?r:n,l=!!o.prerelease.length;if(!!s.prerelease.length&&!l)return!s.patch&&!s.minor?"major":o.patch?"patch":o.minor?"minor":"major";const u=l?"pre":"";return n.major!==r.major?u+"major":n.minor!==r.minor?u+"minor":n.patch!==r.patch?u+"patch":"prerelease"};var QWe=XWe;const eKe=ra,tKe=(e,t)=>new eKe(e,t).major;var nKe=tKe;const rKe=ra,iKe=(e,t)=>new rKe(e,t).minor;var aKe=iKe;const oKe=ra,sKe=(e,t)=>new oKe(e,t).patch;var lKe=sKe;const cKe=Yf,uKe=(e,t)=>{const n=cKe(e,t);return n&&n.prerelease.length?n.prerelease:null};var dKe=uKe;const SF=ra,pKe=(e,t,n)=>new SF(e,n).compare(new SF(t,n));var ss=pKe;const fKe=ss,hKe=(e,t,n)=>fKe(t,e,n);var mKe=hKe;const gKe=ss,vKe=(e,t)=>gKe(e,t,!0);var yKe=vKe;const AF=ra,bKe=(e,t,n)=>{const r=new AF(e,n),i=new AF(t,n);return r.compare(i)||r.compareBuild(i)};var E_=bKe;const TKe=E_,kKe=(e,t)=>e.sort((n,r)=>TKe(n,r,t));var SKe=kKe;const AKe=E_,DKe=(e,t)=>e.sort((n,r)=>AKe(r,n,t));var wKe=DKe;const EKe=ss,CKe=(e,t,n)=>EKe(e,t,n)>0;var BT=CKe;const RKe=ss,xKe=(e,t,n)=>RKe(e,t,n)<0;var C_=xKe;const IKe=ss,_Ke=(e,t,n)=>IKe(e,t,n)===0;var DX=_Ke;const LKe=ss,PKe=(e,t,n)=>LKe(e,t,n)!==0;var wX=PKe;const $Ke=ss,BKe=(e,t,n)=>$Ke(e,t,n)>=0;var R_=BKe;const NKe=ss,OKe=(e,t,n)=>NKe(e,t,n)<=0;var x_=OKe;const MKe=DX,FKe=wX,UKe=BT,HKe=R_,jKe=C_,qKe=x_,VKe=(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 MKe(e,n,r);case"!=":return FKe(e,n,r);case">":return UKe(e,n,r);case">=":return HKe(e,n,r);case"<":return jKe(e,n,r);case"<=":return qKe(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var EX=VKe;const zKe=ra,JKe=Yf,{safeRe:Dv,t:wv}=b0,GKe=(e,t)=>{if(e instanceof zKe)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(Dv[wv.COERCE]);else{let r;for(;(r=Dv[wv.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),Dv[wv.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;Dv[wv.COERCERTL].lastIndex=-1}return n===null?null:JKe(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var WKe=GKe,Ow,DF;function KKe(){return DF||(DF=1,Ow=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),Ow}var YKe=jn;jn.Node=td;jn.create=jn;function jn(e){var t=this;if(t instanceof jn||(t=new jn),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}jn.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};jn.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++}};jn.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++}};jn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)XKe(this,arguments[e]);return this.length};jn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)QKe(this,arguments[e]);return this.length};jn.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}};jn.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}};jn.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};jn.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};jn.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};jn.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};jn.prototype.map=function(e,t){t=t||this;for(var n=new jn,r=this.head;r!==null;)n.push(e.call(t,r.value,this)),r=r.next;return n};jn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new jn,r=this.tail;r!==null;)n.push(e.call(t,r.value,this)),r=r.prev;return n};jn.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};jn.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};jn.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};jn.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};jn.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 jn;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};jn.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 jn;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};jn.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=ZKe(this,i,n[r]);return a};jn.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 ZKe(e,t,n){var r=t===e.head?new td(n,null,t,e):new td(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function XKe(e,t){e.tail=new td(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function QKe(e,t){e.head=new td(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function td(e,t,n,r){if(!(this instanceof td))return new td(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{KKe()(jn)}catch{}const eYe=YKe,yu=Symbol("max"),cl=Symbol("length"),Zd=Symbol("lengthCalculator"),Lm=Symbol("allowStale"),Iu=Symbol("maxAge"),sl=Symbol("dispose"),wF=Symbol("noDisposeOnSet"),li=Symbol("lruList"),Jo=Symbol("cache"),CX=Symbol("updateAgeOnGet"),Mw=()=>1;class tYe{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[yu]=t.max||1/0;const n=t.length||Mw;if(this[Zd]=typeof n!="function"?Mw:n,this[Lm]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Iu]=t.maxAge||0,this[sl]=t.dispose,this[wF]=t.noDisposeOnSet||!1,this[CX]=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[yu]=t||1/0,Vh(this)}get max(){return this[yu]}set allowStale(t){this[Lm]=!!t}get allowStale(){return this[Lm]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Iu]=t,Vh(this)}get maxAge(){return this[Iu]}set lengthCalculator(t){typeof t!="function"&&(t=Mw),t!==this[Zd]&&(this[Zd]=t,this[cl]=0,this[li].forEach(n=>{n.length=this[Zd](n.value,n.key),this[cl]+=n.length})),Vh(this)}get lengthCalculator(){return this[Zd]}get length(){return this[cl]}get itemCount(){return this[li].length}rforEach(t,n){n=n||this;for(let r=this[li].tail;r!==null;){const i=r.prev;EF(this,t,r,n),r=i}}forEach(t,n){n=n||this;for(let r=this[li].head;r!==null;){const i=r.next;EF(this,t,r,n),r=i}}keys(){return this[li].toArray().map(t=>t.key)}values(){return this[li].toArray().map(t=>t.value)}reset(){this[sl]&&this[li]&&this[li].length&&this[li].forEach(t=>this[sl](t.key,t.value)),this[Jo]=new Map,this[li]=new eYe,this[cl]=0}dump(){return this[li].map(t=>Kb(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[li]}set(t,n,r){if(r=r||this[Iu],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const i=r?Date.now():0,a=this[Zd](n,t);if(this[Jo].has(t)){if(a>this[yu])return Fp(this,this[Jo].get(t)),!1;const l=this[Jo].get(t).value;return this[sl]&&(this[wF]||this[sl](t,l.value)),l.now=i,l.maxAge=r,l.value=n,this[cl]+=a-l.length,l.length=a,this.get(t),Vh(this),!0}const o=new nYe(t,n,a,i,r);return o.length>this[yu]?(this[sl]&&this[sl](t,n),!1):(this[cl]+=o.length,this[li].unshift(o),this[Jo].set(t,this[li].head),Vh(this),!0)}has(t){if(!this[Jo].has(t))return!1;const n=this[Jo].get(t).value;return!Kb(this,n)}get(t){return Fw(this,t,!0)}peek(t){return Fw(this,t,!1)}pop(){const t=this[li].tail;return t?(Fp(this,t),t.value):null}del(t){Fp(this,this[Jo].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[Jo].forEach((t,n)=>Fw(this,n,!1))}}const Fw=(e,t,n)=>{const r=e[Jo].get(t);if(r){const i=r.value;if(Kb(e,i)){if(Fp(e,r),!e[Lm])return}else n&&(e[CX]&&(r.value.now=Date.now()),e[li].unshiftNode(r));return i.value}},Kb=(e,t)=>{if(!t||!t.maxAge&&!e[Iu])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Iu]&&n>e[Iu]},Vh=e=>{if(e[cl]>e[yu])for(let t=e[li].tail;e[cl]>e[yu]&&t!==null;){const n=t.prev;Fp(e,t),t=n}},Fp=(e,t)=>{if(t){const n=t.value;e[sl]&&e[sl](n.key,n.value),e[cl]-=n.length,e[Jo].delete(n.key),e[li].removeNode(t)}};class nYe{constructor(t,n,r,i,a){this.key=t,this.value=n,this.length=r,this.now=i,this.maxAge=a||0}}const EF=(e,t,n,r)=>{let i=n.value;Kb(e,i)&&(Fp(e,n),e[Lm]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var rYe=tYe,Uw,CF;function ls(){if(CF)return Uw;CF=1;class e{constructor(c,f){if(f=r(f),c instanceof e)return c.loose===!!f.loose&&c.includePrerelease===!!f.includePrerelease?c:new e(c.raw,f);if(c instanceof i)return this.raw=c.value,this.set=[[c]],this.format(),this;if(this.options=f,this.loose=!!f.loose,this.includePrerelease=!!f.includePrerelease,this.raw=c.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(b=>this.parseRange(b.trim())).filter(b=>b.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const b=this.set[0];if(this.set=this.set.filter(D=>!g(D[0])),this.set.length===0)this.set=[b];else if(this.set.length>1){for(const D of this.set)if(D.length===1&&k(D[0])){this.set=[D];break}}}this.format()}format(){return this.range=this.set.map(c=>c.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(c){const b=((this.options.includePrerelease&&h)|(this.options.loose&&v))+":"+c,D=n.get(b);if(D)return D;const R=this.options.loose,x=R?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];c=c.replace(x,Q(this.options.includePrerelease)),a("hyphen replace",c),c=c.replace(s[l.COMPARATORTRIM],d),a("comparator trim",c),c=c.replace(s[l.TILDETRIM],u),a("tilde trim",c),c=c.replace(s[l.CARETTRIM],p),a("caret trim",c);let w=c.split(" ").map(ne=>S(ne,this.options)).join(" ").split(/\s+/).map(ne=>le(ne,this.options));R&&(w=w.filter(ne=>(a("loose invalid filter",ne,this.options),!!ne.match(s[l.COMPARATORLOOSE])))),a("range list",w);const E=new Map,y=w.map(ne=>new i(ne,this.options));for(const ne of y){if(g(ne))return[ne];E.set(ne.value,ne)}E.size>1&&E.has("")&&E.delete("");const _=[...E.values()];return n.set(b,_),_}intersects(c,f){if(!(c instanceof e))throw new TypeError("a Range is required");return this.set.some(b=>C(b,f)&&c.set.some(D=>C(D,f)&&b.every(R=>D.every(x=>R.intersects(x,f)))))}test(c){if(!c)return!1;if(typeof c=="string")try{c=new o(c,this.options)}catch{return!1}for(let f=0;f<this.set.length;f++)if(B(this.set[f],c,this.options))return!0;return!1}}Uw=e;const t=rYe,n=new t({max:1e3}),r=w_,i=NT(),a=$T,o=ra,{safeRe:s,t:l,comparatorTrimReplace:d,tildeTrimReplace:u,caretTrimReplace:p}=b0,{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:v}=PT,g=T=>T.value==="<0.0.0-0",k=T=>T.value==="",C=(T,c)=>{let f=!0;const b=T.slice();let D=b.pop();for(;f&&b.length;)f=b.every(R=>D.intersects(R,c)),D=b.pop();return f},S=(T,c)=>(a("comp",T,c),T=q(T,c),a("caret",T),T=L(T,c),a("tildes",T),T=V(T,c),a("xrange",T),T=re(T,c),a("stars",T),T),I=T=>!T||T.toLowerCase()==="x"||T==="*",L=(T,c)=>T.trim().split(/\s+/).map(f=>N(f,c)).join(" "),N=(T,c)=>{const f=c.loose?s[l.TILDELOOSE]:s[l.TILDE];return T.replace(f,(b,D,R,x,w)=>{a("tilde",T,b,D,R,x,w);let E;return I(D)?E="":I(R)?E=`>=${D}.0.0 <${+D+1}.0.0-0`:I(x)?E=`>=${D}.${R}.0 <${D}.${+R+1}.0-0`:w?(a("replaceTilde pr",w),E=`>=${D}.${R}.${x}-${w} <${D}.${+R+1}.0-0`):E=`>=${D}.${R}.${x} <${D}.${+R+1}.0-0`,a("tilde return",E),E})},q=(T,c)=>T.trim().split(/\s+/).map(f=>H(f,c)).join(" "),H=(T,c)=>{a("caret",T,c);const f=c.loose?s[l.CARETLOOSE]:s[l.CARET],b=c.includePrerelease?"-0":"";return T.replace(f,(D,R,x,w,E)=>{a("caret",T,D,R,x,w,E);let y;return I(R)?y="":I(x)?y=`>=${R}.0.0${b} <${+R+1}.0.0-0`:I(w)?R==="0"?y=`>=${R}.${x}.0${b} <${R}.${+x+1}.0-0`:y=`>=${R}.${x}.0${b} <${+R+1}.0.0-0`:E?(a("replaceCaret pr",E),R==="0"?x==="0"?y=`>=${R}.${x}.${w}-${E} <${R}.${x}.${+w+1}-0`:y=`>=${R}.${x}.${w}-${E} <${R}.${+x+1}.0-0`:y=`>=${R}.${x}.${w}-${E} <${+R+1}.0.0-0`):(a("no pr"),R==="0"?x==="0"?y=`>=${R}.${x}.${w}${b} <${R}.${x}.${+w+1}-0`:y=`>=${R}.${x}.${w}${b} <${R}.${+x+1}.0-0`:y=`>=${R}.${x}.${w} <${+R+1}.0.0-0`),a("caret return",y),y})},V=(T,c)=>(a("replaceXRanges",T,c),T.split(/\s+/).map(f=>X(f,c)).join(" ")),X=(T,c)=>{T=T.trim();const f=c.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return T.replace(f,(b,D,R,x,w,E)=>{a("xRange",T,b,D,R,x,w,E);const y=I(R),_=y||I(x),ne=_||I(w),M=ne;return D==="="&&M&&(D=""),E=c.includePrerelease?"-0":"",y?D===">"||D==="<"?b="<0.0.0-0":b="*":D&&M?(_&&(x=0),w=0,D===">"?(D=">=",_?(R=+R+1,x=0,w=0):(x=+x+1,w=0)):D==="<="&&(D="<",_?R=+R+1:x=+x+1),D==="<"&&(E="-0"),b=`${D+R}.${x}.${w}${E}`):_?b=`>=${R}.0.0${E} <${+R+1}.0.0-0`:ne&&(b=`>=${R}.${x}.0${E} <${R}.${+x+1}.0-0`),a("xRange return",b),b})},re=(T,c)=>(a("replaceStars",T,c),T.trim().replace(s[l.STAR],"")),le=(T,c)=>(a("replaceGTE0",T,c),T.trim().replace(s[c.includePrerelease?l.GTE0PRE:l.GTE0],"")),Q=T=>(c,f,b,D,R,x,w,E,y,_,ne,M,z)=>(I(b)?f="":I(D)?f=`>=${b}.0.0${T?"-0":""}`:I(R)?f=`>=${b}.${D}.0${T?"-0":""}`:x?f=`>=${f}`:f=`>=${f}${T?"-0":""}`,I(y)?E="":I(_)?E=`<${+y+1}.0.0-0`:I(ne)?E=`<${y}.${+_+1}.0-0`:M?E=`<=${y}.${_}.${ne}-${M}`:T?E=`<${y}.${_}.${+ne+1}-0`:E=`<=${E}`,`${f} ${E}`.trim()),B=(T,c,f)=>{for(let b=0;b<T.length;b++)if(!T[b].test(c))return!1;if(c.prerelease.length&&!f.includePrerelease){for(let b=0;b<T.length;b++)if(a(T[b].semver),T[b].semver!==i.ANY&&T[b].semver.prerelease.length>0){const D=T[b].semver;if(D.major===c.major&&D.minor===c.minor&&D.patch===c.patch)return!0}return!1}return!0};return Uw}var Hw,RF;function NT(){if(RF)return Hw;RF=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(u,p){if(p=n(p),u instanceof t){if(u.loose===!!p.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),o("comparator",u,p),this.options=p,this.loose=!!p.loose,this.parse(u),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(u){const p=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],h=u.match(p);if(!h)throw new TypeError(`Invalid comparator: ${u}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new s(h[2],this.options.loose):this.semver=e}toString(){return this.value}test(u){if(o("Comparator.test",u,this.options.loose),this.semver===e||u===e)return!0;if(typeof u=="string")try{u=new s(u,this.options)}catch{return!1}return a(u,this.operator,this.semver,this.options)}intersects(u,p){if(!(u instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(u.value,p).test(this.value):u.operator===""?u.value===""?!0:new l(this.value,p).test(u.semver):(p=n(p),p.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!p.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||a(this.semver,"<",u.semver,p)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||a(this.semver,">",u.semver,p)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}Hw=t;const n=w_,{safeRe:r,t:i}=b0,a=EX,o=$T,s=ra,l=ls();return Hw}const iYe=ls(),aYe=(e,t,n)=>{try{t=new iYe(t,n)}catch{return!1}return t.test(e)};var OT=aYe;const oYe=ls(),sYe=(e,t)=>new oYe(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var lYe=sYe;const cYe=ra,uYe=ls(),dYe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new uYe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===-1)&&(r=o,i=new cYe(r,n))}),r};var pYe=dYe;const fYe=ra,hYe=ls(),mYe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new hYe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===1)&&(r=o,i=new fYe(r,n))}),r};var gYe=mYe;const jw=ra,vYe=ls(),xF=BT,yYe=(e,t)=>{e=new vYe(e,t);let n=new jw("0.0.0");if(e.test(n)||(n=new jw("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 jw(o.semver.version);switch(o.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!a||xF(s,a))&&(a=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),a&&(!n||xF(n,a))&&(n=a)}return n&&e.test(n)?n:null};var bYe=yYe;const TYe=ls(),kYe=(e,t)=>{try{return new TYe(e,t).range||"*"}catch{return null}};var SYe=kYe;const AYe=ra,RX=NT(),{ANY:DYe}=RX,wYe=ls(),EYe=OT,IF=BT,_F=C_,CYe=x_,RYe=R_,xYe=(e,t,n,r)=>{e=new AYe(e,r),t=new wYe(t,r);let i,a,o,s,l;switch(n){case">":i=IF,a=CYe,o=_F,s=">",l=">=";break;case"<":i=_F,a=RYe,o=IF,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(EYe(e,t,r))return!1;for(let d=0;d<t.set.length;++d){const u=t.set[d];let p=null,h=null;if(u.forEach(v=>{v.semver===DYe&&(v=new RX(">=0.0.0")),p=p||v,h=h||v,i(v.semver,p.semver,r)?p=v:o(v.semver,h.semver,r)&&(h=v)}),p.operator===s||p.operator===l||(!h.operator||h.operator===s)&&a(e,h.semver))return!1;if(h.operator===l&&o(e,h.semver))return!1}return!0};var I_=xYe;const IYe=I_,_Ye=(e,t,n)=>IYe(e,t,">",n);var LYe=_Ye;const PYe=I_,$Ye=(e,t,n)=>PYe(e,t,"<",n);var BYe=$Ye;const LF=ls(),NYe=(e,t,n)=>(e=new LF(e,n),t=new LF(t,n),e.intersects(t,n));var OYe=NYe;const MYe=OT,FYe=ss;var UYe=(e,t,n)=>{const r=[];let i=null,a=null;const o=e.sort((u,p)=>FYe(u,p,n));for(const u of o)MYe(u,t,n)?(a=u,i||(i=u)):(a&&r.push([i,a]),a=null,i=null);i&&r.push([i,null]);const s=[];for(const[u,p]of r)u===p?s.push(u):!p&&u===o[0]?s.push("*"):p?u===o[0]?s.push(`<=${p}`):s.push(`${u} - ${p}`):s.push(`>=${u}`);const l=s.join(" || "),d=typeof t.raw=="string"?t.raw:String(t);return l.length<d.length?l:t};const PF=ls(),__=NT(),{ANY:qw}=__,zh=OT,L_=ss,HYe=(e,t,n={})=>{if(e===t)return!0;e=new PF(e,n),t=new PF(t,n);let r=!1;e:for(const i of e.set){for(const a of t.set){const o=qYe(i,a,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},jYe=[new __(">=0.0.0-0")],$F=[new __(">=0.0.0")],qYe=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===qw){if(t.length===1&&t[0].semver===qw)return!0;n.includePrerelease?e=jYe:e=$F}if(t.length===1&&t[0].semver===qw){if(n.includePrerelease)return!0;t=$F}const r=new Set;let i,a;for(const v of e)v.operator===">"||v.operator===">="?i=BF(i,v,n):v.operator==="<"||v.operator==="<="?a=NF(a,v,n):r.add(v.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 v of r){if(i&&!zh(v,String(i),n)||a&&!zh(v,String(a),n))return null;for(const g of t)if(!zh(v,String(g),n))return!1;return!0}let s,l,d,u,p=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1,h=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1;p&&p.prerelease.length===1&&a.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(const v of t){if(u=u||v.operator===">"||v.operator===">=",d=d||v.operator==="<"||v.operator==="<=",i){if(h&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===h.major&&v.semver.minor===h.minor&&v.semver.patch===h.patch&&(h=!1),v.operator===">"||v.operator===">="){if(s=BF(i,v,n),s===v&&s!==i)return!1}else if(i.operator===">="&&!zh(i.semver,String(v),n))return!1}if(a){if(p&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===p.major&&v.semver.minor===p.minor&&v.semver.patch===p.patch&&(p=!1),v.operator==="<"||v.operator==="<="){if(l=NF(a,v,n),l===v&&l!==a)return!1}else if(a.operator==="<="&&!zh(a.semver,String(v),n))return!1}if(!v.operator&&(a||i)&&o!==0)return!1}return!(i&&d&&!a&&o!==0||a&&u&&!i&&o!==0||h||p)},BF=(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},NF=(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 VYe=HYe;const Vw=b0,OF=PT,zYe=ra,MF=AX,JYe=Yf,GYe=JWe,WYe=KWe,KYe=ZWe,YYe=QWe,ZYe=nKe,XYe=aKe,QYe=lKe,eZe=dKe,tZe=ss,nZe=mKe,rZe=yKe,iZe=E_,aZe=SKe,oZe=wKe,sZe=BT,lZe=C_,cZe=DX,uZe=wX,dZe=R_,pZe=x_,fZe=EX,hZe=WKe,mZe=NT(),gZe=ls(),vZe=OT,yZe=lYe,bZe=pYe,TZe=gYe,kZe=bYe,SZe=SYe,AZe=I_,DZe=LYe,wZe=BYe,EZe=OYe,CZe=UYe,RZe=VYe;var xX={parse:JYe,valid:GYe,clean:WYe,inc:KYe,diff:YYe,major:ZYe,minor:XYe,patch:QYe,prerelease:eZe,compare:tZe,rcompare:nZe,compareLoose:rZe,compareBuild:iZe,sort:aZe,rsort:oZe,gt:sZe,lt:lZe,eq:cZe,neq:uZe,gte:dZe,lte:pZe,cmp:fZe,coerce:hZe,Comparator:mZe,Range:gZe,satisfies:vZe,toComparators:yZe,maxSatisfying:bZe,minSatisfying:TZe,minVersion:kZe,validRange:SZe,outside:AZe,gtr:DZe,ltr:wZe,intersects:EZe,simplifyRange:CZe,subset:RZe,SemVer:zYe,re:Vw.re,src:Vw.src,tokens:Vw.t,SEMVER_SPEC_VERSION:OF.SEMVER_SPEC_VERSION,RELEASE_TYPES:OF.RELEASE_TYPES,compareIdentifiers:MF.compareIdentifiers,rcompareIdentifiers:MF.rcompareIdentifiers};const FF=Nt(xX);async function IX(...e){return new Promise((t,n)=>{Ur(()=>import("./index-0niAcafj.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 xZe=[`${ji}/connect`,`${ji}/login`,`${ji}/invite`,`${ji}/issue-passport`];async function IZe(){const e=(window==null?void 0:window.blocklet)||{},t=window.location.pathname,{componentId:n,CHAIN_TYPE:r="arcblock",appPid:i}=e;if(xZe.includes(t))return null;const a=WY();try{const o=`${window.location.origin}${ji}/api/user/loginByWallet`;return await IX("arcLogin",{target:o,chainType:r,appPid:i,componentId:n,apps:a.map(l=>{let d=l==null?void 0:l.appLogo;return B2(d)||(d=Ln(l.appUrl,d)),{appName:l.appName,appPid:l.appPid,appUrl:l.appUrl,appLogo:d,sourceAppPid:l.sourceAppPid}})})}catch(o){return console.error(o),null}}async function _Ze(){return await IX("arcGetVisitorId")}function LZe({platform:e,version:t}={}){return!!(e==="ios"&&t&&FF.gte(t,"4.15.6")||e==="android"&&t&&FF.gte(t,"4.15.1"))}const{Provider:PZe,Consumer:UF}=Kf,HF={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"};function $Ze(e=YUe,t="ls",n={},r={}){var d;let i="/";(d=globalThis==null?void 0:globalThis.blocklet)!=null&&d.prefix&&(i=globalThis.blocklet.prefix),typeof r=="boolean"&&(r={appendAuthServicePrefix:r,extraParams:{}}),g7e(r,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:ZUe});const a=EN(e,t,n),o=EN(r.refreshTokenStorageKey,"ls");function s(u){var ye,Oe;const{connectApi:p,connectHolder:h}=xWe(),v=l0(),g=ea({action:u.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:"",get locale(){return u.locale||k.currentLocale||DY()}}),k=ea({extraParams:{},options:{},currentLocale:u.locale,allowWallet:void 0,openMode:"window",get autoConnect(){return typeof u.autoConnect=="boolean"?u.autoConnect:!!u.autoLogin},get prefix(){return r.appendAuthServicePrefix||u.appendAuthServicePrefix?Ln(ji,u.prefix):u.prefix}}),C=mn(()=>new y7e,[]),S=xt(($e,Ee,Pe)=>{const Ie={login:[Qr.LOGIN,Qr.CANCEL_LOGIN],"bind-wallet":[Qr.BIND_WALLET,Qr.CANCEL_BIND_WALLET],"switch-passport":[Qr.SWITCH_PASSPORT,Qr.CANCEL_SWITCH_PASSPORT],"switch-profile":[Qr.SWITCH_PROFILE,Qr.CANCEL_SWITCH_PROFILE],"switch-did":[Qr.LOGIN,Qr.CANCEL_LOGIN]};if(!Object.keys(Ie).includes($e))return;const Ue=async(...Xe)=>{Eu(Ee)&&await Ee(...Xe),C.emit($e,...Xe)};C.once(Ie[$e][0],Ue),C.once(Ie[$e][1],async(...Xe)=>{Eu(Ue)&&C.off(Ie[$e][0],Ue),Eu(Pe)&&await Pe(...Xe),C.emit(`cancel-${$e}`,...Xe)})}),I=PLe(g.initialized,($e,Ee)=>$e!==Ee||$e===!0&&Ee===!0);af(()=>{if(g.initialized){const $e=!I;C.emit("change",{user:Tl(g.user),isFirst:$e})}},[g.user,g.initialized,C]);const{handleRefreshUser:L,handleRefreshToken:N,renewToken:q,clearSession:H,handleLoginResult:V,decrypt:X,service:re,getSessionToken:le,getRefreshToken:Q,setRefreshToken:B,setSessionToken:T}=SHe({state:g,pageState:k,sessionTokenStorage:a,refreshTokenStorage:o,serviceHost:u.serviceHost,apiOptions:u.apiOptions,lazyRefreshToken:u.lazyRefreshToken}),c=xt(($e,Ee={},Pe={})=>{const Ie=$e;typeof Ie=="object"&&($e=Ie.onSuccess,Ee=Ie.extraParams||{},Pe=Ie.options||{},Pe.origin=Ie.origin||""),(!g.user||Pe.origin==="switch-did")&&(Pe.origin==="switch-did"?S("switch-did",$e,Ie==null?void 0:Ie.onCancel):S("login",$e,Ie==null?void 0:Ie.onCancel),k.extraParams=Ee,k.options=Pe,g.action="login",Ae())}),f=xt(async($e,Ee={},Pe={})=>{var J;if((Ee==null?void 0:Ee.openMode)==="redirect"){const O=(Ee==null?void 0:Ee.redirect)||"/",F=new URL(`${ji}/login`,window.location.origin);F.searchParams.set("redirect",O),window.location.href=F.href;return}let Ie=Ee==null?void 0:Ee.sourceAppPid;pc(Ie)&&$&&(Ie=Z.appPid),await kG(()=>g.initialized);const Ue=$e;typeof Ue=="object"&&($e=Ue.onSuccess,Ee=Ue.extraParams||{},Pe=Ue.options||{}),typeof Pe=="string"&&(Pe={origin:Pe});const Xe=Tl(Ee);k.allowWallet=void 0;const Me=(Xe==null?void 0:Xe.openMode)||((J=u==null?void 0:u.extraParams)==null?void 0:J.openMode);pc(Me)?k.openMode="window":k.openMode=Me,Ie?(g.baseUrl=globalThis.blocklet.appUrl,c($e,Xe,Pe)):(g.baseUrl="",c($e,Xe,Pe))}),b=Xg(),D=xt(async $e=>{const Ee=Ln(ji,"/api/user/logout");await fetch(Ee,{method:"POST",body:JSON.stringify({visitorId:b}),headers:{"Content-Type":"application/json"}}),H(),me(),g.user=null,g.provider="",g.walletOS="",g.error="",g.loading=!1,C.emit("logout"),typeof $e=="function"&&$e()}),{userSessions:R,refresh:x,loaded:w,loginUserSession:E}=TX({appPid:aW(g.user),loginAppPid:(ye=globalThis==null?void 0:globalThis.blocklet)==null?void 0:ye.appPid,sourceAppPid:(Oe=g==null?void 0:g.user)==null?void 0:Oe.sourceAppPid,autoFetch:!1}),y=xt(($e,Ee={},Pe={})=>{const Ie=$e;typeof Ie=="object"&&($e=Ie.onSuccess,Ee=Ie.extraParams||{},Pe=Ie.options||{}),typeof Pe=="string"&&(Pe={origin:Pe}),Pe!=null&&Pe.userSession?E(Pe.userSession).then(Ue=>{S("switch-did",$e),V({...Ue,encrypted:!1}),L(!0).then(()=>{C.emit(Qr.LOGIN,Ue,X)})}):(pc(Ee==null?void 0:Ee.forceConnected)&&(Ee.forceConnected=!1),f($e,Ee,{...Pe,origin:"switch-did"}))}),_=xt(($e,Ee={})=>{const Pe=$e;typeof Pe=="object"&&($e=Pe.onSuccess,Ee=Pe.extraParams||{}),g.user&&(S("switch-profile",$e,Pe==null?void 0:Pe.onCancel),k.extraParams=Ee,k.options={},g.action="switch-profile",Ae())}),ne=xt(($e,Ee={})=>{const Pe=$e;typeof Pe=="object"&&($e=Pe.onSuccess,Ee=Pe.extraParams||{}),g.user&&(S("switch-passport",$e,Pe==null?void 0:Pe.onCancel),k.extraParams=Ee,k.options={},g.action="switch-passport",Ae())}),M=xt(($e,Ee={})=>{const Pe=$e;typeof Pe=="object"&&($e=Pe.onSuccess),g.user&&(S("bind-wallet",$e,Pe==null?void 0:Pe.onCancel),k.extraParams=Ee,k.options={},g.action="bind-wallet",Ae())}),z=xt($e=>{k.extraParams={},k.options={},V($e),g.loading=!1,L(!0).then(()=>{g.action==="login"?C.emit(Qr.LOGIN,$e,X):g.action==="switch-passport"&&C.emit(Qr.SWITCH_PASSPORT,$e,X)})}),ie=xt($e=>{k.extraParams={},k.options={},V($e),g.loading=!1,L(!0).then(()=>{C.emit(Qr.BIND_WALLET,$e,X)})}),ce=xt($e=>{k.extraParams={},k.options={},g.loading=!1,L(!0).then(()=>{C.emit(Qr.SWITCH_PROFILE,$e,X)})}),he=xt($e=>{k.extraParams={},k.options={},me();const Ee={login:Qr.CANCEL_LOGIN,"switch-profile":Qr.CANCEL_SWITCH_PROFILE,"switch-passport":Qr.CANCEL_SWITCH_PASSPORT,"bind-wallet":Qr.CANCEL_BIND_WALLET};C.emit(Ee[$e])}),De=xt(($e,...Ee)=>{try{oe[$e](...Ee)}catch(Pe){console.error("Catch error in onSuccess",{action:$e,args:Ee,err:Pe})}}),{federatedMaster:j,federatedEnabled:$,master:Z}=yHe({locale:g.locale,decrypt:X,login:c,logout:D,handleLoginResult:V,handleRefreshUser:L,setRefreshToken:B,setSessionToken:T}),{checkMatch:W}=$He({protectedRoutes:u.protectedRoutes||[]});o0(async()=>{const $e=$r.get("connected_app"),Ee=v6();if(u.autoDisconnect&&$e&&Ee&&$e!==Ee){H(),g.initialized=!0,k.autoConnect?Ae():me();return}const Pe=le();let Ie="web";if(v.mobile.apple.device?Ie="ios":v.mobile.android.device&&(Ie="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&v.wallet&&LZe({version:v.walletVersion,platform:Ie})){if(!b){const Xe=await _Ze();yJ(Xe)}if(!Pe)try{g.loading=!0;const Xe=await IZe();if(Xe){g.initialized=!0,z({sessionToken:Xe.sessionToken,refreshToken:Xe.refreshToken,encrypted:!1});return}}finally{g.loading=!1}}if(Pe){await L(!0),g.initialized=!0;return}if(typeof window<"u"){const Xe=new URL(window.location.href),Me=Xe.searchParams.get("loginToken");if(Me){V({loginToken:Me,encrypted:!1}),Xe.searchParams.delete("loginToken"),window.history.replaceState({},window.title,Xe.href);return}}if(Q()){await N(!0),g.initialized=!0;return}try{}catch(Xe){console.error("Federated: tryAutoLogin failed",Xe)}finally{g.initialized=!0}k.autoConnect?Ae():me()});const te=K2(R),ge=xt(async()=>(w||(await x(),await bT()),te.current)),fe={api:re,events:C,storage:a,connectApi:p,session:{...g,loading:k.autoConnect&&!g.user||g.loading,login:f,logout:D,switchDid:y,switchProfile:_,switchPassport:ne,bindWallet:M,refresh:L,updateConnectedInfo:kY,federatedMaster:j,useOAuth:L6,OAuthProvider:Fb,OAuthConsumer:eHe,OAuthContext:_6,useDid:HY,WrapDid:JY,getUserSessions:ge}},oe={login:z,"switch-profile":ce,"switch-passport":z,"bind-wallet":ie},me=xt(()=>{g.open=!1,p.close()}),Ae=async()=>{var Ue,Xe,Me,J,O;const $e=IWe[g.action],Ee=$e[g.locale]||$e.en,Pe={...r.extraParams,...u.extraParams,...k.extraParams,previousUserDid:(Ue=g==null?void 0:g.user)==null?void 0:Ue.did,email:(Xe=g==null?void 0:g.user)==null?void 0:Xe.email};Pe==null||delete Pe.openMode;const Ie={action:g.action,locale:g.locale,extraParams:Pe,options:{...u.options||{},...k.options},checkTimeout:u.timeout,webWalletUrl:u.webWalletUrl,messages:Ee,useSocket:u.useSocket,...XC(u,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...q2(k.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:k.prefix,allowWallet:pc(k.allowWallet)?g.action!=="login"||(((Me=globalThis.blocklet)==null?void 0:Me.DID_CONNECT_ALLOW_WALLET)||"1")==="1":k.allowWallet,onSuccess(...F){De(g.action,...F),setTimeout(()=>{g.open=!1},2e3)},onClose(...F){he(g.action,...F)},onError(F){console.error(F)}};if(g.open=!0,["login"].includes(g.action)&&k.openMode==="window"&&!v.wallet)try{const F={...Ie,baseUrl:window.location.origin};B2(k.prefix)||(F.prefix=Ln(window.location.origin,u.serviceHost==="/"?"":u.serviceHost,k.prefix)),(J=F.extraParams)!=null&&J.provider||(F.extraParams.provider=((O=g==null?void 0:g.user)==null?void 0:O.provider)||"wallet"),await p.openPopup(F,{locale:g.locale})}catch(F){F.message==="Timeout"?wi.error(HF[g.locale]||HF.en):console.error(F)}else p.open(Ie)};return W()&&!g.initialized?Y.jsx(Xp,{children:Y.jsx(jg,{})}):Y.jsx(PZe,{value:fe,children:Y.jsxs(Fb,{locale:g.locale,onSwitchPassport:({sessionToken:$e,refreshToken:Ee})=>{z({sessionToken:$e,refreshToken:Ee,encrypted:!1})},onBindOAuth:()=>{L()},children:[!g.open&&typeof u.children=="function"?u.children(g):u.children,h,r.rolling&&Y.jsx(wY,{callback:()=>q()})]})})}s.propTypes={children:be.any.isRequired,serviceHost:be.string,action:be.string,prefix:be.string,appendAuthServicePrefix:be.bool,locale:be.string,timeout:be.number,autoConnect:be.bool,autoDisconnect:be.bool,useSocket:be.bool,extraParams:be.object,options:be.object,webWalletUrl:be.string,protectedRoutes:be.arrayOf(be.string),apiOptions:be.object,lazyRefreshToken:be.bool},s.defaultProps={serviceHost:i,locale:"",action:"login",prefix:I6,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:jY*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function l(u){return function(h){return Y.jsx(yb,{children:Y.jsx(UF,{children:v=>Y.jsx(u,{...h,...v})})})}}return{SessionProvider:u=>Y.jsx(yb,{children:Y.jsx(s,{...u})}),SessionConsumer:UF,SessionContext:Kf,withSession:l}}let _X="/";window.env&&(_X=window.env.groupPathPrefix||window.env.pathPrefix||"/");function LX(e,t){return[void 0,null,""].includes(e)?t:e/86400}var bH,TH,kH;const BZe=LX((kH=(TH=(bH=window.blocklet)==null?void 0:bH.settings)==null?void 0:TH.session)==null?void 0:kH.cacheTtl,1/144);var SH,AH,DH;const NZe=LX((DH=(AH=(SH=window.blocklet)==null?void 0:SH.settings)==null?void 0:AH.session)==null?void 0:DH.ttl,7),{SessionProvider:OZe,SessionContext:MZe,SessionConsumer:Sgt,withSession:Agt}=$Ze("login_token","cookie",{returnDomain:!1,path:_X,expireInDays:BZe},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays:NZe});function PX(){return G.useContext(MZe)}function FZe({children:e}){const t=ez({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return Y.jsx(FV,{injectFirst:!0,children:Y.jsx(QV,{theme:t,children:Y.jsx(MV,{theme:t,children:Y.jsx(c4,{translations:mIe,fallbackLocale:"en",children:Y.jsx(yb,{children:Y.jsx($_,{theme:t,children:e})})})})})})}const P_=new URL(window.location.href),$X=P_.searchParams.get("mode")||"",UZe=P_.pathname.includes("embed")&&$X==="dialog",HZe=P_.pathname.includes("embed")&&$X!=="dialog";function $_({children:e,theme:t}){var i,a,o;const{locale:n}=N2(),r=Fc`
631
+ `),()=>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=Ss.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=Wb.request(e,this.endpointURL(),t,n,this.timeout,o,s=>{this.reqs.delete(a),this.isActive()&&i(s)}),this.reqs.add(a)}},rm=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=rm.syncState(this.state,r,i,a),this.pendingDiffs.forEach(s=>{this.state=rm.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=rm.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 rm.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 d=i[s];if(d){let u=l.metas.map(g=>g.phx_ref),p=d.metas.map(g=>g.phx_ref),h=l.metas.filter(g=>p.indexOf(g.phx_ref)<0),v=d.metas.filter(g=>u.indexOf(g.phx_ref)<0);h.length>0&&(a[s]=l,a[s].metas=h),v.length>0&&(o[s]=this.clone(d),o[s].metas=v)}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 d=e[o].metas.map(p=>p.phx_ref),u=l.metas.filter(p=>d.indexOf(p.phx_ref)<0);e[o].metas.unshift(...u)}n(o,l,s)}),this.map(a,(o,s)=>{let l=e[o];if(!l)return;let d=s.metas.map(u=>u.phx_ref);l.metas=l.metas.filter(u=>d.indexOf(u.phx_ref)<0),r(o,l,s),l.metas.length===0&&delete e[o]}),e}static list(e,t){return t||(t=function(n,r){return r}),this.map(e,(n,r)=>t(n,r))}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static clone(e){return JSON.parse(JSON.stringify(e))}},im={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),d=0;l.setUint8(d++,this.KINDS.push),l.setUint8(d++,t.length),l.setUint8(d++,n.length),l.setUint8(d++,i.length),l.setUint8(d++,r.length),Array.from(t,p=>l.setUint8(d++,p.charCodeAt(0))),Array.from(n,p=>l.setUint8(d++,p.charCodeAt(0))),Array.from(i,p=>l.setUint8(d++,p.charCodeAt(0))),Array.from(r,p=>l.setUint8(d++,p.charCodeAt(0)));var u=new Uint8Array(s.byteLength+a.byteLength);return u.set(new Uint8Array(s),0),u.set(new Uint8Array(a),s.byteLength),u.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(e.slice(o,o+r));o=o+r;let l=n.decode(e.slice(o,o+i));o=o+i;let d=n.decode(e.slice(o,o+a));o=o+a;let u=e.slice(o,e.byteLength);return{join_ref:s,ref:null,topic:l,event:d,payload:u}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(s,s+r));s=s+r;let d=n.decode(e.slice(s,s+i));s=s+i;let u=n.decode(e.slice(s,s+a));s=s+a;let p=n.decode(e.slice(s,s+o));s=s+o;let h=e.slice(s,e.byteLength),v={status:p,response:h};return{join_ref:l,ref:d,topic:u,event:ol.reply,payload:v}},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}}},ZJe=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=n.timeout||WJe,this.transport=n.transport||_m.WebSocket||Ry,this.establishedConnections=0,this.defaultEncoder=im.encode.bind(im),this.defaultDecoder=im.decode.bind(im),this.closeWasClean=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Ry?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;nm&&nm.addEventListener&&(nm.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),nm.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=Im(n.params||{}),this.endPoint=`${t}/${OR.websocket}`,this.vsn=n.vsn||GJe,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new fX(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Ry}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=Wb.appendParams(Wb.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=Im(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(),KJe,"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===Ss.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(ol.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Ss.connecting:return"connecting";case Ss.open:return"open";case Ss.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 hX(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 d=this.channels[l];d.isMember(r,i,a,s)&&d.trigger(i,a,o,s)}for(let l=0;l<this.stateChangeCallbacks.message.length;l++){let[,d]=this.stateChangeCallbacks.message[l];d(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())}},MR={exports:{}},_w,oF;function XJe(){if(oF)return _w;oF=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;_w=function(u,p){p=p||{};var h=typeof u;if(h==="string"&&u.length>0)return o(u);if(h==="number"&&isFinite(u))return p.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function o(u){if(u=String(u),!(u.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(p){var h=parseFloat(p[1]),v=(p[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return h*a;case"weeks":case"week":case"w":return h*i;case"days":case"day":case"d":return h*r;case"hours":case"hour":case"hrs":case"hr":case"h":return h*n;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function s(u){var p=Math.abs(u);return p>=r?Math.round(u/r)+"d":p>=n?Math.round(u/n)+"h":p>=t?Math.round(u/t)+"m":p>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var p=Math.abs(u);return p>=r?d(u,p,r,"day"):p>=n?d(u,p,n,"hour"):p>=t?d(u,p,t,"minute"):p>=e?d(u,p,e,"second"):u+" ms"}function d(u,p,h,v){var g=p>=h*1.5;return Math.round(u/h)+" "+v+(g?"s":"")}return _w}function QJe(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=o,n.humanize=XJe(),n.destroy=d,Object.keys(e).forEach(u=>{n[u]=e[u]}),n.names=[],n.skips=[],n.formatters={};function t(u){let p=0;for(let h=0;h<u.length;h++)p=(p<<5)-p+u.charCodeAt(h),p|=0;return n.colors[Math.abs(p)%n.colors.length]}n.selectColor=t;function n(u){let p,h=null,v,g;function k(...C){if(!k.enabled)return;const S=k,I=Number(new Date),L=I-(p||I);S.diff=L,S.prev=p,S.curr=I,p=I,C[0]=n.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let N=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(H,V)=>{if(H==="%%")return"%";N++;const X=n.formatters[V];if(typeof X=="function"){const re=C[N];H=X.call(S,re),C.splice(N,1),N--}return H}),n.formatArgs.call(S,C),(S.log||n.log).apply(S,C)}return k.namespace=u,k.useColors=n.useColors(),k.color=n.selectColor(u),k.extend=r,k.destroy=n.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(v!==n.namespaces&&(v=n.namespaces,g=n.enabled(u)),g),set:C=>{h=C}}),typeof n.init=="function"&&n.init(k),k}function r(u,p){const h=n(this.namespace+(typeof p>"u"?":":p)+u);return h.log=this.log,h}function i(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let p;const h=(typeof u=="string"?u:"").split(/[\s,]+/),v=h.length;for(p=0;p<v;p++)h[p]&&(u=h[p].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")))}function a(){const u=[...n.names.map(s),...n.skips.map(s).map(p=>"-"+p)].join(",");return n.enable(""),u}function o(u){if(u[u.length-1]==="*")return!0;let p,h;for(p=0,h=n.skips.length;p<h;p++)if(n.skips[p].test(u))return!1;for(p=0,h=n.names.length;p<h;p++)if(n.names[p].test(u))return!0;return!1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}function d(){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 eGe=QJe;(function(e,t){var n={};t.formatArgs=i,t.save=a,t.load=o,t.useColors=r,t.storage=s(),t.destroy=(()=>{let d=!1;return()=>{d||(d=!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(d){if(d[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+d[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;d.splice(1,0,u,"color: inherit");let p=0,h=0;d[0].replace(/%[a-zA-Z%]/g,v=>{v!=="%%"&&(p++,v==="%c"&&(h=p))}),d.splice(h,0,u)}t.log=console.debug||console.log||(()=>{});function a(d){try{d?t.storage.setItem("debug",d):t.storage.removeItem("debug")}catch{}}function o(){let d;try{d=t.storage.getItem("debug")}catch{}return!d&&typeof Kt<"u"&&"env"in Kt&&(d=n.DEBUG),d}function s(){try{return localStorage}catch{}}e.exports=eGe(t);const{formatters:l}=e.exports;l.j=function(d){try{return JSON.stringify(d)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(MR,MR.exports);var v_=MR.exports;const tGe=v_;var nGe=(e,t=!1)=>{const n=tGe(["@arcblock/ws",e].join(":"));return{debug:n,warn:n,info:n,trace:t?n:console.error,error:t?n:console.error}};const rGe=nGe;var iGe=(e,t,n)=>class extends e{constructor(i,a={}){super(i,{transport:n,...a}),this._logger=rGe("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:d})=>{l==="ok"?this.emitter.emit(i,d):this._logger.debug("response error",{topic:i,status:l,data:d})})}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 aGe=dX,{Socket:oGe}=zJe,sGe=iGe;var lGe=sGe(oGe,aGe);const cGe=lGe;var y_={WsClient:cGe};function uGe(e){const t=G.useRef(e);G.useEffect(()=>{t.current=e},[e]),G.useEffect(()=>{const n=r=>{!document.hidden&&t.current&&t.current(r)};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)}},[])}function dGe(e){const t=e||window.location.href;return new URL(t).host}function am(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 Lw={};function pGe({action:e,prefix:t,checkFn:n,extraParams:r,baseUrl:i}){const a=`${t}/token?${em(r)}`;return Lw[a]||(Lw[a]=async function(){var d,u;const s=await n(a,{headers:am(i)});if((d=s==null?void 0:s.data)!=null&&d.token)return s.data;if((u=s==null?void 0:s.data)!=null&&u.error)throw new Error(s.data.error);const l=B2(t)?t:`${i}${t}`;throw new Error(`Error generating ${e} qrcode from: ${l}`)}),Lw[a]}const fGe=()=>{try{const t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;const n=eUe(t);return{token:tUe(n),url:n}}catch(e){return{error:e}}},mX=()=>Sc(globalThis,"blocklet.appPid")||Sc(globalThis,"blocklet.appId")||Sc(globalThis,"env.appId")||"",hGe=()=>(Sc(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(qY,""),Pw=e=>`relay:${mX()}:${e}`,mGe=()=>window.location.protocol==="https:"?"wss:":"ws:",sF=e=>!e||new URL(e).origin===window.location.origin,lF=e=>["succeed","error","timeout","busy"].includes(e);function gGe({action:e,checkFn:t,checkInterval:n,checkTimeout:r,extraParams:i,locale:a,prefix:o,tokenKey:s,encKey:l,onError:d,onSuccess:u,baseUrl:p,autoConnect:h=!0,forceConnected:v=!0,saveConnect:g=!0,useSocket:k=!0,provider:C="wallet"}){const S=ea({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:p,prefix:`${o}/${e}`,extraParams:iF(i,aF),checkFn:t,results:{},action:e,provider:C}),I=Sg[a]||Sg.en,L=mn(()=>fGe(),[]),N=Math.ceil(r/n),q=ea({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:H,decrypt:V}=iqe(),X=l0(),re=Xg(),le=xt((...E)=>{const y={[l]:H,...S.extraParams,locale:a,forceConnected:v,autoConnect:h&&!X.wallet&&!q.cancelWhenScannedCounter&&["ios","android"].includes($r.get("connected_wallet_os")),provider:S.provider};return re&&(y.visitorId=re),pGe({action:e,prefix:S.prefix,baseUrl:S.baseUrl,checkFn:S.checkFn,extraParams:y})(...E)}),Q=()=>{q.cancelWhenScannedCounter++};G.useEffect(()=>{q.cancelWhenScannedCounter>0&&(i.nw?d(new Error(I.retryForbidden)):D())},[q.cancelWhenScannedCounter]);const B=G.useRef(null),T=G.useRef(null);G.useEffect(()=>(k&&sF(S.baseUrl)&&mX()?(!B.current||B.current.isConnected()===!1||B.current.baseUrl!==S.baseUrl)&&(B.current=new y_.WsClient(`${mGe()}//${dGe(S.baseUrl)}${hGe()}${qY}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),B.current.baseUrl=S.baseUrl,B.current.onOpen(()=>{q.isSocketAvailable=!0}),B.current.connect()):q.isSocketAvailable&&(q.isSocketAvailable=!1),()=>{B.current&&(B.current.disconnect(),B.current=null)}),[S.baseUrl]);const c={...S.extraParams,locale:a,[s]:S.token||(L==null?void 0:L.token),provider:S.provider},f=()=>!S.token||S.loading||lF(S.status)?null:n,b=async()=>{try{c[s]&&S.status==="created"&&await S.checkFn(`${S.prefix}/timeout?${em(c)}`,{headers:am(S.baseUrl)})}catch{}try{S.token&&T.current&&(await B.current.unsubscribe(Pw(S.token)),T.current=null)}catch{}},D=xt(async(E=!0)=>{E&&b();try{S.loading=!0,S.token="",S.url="",S.store=null,S.extraParams=iF(i,aF),await bT();const y=await le(),_=y.extra||{};S.loading=!1,S.token=y.token,S.url=y.url,S.status="created",S.error="",S.checkCount=0,S.appInfo=y.appInfo,S.memberAppInfo=y.memberAppInfo,S.connectedDid=_.connectedDid,S.saveConnect=_.saveConnect}catch(y){S.loading=!1,S.status="error",S.error=`${I.generateError}: ${y.message}`}}),R=G.useRef(null);G.useEffect(()=>{R.current={state:S,params:c}}),G.useEffect(()=>()=>{const{state:E,params:y}=R.current;E.status==="created"&&y[s]&&E.checkFn(`${E.prefix}/timeout?${em(y)}`,{headers:am(E.baseUrl)})},[]);const x=async()=>{try{if(L.error)throw L.error;S.loading=!0,S.token=L.token,S.url=L.url,S.inExistingSession=!0;const E=await w();if(E!=null&&E.status&&(E==null?void 0:E.status)!=="created")throw new Error(`${I.invalidSessionStatus} [${E.status}]`)}catch(E){S.status="error",S.error=E.message,d(E,S==null?void 0:S.store,V)}finally{S.loading=!1}};G.useEffect(()=>{if(!S.token&&!S.store&&!S.loading&&!S.error)if(L)x();else{D(!1);return}if(S.status!=="timeout"&&S.checkCount>N){S.status="timeout",b();return}if(S.status==="succeed"&&!q.onSuccessCalled&&(sF(S.baseUrl)&&g&&S.saveConnect&&S.store.did&&kY({...S.store,appInfo:S.appInfo,memberAppInfo:S.memberAppInfo}),S.store)){const{nextWorkflow:E}=S.store;if(E)try{const y=nUe(E,s);S.nextWorkflow=(y==null?void 0:y.nextWorkflow)||E,Object.assign(S,y),S.store=null,S.error="",S.url="",S.appInfo=null,S.memberAppInfo=null,S.checkCount=0,S.status="scanned",S.results={...S.results,[S.token]:S.store},S.checkFn=Ul({baseURL:y.baseUrl,timeout:8e3}).get,w()}catch(y){console.error(`Invalid nextWorkflow: ${E}`,y),S.status="error",S.error=`Invalid nextWorkflow: ${E}: ${y.message}`}else if(S.nextWorkflow&&(S.nextWorkflow="",S.url=""),typeof u=="function"){const y=Object.values({...S.results,[S.token]:S.store});q.onSuccessCalled=!0;const _=y.length>1?y:y[0],ne=Tl(_);u(ne,V,{sourceAppPid:i==null?void 0:i.sourceAppPid})}}}),G.useEffect(()=>{if(S.token&&q.isSocketAvailable&&B.current){let E=!1;T.current?T.current.token!==S.token&&(B.current.unsubscribe(Pw(T.current.token)),E=!0):E=!0,E&&(T.current=B.current.subscribe(Pw(S.token)),T.current.token=S.token,T.current.on("updated",({response:y})=>{let{status:_,error:ne}=y;_==="forbidden"&&(ne=I.forbidden,_="error"),S.status=_,S.mfaCode=y.mfaCode||0,S.store=y,S.error=ne}))}},[S.token,q.isSocketAvailable,B.current]);const w=async(E=!1)=>{var y;if(S.checking||(S.status==="created"&&S.checkCount++,q.isSocketAvailable&&!E))return null;try{S.checking=!0;const _=await S.checkFn(`${S.prefix}/status?${em(c)}`,{headers:am(S.baseUrl)}),{status:ne,error:M,mfaCode:z=0}=_.data;if(S.store=_.data,S.mfaCode=z,S.checking=!1,S.status=ne,ne==="error"&&M){const ie=new Error(M);throw ie.response=_,ie}return _.data}catch(_){const{response:ne}=_;if(ne!=null&&ne.status){c[s]&&S.checkFn(`${S.prefix}/timeout?${em(c)}`,{headers:am(S.baseUrl)});const M=(y=ne==null?void 0:ne.data)!=null&&y.error?ne.data.error:_.message,z=new Error(M);z.code=ne.status,S.status="error",S.checking=!1,S.error=M,d(z,S==null?void 0:S.store,V)}else S.status="error",S.checking=!1,S.error=I.generateError}return null};return OJe(w,f()),uGe(()=>{q.isSocketAvailable&&S.token&&lF(S.status)===!1&&w(!0)}),{state:S,generate:D,cancelWhenScanned:Q}}var b_={};Object.defineProperty(b_,"__esModule",{value:!0});var gX=b_.default=void 0;vGe(G);var sn=Y;function vGe(e){return e&&e.__esModule?e:{default:e}}function cF(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 uF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cF(Object(n),!0).forEach(function(r){yGe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yGe(e,t,n){return t=bGe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bGe(e){var t=TGe(e,"string");return typeof t=="symbol"?t:String(t)}function TGe(e,t){if(typeof e!="object"||e===null)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 T_=function(t){return(0,sn.jsxs)("svg",uF(uF({},t),{},{children:[(0,sn.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,sn.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"url(#paint0_linear)"}),(0,sn.jsx)("path",{d:"M3.52 7.36A2.56 2.56 0 0 1 6.08 4.8h19.84a2.56 2.56 0 0 1 2.56 2.56v12.16a2.56 2.56 0 0 1-2.56 2.56H6.08a2.56 2.56 0 0 1-2.56-2.56V7.36z",fill:"#9FCBFF",filter:"url(#filter0_i)"}),(0,sn.jsx)("path",{d:"M2.56 9.28a2.56 2.56 0 0 1 2.56-2.56h21.76a2.56 2.56 0 0 1 2.56 2.56v13.6a2.56 2.56 0 0 1-2.56 2.56H5.12a2.56 2.56 0 0 1-2.56-2.56V9.28z",fill:"url(#paint1_linear)",filter:"url(#filter1_d)"}),(0,sn.jsx)("path",{d:"M0 22.32l32-6.16V32H0v-9.68z",fill:"url(#paint2_linear)",filter:"url(#filter2_d)"}),(0,sn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.536 9.248h8.288c.408 0 .74.3.74.672v4.64c0 .371-.332.672-.74.672H5.536c-.408 0-.74-.3-.74-.672v-.04a.158.158 0 1 0-.316 0v.04c0 .53.473.96 1.056.96h8.288c.583 0 1.056-.43 1.056-.96V9.92c0-.53-.473-.96-1.056-.96H5.536c-.583 0-1.056.43-1.056.96v.04a.158.158 0 0 0 .317 0v-.04c0-.371.33-.672.739-.672zm-1.023 4.638a.127.127 0 0 0 .087.034h1.267c.472 0 .83-.107 1.076-.322.25-.217.381-.548.397-.993a11.281 11.281 0 0 0 0-.734c-.012-.426-.148-.751-.406-.975-.258-.224-.622-.336-1.09-.336H4.6a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.794-.806c-.099.1-.253.149-.464.149h-.502V11.25h.478c.21 0 .369.051.474.154.108.102.166.26.172.475.006.09.01.208.01.355s-.004.267-.01.36c-.006.221-.059.383-.158.485zm1.63.806a.127.127 0 0 0 .087.034h.64a.116.116 0 0 0 .087-.034.11.11 0 0 0 .038-.086v-3.12a.11.11 0 0 0-.038-.086.116.116 0 0 0-.086-.034h-.641a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.637.034a.127.127 0 0 1-.086-.034.128.128 0 0 1-.033-.086v-3.12c0-.035.01-.064.033-.086a.127.127 0 0 1 .086-.034h1.244c.469 0 .832.112 1.09.336.259.224.394.549.407.974a11.244 11.244 0 0 1 0 .735c-.016.445-.148.776-.397.993-.245.215-.604.322-1.076.322H9.574zm1.244-.691c.21 0 .365-.05.464-.149.099-.102.152-.264.158-.485a5.52 5.52 0 0 0 .01-.36c0-.147-.004-.265-.01-.355-.006-.214-.064-.373-.172-.475-.106-.103-.263-.154-.474-.154h-.478v1.978h.502zm2.468-1.382a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.286-.288.286zm0 1.495a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.287-.288.287z",fill:"#4598FA"})]}),(0,sn.jsxs)("defs",{children:[(0,sn.jsxs)("filter",{id:"filter0_i",x:"3.52",y:"1.8",width:"24.96",height:"20.28",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,sn.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,sn.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,sn.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,sn.jsx)("feOffset",{dy:"-3"}),(0,sn.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,sn.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,sn.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.2 0"}),(0,sn.jsx)("feBlend",{in2:"shape",result:"effect1_innerShadow"})]}),(0,sn.jsxs)("filter",{id:"filter1_d",x:"-1.44",y:"1.72",width:"34.88",height:"26.72",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,sn.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,sn.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,sn.jsx)("feOffset",{dy:"-1"}),(0,sn.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,sn.jsx)("feColorMatrix",{values:"0 0 0 0 0.220767 0 0 0 0 0.470803 0 0 0 0 0.701605 0 0 0 0.18 0"}),(0,sn.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,sn.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,sn.jsxs)("filter",{id:"filter2_d",x:"-5",y:"11.16",width:"42",height:"25.84",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,sn.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,sn.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,sn.jsx)("feOffset",{}),(0,sn.jsx)("feGaussianBlur",{stdDeviation:"2.5"}),(0,sn.jsx)("feColorMatrix",{values:"0 0 0 0 0.14382 0 0 0 0 0.205065 0 0 0 0 0.522634 0 0 0 0.25 0"}),(0,sn.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,sn.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,sn.jsxs)("linearGradient",{id:"paint0_linear",x1:"16",x2:"16",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,sn.jsx)("stop",{stopColor:"#4F9DF6"}),(0,sn.jsx)("stop",{offset:"1",stopColor:"#0A79F8"})]}),(0,sn.jsxs)("linearGradient",{id:"paint1_linear",x1:"16",y1:"6.72",x2:"16",y2:"25.44",gradientUnits:"userSpaceOnUse",children:[(0,sn.jsx)("stop",{stopColor:"#fff"}),(0,sn.jsx)("stop",{offset:"1",stopColor:"#ECEFFF"})]}),(0,sn.jsxs)("linearGradient",{id:"paint2_linear",x1:"16",y1:"19.2",x2:"18.48",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,sn.jsx)("stop",{offset:".007",stopColor:"#77B2F6"}),(0,sn.jsx)("stop",{offset:".055",stopColor:"#4F9DF6"}),(0,sn.jsx)("stop",{offset:"1",stopColor:"#4598FA"})]}),(0,sn.jsx)("clipPath",{id:"clip0",children:(0,sn.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"#fff"})})]})]}))};T_.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};T_.displayName="did-wallet";var kGe=T_;gX=b_.default=kGe;function k_({tokenState:e,locale:t,tokenKey:n}){const{t:r,isWalletWebview:i}=zc(),a=r("openInWallet"),o=mn(()=>{if(!e.url)return"";const d=new URL(window.location.href);d.searchParams.set("tokenKey",e.token);const u=new URL(e.url);return u.searchParams.set("callback",encodeURIComponent(d)),u.searchParams.set("callback_delay",1500),u.searchParams.set("locale",t),u.href.replace(/^https?:\/\//,"abt://")},[n,e.token]),s=xt(()=>{Ur(()=>import("./index-NeahD9R-.js").then(d=>d.i),__vite__mapDeps([])).then(d=>{d.call||(d=d.default),d.call("authAction",{action:"auth",deepLink:o})}).catch(d=>{console.error("load dsbridge error",d)})}),l={};return i||(l.component="a",l.href=o),o0(()=>{o&&s()}),Y.jsxs(Jc,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:zt.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...l,onClick:i?s:sr,children:[Y.jsxs(vt,{sx:{display:"flex",alignItems:"center",gap:1},children:[Y.jsx(gX,{}),Y.jsx(xi,{sx:{fontSize:"16px",fontWeight:"bold"},children:a})]}),Y.jsx(Xn,{icon:xT,fontSize:"1.3rem",color:zt.primaryBase})]})}k_.propTypes={tokenState:be.object.isRequired,locale:be.string,tokenKey:be.string};k_.defaultProps={locale:"en",tokenKey:"_t_"};function vX(){return Y.jsx(vt,{sx:{height:"100%",minWidth:"160px",minHeight:"160px",display:"flex",justifyContent:"center",alignItems:"center"},children:Y.jsx(jg,{sx:{color:zt.primary100}})})}const Tv=["scanned","succeed","error","busy"];function S_({onSuccess:e,onError:t,action:n,prefix:r,checkFn:i,checkInterval:a,checkTimeout:o,locale:s,tokenKey:l,encKey:d,baseUrl:u,autoConnect:p,forceConnected:h,saveConnect:v,useSocket:g,allowWallet:k,provider:C,webWalletUrl:S,onRecreateSession:I,messages:L,enabledConnectTypes:N}){var Z,W,te;if(typeof i!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const q=G.useContext(Kf),{lostPassportUrl:H,connectState:V,extraParams:X,staticState:re,changeStatus:le,t:Q,isWalletWebview:B}=zc(),T=l0(),c=mn(()=>{var ge;return C||(X==null?void 0:X.provider)||((ge=q==null?void 0:q.session)==null?void 0:ge.provider)||"wallet"},[X==null?void 0:X.provider,(Z=q==null?void 0:q.session)==null?void 0:Z.provider]);G.useEffect(()=>{R(u)},[u]);const{state:f,generate:b,cancelWhenScanned:D}=gGe({action:n,baseUrl:u,checkFn:i,checkInterval:a,checkTimeout:o,extraParams:X,prefix:r,onError:t,onSuccess:e,locale:s,tokenKey:l,encKey:d,autoConnect:p,forceConnected:h,saveConnect:v,useSocket:g,allowWallet:k,provider:c}),{setBaseUrl:R,oauthConfigList:x,oauthState:w}=L6({defaultStatus:f.status});af(()=>{b()},[V==null?void 0:V.sourceAppPid]);const E=mn(()=>Tv.includes(w.status)||Tv.includes(f.status),[f.status,w.status]);G.useEffect(()=>{Tv.includes(w.status)?le(w.status):Tv.includes(f.status)?le(f.status):le("created")},[le,f.status,w.status]);const y=xt(()=>{I(),w.reset(),f.inExistingSession||b()}),_=xt(()=>{I(),f.inExistingSession||(re.current.cancelCount++,D())}),ne=mn(()=>({confirm:L.confirm,success:L.success,error:f.error||w.error||""}),[L.confirm,L.success,f.error,w.error]),M=mn(()=>k&&N.includes("mobile")&&!B,[k,N,B]),z=bY(S),ie=mn(()=>k&&N.includes("web")&&(z||$2())&&!T.mobile.any,[k,N,(W=T==null?void 0:T.mobile)==null?void 0:W.any]),ce=mn(()=>k&&N.includes("mobile")&&T.mobile.any,[k,N,(te=T==null?void 0:T.mobile)==null?void 0:te.any]),he=mn(()=>{const ge=wze(["auth0","apple","github","google"],N);return x.filter(fe=>ge.includes(fe.provider))},[x,N]),De=mn(()=>he.length>0&&["login","invite"].includes(f.action),[he]),j=mn(()=>{const ge=M||ie||ce;let fe=null;return De&&(fe=ge?Y.jsxs(Y.Fragment,{children:[Y.jsx(YI,{light:!0,sx:{color:zt.textMuted,width:{xs:"200px",md:"368px"},maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:zt.lineStep}},children:"OR"}),Y.jsx(Gb,{providerList:he,onSuccess:e,onError:t,tokenState:f,locale:s})]}):Y.jsx(Gb,{providerList:he,onSuccess:e,onError:t,tokenState:f,type:"list",locale:s})),Y.jsxs(Y.Fragment,{children:[Y.jsx(vt,{"data-did-auth-url":f.url,sx:{display:"none"}}),ce&&Y.jsx(k_,{tokenState:f,locale:s,tokenKey:l}),M&&Y.jsx(h_,{tokenState:f,messages:L,locale:s}),ie&&Y.jsx(p_,{tokenState:f,webWalletUrl:S,locale:s}),ge&&H&&Y.jsx(Uz,{href:H,underline:"none",sx:{fontSize:"12px",width:"auto",margin:"auto",display:{xs:"inline-block",md:"none"}},children:Q("lostPassport")}),fe]})},[f.url,H,M,ie,ce]);return mn(()=>f.loading||w.loading,[f.loading,w.loading])?Y.jsx(vX,{}):E?Y.jsxs(Y.Fragment,{children:[Y.jsx(vt,{"data-did-auth-url":f.url,sx:{display:"none"}}),Y.jsx(_T,{status:w.status||f.status,nextWorkflow:f.nextWorkflow,mfaCode:f.mfaCode,onCancel:_,onRetry:y,messages:ne,locale:s,className:"auth-status"})]}):j}S_.propTypes={onError:be.func,onSuccess:be.func.isRequired,action:be.string.isRequired,checkFn:be.func.isRequired,prefix:be.string,checkInterval:be.number,checkTimeout:be.number,locale:be.oneOf(["en","zh",""]),tokenKey:be.string,encKey:be.string,baseUrl:be.string,autoConnect:be.bool,forceConnected:be.oneOfType([be.bool,be.string]),saveConnect:be.bool,useSocket:be.bool,allowWallet:be.bool,provider:be.oneOf(["wallet","auth0",""]),webWalletUrl:be.string,onRecreateSession:be.func,messages:be.object,enabledConnectTypes:be.arrayOf(be.oneOf(["web","mobile","github","apple","google","auth0"]))};S_.defaultProps={prefix:I6,onError:sr,checkInterval:2*1e3,checkTimeout:jY*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:yY(),onRecreateSession:sr,messages:{},enabledConnectTypes:["web","mobile","github","apple","google","auth0"]};var $w=iG,SGe=EJ,AGe=I4,DGe=1/0,wGe=$w&&1/AGe(new $w([,-0]))[1]==DGe?function(e){return new $w(e)}:SGe,EGe=wGe,CGe=R4,RGe=YZ,xGe=ZZ,IGe=x4,_Ge=EGe,LGe=I4,PGe=200;function $Ge(e,t,n){var r=-1,i=RGe,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=xGe;else if(a>=PGe){var d=t?null:_Ge(e);if(d)return LGe(d);o=!1,i=IGe,l=new CGe}else l=t?[]:s;e:for(;++r<a;){var u=e[r],p=t?t(u):u;if(u=n||u!==0?u:0,o&&p===p){for(var h=l.length;h--;)if(l[h]===p)continue e;t&&l.push(p),s.push(u)}else i(l,p,n)||(l!==s&&l.push(p),s.push(u))}return s}var yX=$Ge,BGe=D4,NGe=LT,OGe=r0,MGe=yX,dF=g4,FGe=j2,UGe=OGe(function(e){var t=FGe(e);return dF(t)&&(t=void 0),MGe(BGe(e,1,dF,!0),NGe(t))}),HGe=UGe;const jGe=Nt(HGe);var qGe=NJ,VGe=i0;function zGe(e,t){return e&&qGe(e,t,VGe)}var JGe=zGe,GGe=dd;function WGe(e,t){return function(n,r){if(n==null)return n;if(!GGe(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 KGe=WGe,YGe=JGe,ZGe=KGe,XGe=ZGe(YGe),QGe=XGe,eWe=QGe,tWe=dd;function nWe(e,t){var n=-1,r=tWe(e)?Array(e.length):[];return eWe(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var rWe=nWe;function iWe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var aWe=iWe,pF=Gg;function oWe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=pF(e),o=t!==void 0,s=t===null,l=t===t,d=pF(t);if(!s&&!d&&!a&&e>t||a&&o&&l&&!s&&!d||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!d&&e<t||d&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var sWe=oWe,lWe=sWe;function cWe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=lWe(i[r],a[r]);if(l){if(r>=s)return l;var d=n[r];return l*(d=="desc"?-1:1)}}return e.index-t.index}var uWe=cWe,Bw=_f,dWe=Kg,pWe=LT,fWe=rWe,hWe=aWe,mWe=t0,gWe=uWe,vWe=H2,yWe=Ta;function bWe(e,t,n){t.length?t=Bw(t,function(a){return yWe(a)?function(o){return dWe(o,a.length===1?a[0]:a)}:a}):t=[vWe];var r=-1;t=Bw(t,mWe(pWe));var i=fWe(e,function(a,o,s){var l=Bw(t,function(d){return d(a)});return{criteria:l,index:++r,value:a}});return hWe(i,function(a,o){return gWe(a,o,n)})}var TWe=bWe,kWe=D4,SWe=TWe,AWe=r0,fF=ZJ,DWe=AWe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&fF(e,t[0],t[1])?t=[]:n>2&&fF(t[0],t[1],t[2])&&(t=[t[0]]),SWe(e,kWe(t,1),[])}),wWe=DWe;const bX=Nt(wWe),EWe=Ln(ji,"/api/user-session");function TX({appPid:e,sourceAppPid:t,loginAppPid:n,autoFetch:r=!0,baseUrl:i="/"}={}){const a=Xg(),o=mn(()=>Ul({baseURL:Ln(i,EWe)},{lazy:!0,lazyTime:500}),[i]),s=xt(async()=>{const{data:v}=await o.get("",{params:{visitorId:a,appPid:e}});return v}),l=ea({loaded:!1,loadingId:null}),d=b8e(s,{manual:!r,onFinally(){l.loaded=!0},refreshDeps:[e,i]}),u=async v=>{var k,C,S;const g=q2(v,["userDid","visitorId","passportId"]);try{l.loadingId=v.id;const{data:I}=await o.post("login",{...g,appPid:n});return I}catch(I){const L=I.response?((C=(k=I.response)==null?void 0:k.data)==null?void 0:C.error)||((S=I.response)==null?void 0:S.data):I.message;throw wi.error(L),console.error("Quick login error",I),I}finally{l.loadingId=null}},p=mn(()=>{if(!d.data)return[];const v=new Date().getTime(),g=d.data.filter(C=>t!==null?!0:C.appPid===e),k=bX(g,C=>v-new Date(C.updatedAt).getTime());return jGe(k,C=>[C.userDid].join("_"))},[d.data,t,e]),h=mn(()=>p.data&&p.data.length>0,[p==null?void 0:p.data]);return{loadingId:l.loadingId,userSessions:p,quickLoginEnabled:h,loginUserSession:u,loading:d.loading,loaded:d.loaded,refresh:d.refreshAsync}}const kv="did-connect",hF="quick-connect";function A_({mode:e,hideCloseButton:t,...n}){var le;const r=ea({showTab:kv}),{connectState:i,blocklet:a}=zc(),{extraContent:o,onSuccess:s,action:l,onClose:d,options:u}=n,p=mn(()=>(i==null?void 0:i.sourceAppPid)||aW(),[i==null?void 0:i.sourceAppPid]),{quickLoginEnabled:h,loading:v,userSessions:g,loginUserSession:k,refresh:C}=TX({appPid:p,loginAppPid:a==null?void 0:a.appPid,sourceAppPid:i==null?void 0:i.sourceAppPid,autoFetch:["login"].includes(l)}),S=mn(()=>{var Q;return((Q=n==null?void 0:n.messages)==null?void 0:Q.title)||XUe},[(le=n==null?void 0:n.messages)==null?void 0:le.title]),I=xt(async(...Q)=>{const B=await k(...Q);await s({...B,encrypted:!1},T=>T)});G.useEffect(()=>{(u==null?void 0:u.showQuickConnect)!==!1&&!v&&h&&(r.showTab=hF)},[v,h,u==null?void 0:u.showQuickConnect]);const L=w8e(v,{wait:100}),N=xt(()=>{r.showTab=kv}),q=xt(()=>{r.showTab=hF}),H=mn(()=>r.showTab===kv||!h,[r.showTab,h]),V=mn(()=>{let Q=!0;return(v||L)&&(Q=!1),h||(Q=!1),u.showQuickConnect===!1&&(Q=!1),r.showTab!==kv&&(Q=!1),Q},[h,r.showTab,v,L]),X=mn(()=>Y.jsx(vt,{onClick:d,sx:{fontSize:"1.5rem",cursor:"pointer",width:"1.5rem",height:"1.5rem",textAlign:"center",color:zt.textMuted,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:Y.jsx(vt,{component:"span",sx:{display:"block",fontWeight:"lighter",lineHeight:1,transform:"scale(1.3)"},children:"×"})}),[d]);let re=null;return v||L?re=Y.jsx(vX,{}):H?re=Y.jsx(S_,{...n}):re=Y.jsx(d_,{userSessions:g,onLogin:I,onRetry:C,messages:n.messages,onLoginAnother:N}),Y.jsxs(vt,{sx:{display:"flex",flexDirection:"column",gap:1.5,color:zt.textBase,width:"100%"},children:[e==="dialog"?Y.jsxs(vt,{sx:{pb:2,display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:{xs:"none",md:`1px solid ${zt.lineStep}`}},children:[Y.jsxs(xi,{component:"h3",variant:"h6",sx:{display:"flex",alignItems:"center"},children:[V&&Y.jsx(Bs,{size:"small",disabled:i.status!=="created",onClick:q,disableRipple:!0,sx:{fontSize:"0.75em"},children:Y.jsx(Xn,{icon:J9,color:zt.textMuted})}),S]}),!t&&Y.jsx(vt,{sx:{display:{xs:"none",md:"block"}},children:X})]}):Y.jsxs(xi,{component:"h3",variant:"h4",sx:{pt:{xs:1.5,md:3},pb:{xs:0,md:1.5},fontWeight:"bold",display:"flex",alignItems:"center"},children:[V&&Y.jsx(Bs,{size:"small",onClick:q,disabled:i.status!=="created",disableRipple:!0,sx:{fontSize:"0.75em"},children:Y.jsx(Xn,{icon:J9,color:zt.textMuted})}),S]}),re,Y.jsxs(vt,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",pt:1.5,pb:{xs:1.5,md:0},px:{xs:3,md:0},position:{xs:"fixed",md:"static"},top:0,left:0,right:0,backgroundColor:"white",borderBottom:{xs:`1px solid ${zt.lineStep}`,md:"none"}},children:[Y.jsx(n_,{disableSwitchApp:n.disableSwitchApp}),e==="dialog"&&!t&&Y.jsx(vt,{sx:{display:{xs:"block",md:"none"}},children:X})]}),o?Y.jsx(vt,{children:o}):null]})}A_.propTypes={onSuccess:be.func,onClose:be.func,action:be.string.isRequired,messages:be.object,extraContent:be.any,disableSwitchApp:be.bool,mode:be.oneOf(["fullScreen","dialog","normal"]),options:be.object,hideCloseButton:be.bool};A_.defaultProps={onSuccess:sr,onClose:sr,mode:"normal",extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!1};function D_(e){const{checkFn:t,extraParams:n,blocklet:r,action:i,locale:a,lostPassportUrl:o}=e;if(typeof t!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const[s,l]=G.useState(300),d=G.useRef(null),u=s0(d);return G.useEffect(()=>{u!=null&&u.height&&u.height>s&&l(u.height)},[u==null?void 0:u.height,s]),Y.jsx(vt,{sx:{position:"relative",width:"100%",height:"100%",display:"flex",alignItems:"center",lineHeight:1.2,fontFamily:"Lato",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:Y.jsx(e_,{blocklet:r,action:i,locale:a,extraParams:n,lostPassportUrl:o,children:Y.jsx(vt,{sx:{height:s,overflow:"hidden",transition:"height 0.2s ease"},children:Y.jsx(vt,{ref:d,children:Y.jsx(A_,{...e})})})})})}D_.propTypes={checkFn:be.func.isRequired,extraParams:be.object,blocklet:be.object.isRequired,action:be.string.isRequired,locale:be.string,lostPassportUrl:be.string};D_.defaultProps={extraParams:{},locale:"en",lostPassportUrl:void 0};const CWe=eqe(Mje(rqe(D_))),RWe=G.forwardRef((e,t)=>{const{api:n}=G.useContext(Kf),r={containerEl:null,popup:!0,checkFn:(n==null?void 0:n.get)||sr,onSuccess:()=>{setTimeout(()=>{d()},2e3)},messages:{title:"DID Connect",scan:"Scan QR code to complete this action",confirm:"Confirm on your DID Wallet",success:"Success!"}},i=ea({show:!1,...Tl(r)}),[a,o]=G.useState({}),s=xt(p=>{const{containerEl:h,checkFn:v,popup:g,onSuccess:k,messages:C,...S}=Tl(p);typeof v=="function"&&(i.checkFn=v),typeof k=="function"&&(i.onSuccess=(...I)=>{k(...I),setTimeout(()=>{d()},2e3)}),g!==void 0&&(i.popup=g),C!==void 0&&(i.messages=C),h!==void 0&&(i.containerEl=h),o(S),i.show=!0}),l=xt(()=>{const p=Tl(r);Object.keys(p).forEach(h=>{i[h]=p[h]})}),d=xt(()=>{i.show=!1,l()});G.useImperativeHandle(t,()=>({open:s,close:d}),[s,d]);const u=Y.jsx(CWe,{open:!0,popup:i.popup,messages:i.messages,onClose:d,onSuccess:i.onSuccess,checkFn:i.checkFn,...a});return i.containerEl?Lg.createPortal(u,i.containerEl):i.show&&u});function xWe(){const e=G.useRef(null),t=xt((...o)=>{var s;(s=e.current)==null||s.open(...o)}),n=xt(async(o={},{baseUrl:s,locale:l="en",blocklet:d=globalThis==null?void 0:globalThis.blocklet}={})=>{var C;if(pc(s)){const S=g0(),I=Gf();s=S?I.appUrl:window.location.origin}const{onSuccess:u,onClose:p,onError:h,...v}=o;if(!((C=v==null?void 0:v.extraParams)!=null&&C.provider))throw Eu(h)&&h("Must have extraParams.provider"),new Error("Must have extraParams.provider");v!=null&&v.prefix||(v.prefix=window.location.origin+Ln(d==null?void 0:d.prefix,I6));const g=new URLSearchParams;g.set("params",btoa(encodeURIComponent(JSON.stringify(v)))),g.set("appPid",d==null?void 0:d.appPid),g.set("locale",l);const k=BHe(Ln(s||"/",ji,`/connect?${g.toString()}`));try{const S=await NHe({popup:k});return Eu(u)&&u({...S,encrypted:!1}),{...S,encrypted:!1}}catch(S){throw S.message==="Popup closed"?Eu(p)&&p():Eu(h)&&h(S),S}}),r=xt((...o)=>{var s;(s=e.current)==null||s.close(...o)}),i=mn(()=>Y.jsx(RWe,{ref:e})),a=mn(()=>({open:t,close:r,openPopup:n}));return{connectHolder:i,connectApi:a}}const Qr={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")},IWe={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-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:"Bind DID Wallet",scan:"Scan following qrcode with DID Wallet to bind wallet",confirm:"Select passport in your DID Wallet",success:"Passport and session updated"},zh:{title:"绑定 DID 钱包",scan:"请使用 DID 钱包扫码下面的二维码以绑定 DID 钱包",confirm:"在 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:"找回通行证"}}};var FR={exports:{}};const _We="2.0.0",kX=256,LWe=Number.MAX_SAFE_INTEGER||9007199254740991,PWe=16,$We=kX-6,BWe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var PT={MAX_LENGTH:kX,MAX_SAFE_COMPONENT_LENGTH:PWe,MAX_SAFE_BUILD_LENGTH:$We,MAX_SAFE_INTEGER:LWe,RELEASE_TYPES:BWe,SEMVER_SPEC_VERSION:_We,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Nw={};const NWe=typeof Kt=="object"&&Nw&&Nw.NODE_DEBUG&&/\bsemver\b/i.test(Nw.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var $T=NWe;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=PT,a=$T;t=e.exports={};const o=t.re=[],s=t.safeRe=[],l=t.src=[],d=t.t={};let u=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",i],[p,r]],v=k=>{for(const[C,S]of h)k=k.split(`${C}*`).join(`${C}{0,${S}}`).split(`${C}+`).join(`${C}{1,${S}}`);return k},g=(k,C,S)=>{const I=v(C),L=u++;a(k,L,C),d[k]=L,l[L]=C,o[L]=new RegExp(C,S?"g":void 0),s[L]=new RegExp(I,S?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),g("MAINVERSION",`(${l[d.NUMERICIDENTIFIER]})\\.(${l[d.NUMERICIDENTIFIER]})\\.(${l[d.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${l[d.NUMERICIDENTIFIERLOOSE]})\\.(${l[d.NUMERICIDENTIFIERLOOSE]})\\.(${l[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${l[d.NUMERICIDENTIFIER]}|${l[d.NONNUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${l[d.NUMERICIDENTIFIERLOOSE]}|${l[d.NONNUMERICIDENTIFIER]})`),g("PRERELEASE",`(?:-(${l[d.PRERELEASEIDENTIFIER]}(?:\\.${l[d.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${l[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[d.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${p}+`),g("BUILD",`(?:\\+(${l[d.BUILDIDENTIFIER]}(?:\\.${l[d.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${l[d.MAINVERSION]}${l[d.PRERELEASE]}?${l[d.BUILD]}?`),g("FULL",`^${l[d.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${l[d.MAINVERSIONLOOSE]}${l[d.PRERELEASELOOSE]}?${l[d.BUILD]}?`),g("LOOSE",`^${l[d.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${l[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${l[d.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${l[d.XRANGEIDENTIFIER]})(?:\\.(${l[d.XRANGEIDENTIFIER]})(?:\\.(${l[d.XRANGEIDENTIFIER]})(?:${l[d.PRERELEASE]})?${l[d.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${l[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[d.XRANGEIDENTIFIERLOOSE]})(?:${l[d.PRERELEASELOOSE]})?${l[d.BUILD]}?)?)?`),g("XRANGE",`^${l[d.GTLT]}\\s*${l[d.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${l[d.GTLT]}\\s*${l[d.XRANGEPLAINLOOSE]}$`),g("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),g("COERCERTL",l[d.COERCE],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${l[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${l[d.LONETILDE]}${l[d.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${l[d.LONETILDE]}${l[d.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${l[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${l[d.LONECARET]}${l[d.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${l[d.LONECARET]}${l[d.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${l[d.GTLT]}\\s*(${l[d.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${l[d.GTLT]}\\s*(${l[d.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${l[d.GTLT]}\\s*(${l[d.LOOSEPLAIN]}|${l[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${l[d.XRANGEPLAIN]})\\s+-\\s+(${l[d.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${l[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[d.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(FR,FR.exports);var b0=FR.exports;const OWe=Object.freeze({loose:!0}),MWe=Object.freeze({}),FWe=e=>e?typeof e!="object"?OWe:e:MWe;var w_=FWe;const mF=/^[0-9]+$/,SX=(e,t)=>{const n=mF.test(e),r=mF.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},UWe=(e,t)=>SX(t,e);var AX={compareIdentifiers:SX,rcompareIdentifiers:UWe};const Sv=$T,{MAX_LENGTH:gF,MAX_SAFE_INTEGER:Av}=PT,{safeRe:vF,t:yF}=b0,HWe=w_,{compareIdentifiers:Yd}=AX;let jWe=class ms{constructor(t,n){if(n=HWe(n),t instanceof ms){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>gF)throw new TypeError(`version is longer than ${gF} characters`);Sv("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?vF[yF.LOOSE]:vF[yF.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Av||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Av||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Av||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const a=+i;if(a>=0&&a<Av)return a}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Sv("SemVer.compare",this.version,this.options,t),!(t instanceof ms)){if(typeof t=="string"&&t===this.version)return 0;t=new ms(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof ms||(t=new ms(t,this.options)),Yd(this.major,t.major)||Yd(this.minor,t.minor)||Yd(this.patch,t.patch)}comparePre(t){if(t instanceof ms||(t=new ms(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(Sv("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 Yd(r,i)}while(++n)}compareBuild(t){t instanceof ms||(t=new ms(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(Sv("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 Yd(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]),Yd(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 ra=jWe;const bF=ra,qWe=(e,t,n=!1)=>{if(e instanceof bF)return e;try{return new bF(e,t)}catch(r){if(!n)return null;throw r}};var Yf=qWe;const VWe=Yf,zWe=(e,t)=>{const n=VWe(e,t);return n?n.version:null};var JWe=zWe;const GWe=Yf,WWe=(e,t)=>{const n=GWe(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var KWe=WWe;const TF=ra,YWe=(e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new TF(e instanceof TF?e.version:e,n).inc(t,r,i).version}catch{return null}};var ZWe=YWe;const kF=Yf,XWe=(e,t)=>{const n=kF(e,null,!0),r=kF(t,null,!0),i=n.compare(r);if(i===0)return null;const a=i>0,o=a?n:r,s=a?r:n,l=!!o.prerelease.length;if(!!s.prerelease.length&&!l)return!s.patch&&!s.minor?"major":o.patch?"patch":o.minor?"minor":"major";const u=l?"pre":"";return n.major!==r.major?u+"major":n.minor!==r.minor?u+"minor":n.patch!==r.patch?u+"patch":"prerelease"};var QWe=XWe;const eKe=ra,tKe=(e,t)=>new eKe(e,t).major;var nKe=tKe;const rKe=ra,iKe=(e,t)=>new rKe(e,t).minor;var aKe=iKe;const oKe=ra,sKe=(e,t)=>new oKe(e,t).patch;var lKe=sKe;const cKe=Yf,uKe=(e,t)=>{const n=cKe(e,t);return n&&n.prerelease.length?n.prerelease:null};var dKe=uKe;const SF=ra,pKe=(e,t,n)=>new SF(e,n).compare(new SF(t,n));var ss=pKe;const fKe=ss,hKe=(e,t,n)=>fKe(t,e,n);var mKe=hKe;const gKe=ss,vKe=(e,t)=>gKe(e,t,!0);var yKe=vKe;const AF=ra,bKe=(e,t,n)=>{const r=new AF(e,n),i=new AF(t,n);return r.compare(i)||r.compareBuild(i)};var E_=bKe;const TKe=E_,kKe=(e,t)=>e.sort((n,r)=>TKe(n,r,t));var SKe=kKe;const AKe=E_,DKe=(e,t)=>e.sort((n,r)=>AKe(r,n,t));var wKe=DKe;const EKe=ss,CKe=(e,t,n)=>EKe(e,t,n)>0;var BT=CKe;const RKe=ss,xKe=(e,t,n)=>RKe(e,t,n)<0;var C_=xKe;const IKe=ss,_Ke=(e,t,n)=>IKe(e,t,n)===0;var DX=_Ke;const LKe=ss,PKe=(e,t,n)=>LKe(e,t,n)!==0;var wX=PKe;const $Ke=ss,BKe=(e,t,n)=>$Ke(e,t,n)>=0;var R_=BKe;const NKe=ss,OKe=(e,t,n)=>NKe(e,t,n)<=0;var x_=OKe;const MKe=DX,FKe=wX,UKe=BT,HKe=R_,jKe=C_,qKe=x_,VKe=(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 MKe(e,n,r);case"!=":return FKe(e,n,r);case">":return UKe(e,n,r);case">=":return HKe(e,n,r);case"<":return jKe(e,n,r);case"<=":return qKe(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var EX=VKe;const zKe=ra,JKe=Yf,{safeRe:Dv,t:wv}=b0,GKe=(e,t)=>{if(e instanceof zKe)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(Dv[wv.COERCE]);else{let r;for(;(r=Dv[wv.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),Dv[wv.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;Dv[wv.COERCERTL].lastIndex=-1}return n===null?null:JKe(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var WKe=GKe,Ow,DF;function KKe(){return DF||(DF=1,Ow=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),Ow}var YKe=jn;jn.Node=td;jn.create=jn;function jn(e){var t=this;if(t instanceof jn||(t=new jn),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}jn.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};jn.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++}};jn.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++}};jn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)XKe(this,arguments[e]);return this.length};jn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)QKe(this,arguments[e]);return this.length};jn.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}};jn.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}};jn.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};jn.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};jn.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};jn.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};jn.prototype.map=function(e,t){t=t||this;for(var n=new jn,r=this.head;r!==null;)n.push(e.call(t,r.value,this)),r=r.next;return n};jn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new jn,r=this.tail;r!==null;)n.push(e.call(t,r.value,this)),r=r.prev;return n};jn.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};jn.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};jn.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};jn.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};jn.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 jn;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};jn.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 jn;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};jn.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=ZKe(this,i,n[r]);return a};jn.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 ZKe(e,t,n){var r=t===e.head?new td(n,null,t,e):new td(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function XKe(e,t){e.tail=new td(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function QKe(e,t){e.head=new td(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function td(e,t,n,r){if(!(this instanceof td))return new td(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{KKe()(jn)}catch{}const eYe=YKe,yu=Symbol("max"),cl=Symbol("length"),Zd=Symbol("lengthCalculator"),Lm=Symbol("allowStale"),Iu=Symbol("maxAge"),sl=Symbol("dispose"),wF=Symbol("noDisposeOnSet"),li=Symbol("lruList"),Jo=Symbol("cache"),CX=Symbol("updateAgeOnGet"),Mw=()=>1;class tYe{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[yu]=t.max||1/0;const n=t.length||Mw;if(this[Zd]=typeof n!="function"?Mw:n,this[Lm]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Iu]=t.maxAge||0,this[sl]=t.dispose,this[wF]=t.noDisposeOnSet||!1,this[CX]=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[yu]=t||1/0,Vh(this)}get max(){return this[yu]}set allowStale(t){this[Lm]=!!t}get allowStale(){return this[Lm]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Iu]=t,Vh(this)}get maxAge(){return this[Iu]}set lengthCalculator(t){typeof t!="function"&&(t=Mw),t!==this[Zd]&&(this[Zd]=t,this[cl]=0,this[li].forEach(n=>{n.length=this[Zd](n.value,n.key),this[cl]+=n.length})),Vh(this)}get lengthCalculator(){return this[Zd]}get length(){return this[cl]}get itemCount(){return this[li].length}rforEach(t,n){n=n||this;for(let r=this[li].tail;r!==null;){const i=r.prev;EF(this,t,r,n),r=i}}forEach(t,n){n=n||this;for(let r=this[li].head;r!==null;){const i=r.next;EF(this,t,r,n),r=i}}keys(){return this[li].toArray().map(t=>t.key)}values(){return this[li].toArray().map(t=>t.value)}reset(){this[sl]&&this[li]&&this[li].length&&this[li].forEach(t=>this[sl](t.key,t.value)),this[Jo]=new Map,this[li]=new eYe,this[cl]=0}dump(){return this[li].map(t=>Kb(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[li]}set(t,n,r){if(r=r||this[Iu],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const i=r?Date.now():0,a=this[Zd](n,t);if(this[Jo].has(t)){if(a>this[yu])return Fp(this,this[Jo].get(t)),!1;const l=this[Jo].get(t).value;return this[sl]&&(this[wF]||this[sl](t,l.value)),l.now=i,l.maxAge=r,l.value=n,this[cl]+=a-l.length,l.length=a,this.get(t),Vh(this),!0}const o=new nYe(t,n,a,i,r);return o.length>this[yu]?(this[sl]&&this[sl](t,n),!1):(this[cl]+=o.length,this[li].unshift(o),this[Jo].set(t,this[li].head),Vh(this),!0)}has(t){if(!this[Jo].has(t))return!1;const n=this[Jo].get(t).value;return!Kb(this,n)}get(t){return Fw(this,t,!0)}peek(t){return Fw(this,t,!1)}pop(){const t=this[li].tail;return t?(Fp(this,t),t.value):null}del(t){Fp(this,this[Jo].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[Jo].forEach((t,n)=>Fw(this,n,!1))}}const Fw=(e,t,n)=>{const r=e[Jo].get(t);if(r){const i=r.value;if(Kb(e,i)){if(Fp(e,r),!e[Lm])return}else n&&(e[CX]&&(r.value.now=Date.now()),e[li].unshiftNode(r));return i.value}},Kb=(e,t)=>{if(!t||!t.maxAge&&!e[Iu])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Iu]&&n>e[Iu]},Vh=e=>{if(e[cl]>e[yu])for(let t=e[li].tail;e[cl]>e[yu]&&t!==null;){const n=t.prev;Fp(e,t),t=n}},Fp=(e,t)=>{if(t){const n=t.value;e[sl]&&e[sl](n.key,n.value),e[cl]-=n.length,e[Jo].delete(n.key),e[li].removeNode(t)}};class nYe{constructor(t,n,r,i,a){this.key=t,this.value=n,this.length=r,this.now=i,this.maxAge=a||0}}const EF=(e,t,n,r)=>{let i=n.value;Kb(e,i)&&(Fp(e,n),e[Lm]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var rYe=tYe,Uw,CF;function ls(){if(CF)return Uw;CF=1;class e{constructor(c,f){if(f=r(f),c instanceof e)return c.loose===!!f.loose&&c.includePrerelease===!!f.includePrerelease?c:new e(c.raw,f);if(c instanceof i)return this.raw=c.value,this.set=[[c]],this.format(),this;if(this.options=f,this.loose=!!f.loose,this.includePrerelease=!!f.includePrerelease,this.raw=c.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(b=>this.parseRange(b.trim())).filter(b=>b.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const b=this.set[0];if(this.set=this.set.filter(D=>!g(D[0])),this.set.length===0)this.set=[b];else if(this.set.length>1){for(const D of this.set)if(D.length===1&&k(D[0])){this.set=[D];break}}}this.format()}format(){return this.range=this.set.map(c=>c.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(c){const b=((this.options.includePrerelease&&h)|(this.options.loose&&v))+":"+c,D=n.get(b);if(D)return D;const R=this.options.loose,x=R?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];c=c.replace(x,Q(this.options.includePrerelease)),a("hyphen replace",c),c=c.replace(s[l.COMPARATORTRIM],d),a("comparator trim",c),c=c.replace(s[l.TILDETRIM],u),a("tilde trim",c),c=c.replace(s[l.CARETTRIM],p),a("caret trim",c);let w=c.split(" ").map(ne=>S(ne,this.options)).join(" ").split(/\s+/).map(ne=>le(ne,this.options));R&&(w=w.filter(ne=>(a("loose invalid filter",ne,this.options),!!ne.match(s[l.COMPARATORLOOSE])))),a("range list",w);const E=new Map,y=w.map(ne=>new i(ne,this.options));for(const ne of y){if(g(ne))return[ne];E.set(ne.value,ne)}E.size>1&&E.has("")&&E.delete("");const _=[...E.values()];return n.set(b,_),_}intersects(c,f){if(!(c instanceof e))throw new TypeError("a Range is required");return this.set.some(b=>C(b,f)&&c.set.some(D=>C(D,f)&&b.every(R=>D.every(x=>R.intersects(x,f)))))}test(c){if(!c)return!1;if(typeof c=="string")try{c=new o(c,this.options)}catch{return!1}for(let f=0;f<this.set.length;f++)if(B(this.set[f],c,this.options))return!0;return!1}}Uw=e;const t=rYe,n=new t({max:1e3}),r=w_,i=NT(),a=$T,o=ra,{safeRe:s,t:l,comparatorTrimReplace:d,tildeTrimReplace:u,caretTrimReplace:p}=b0,{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:v}=PT,g=T=>T.value==="<0.0.0-0",k=T=>T.value==="",C=(T,c)=>{let f=!0;const b=T.slice();let D=b.pop();for(;f&&b.length;)f=b.every(R=>D.intersects(R,c)),D=b.pop();return f},S=(T,c)=>(a("comp",T,c),T=q(T,c),a("caret",T),T=L(T,c),a("tildes",T),T=V(T,c),a("xrange",T),T=re(T,c),a("stars",T),T),I=T=>!T||T.toLowerCase()==="x"||T==="*",L=(T,c)=>T.trim().split(/\s+/).map(f=>N(f,c)).join(" "),N=(T,c)=>{const f=c.loose?s[l.TILDELOOSE]:s[l.TILDE];return T.replace(f,(b,D,R,x,w)=>{a("tilde",T,b,D,R,x,w);let E;return I(D)?E="":I(R)?E=`>=${D}.0.0 <${+D+1}.0.0-0`:I(x)?E=`>=${D}.${R}.0 <${D}.${+R+1}.0-0`:w?(a("replaceTilde pr",w),E=`>=${D}.${R}.${x}-${w} <${D}.${+R+1}.0-0`):E=`>=${D}.${R}.${x} <${D}.${+R+1}.0-0`,a("tilde return",E),E})},q=(T,c)=>T.trim().split(/\s+/).map(f=>H(f,c)).join(" "),H=(T,c)=>{a("caret",T,c);const f=c.loose?s[l.CARETLOOSE]:s[l.CARET],b=c.includePrerelease?"-0":"";return T.replace(f,(D,R,x,w,E)=>{a("caret",T,D,R,x,w,E);let y;return I(R)?y="":I(x)?y=`>=${R}.0.0${b} <${+R+1}.0.0-0`:I(w)?R==="0"?y=`>=${R}.${x}.0${b} <${R}.${+x+1}.0-0`:y=`>=${R}.${x}.0${b} <${+R+1}.0.0-0`:E?(a("replaceCaret pr",E),R==="0"?x==="0"?y=`>=${R}.${x}.${w}-${E} <${R}.${x}.${+w+1}-0`:y=`>=${R}.${x}.${w}-${E} <${R}.${+x+1}.0-0`:y=`>=${R}.${x}.${w}-${E} <${+R+1}.0.0-0`):(a("no pr"),R==="0"?x==="0"?y=`>=${R}.${x}.${w}${b} <${R}.${x}.${+w+1}-0`:y=`>=${R}.${x}.${w}${b} <${R}.${+x+1}.0-0`:y=`>=${R}.${x}.${w} <${+R+1}.0.0-0`),a("caret return",y),y})},V=(T,c)=>(a("replaceXRanges",T,c),T.split(/\s+/).map(f=>X(f,c)).join(" ")),X=(T,c)=>{T=T.trim();const f=c.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return T.replace(f,(b,D,R,x,w,E)=>{a("xRange",T,b,D,R,x,w,E);const y=I(R),_=y||I(x),ne=_||I(w),M=ne;return D==="="&&M&&(D=""),E=c.includePrerelease?"-0":"",y?D===">"||D==="<"?b="<0.0.0-0":b="*":D&&M?(_&&(x=0),w=0,D===">"?(D=">=",_?(R=+R+1,x=0,w=0):(x=+x+1,w=0)):D==="<="&&(D="<",_?R=+R+1:x=+x+1),D==="<"&&(E="-0"),b=`${D+R}.${x}.${w}${E}`):_?b=`>=${R}.0.0${E} <${+R+1}.0.0-0`:ne&&(b=`>=${R}.${x}.0${E} <${R}.${+x+1}.0-0`),a("xRange return",b),b})},re=(T,c)=>(a("replaceStars",T,c),T.trim().replace(s[l.STAR],"")),le=(T,c)=>(a("replaceGTE0",T,c),T.trim().replace(s[c.includePrerelease?l.GTE0PRE:l.GTE0],"")),Q=T=>(c,f,b,D,R,x,w,E,y,_,ne,M,z)=>(I(b)?f="":I(D)?f=`>=${b}.0.0${T?"-0":""}`:I(R)?f=`>=${b}.${D}.0${T?"-0":""}`:x?f=`>=${f}`:f=`>=${f}${T?"-0":""}`,I(y)?E="":I(_)?E=`<${+y+1}.0.0-0`:I(ne)?E=`<${y}.${+_+1}.0-0`:M?E=`<=${y}.${_}.${ne}-${M}`:T?E=`<${y}.${_}.${+ne+1}-0`:E=`<=${E}`,`${f} ${E}`.trim()),B=(T,c,f)=>{for(let b=0;b<T.length;b++)if(!T[b].test(c))return!1;if(c.prerelease.length&&!f.includePrerelease){for(let b=0;b<T.length;b++)if(a(T[b].semver),T[b].semver!==i.ANY&&T[b].semver.prerelease.length>0){const D=T[b].semver;if(D.major===c.major&&D.minor===c.minor&&D.patch===c.patch)return!0}return!1}return!0};return Uw}var Hw,RF;function NT(){if(RF)return Hw;RF=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(u,p){if(p=n(p),u instanceof t){if(u.loose===!!p.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),o("comparator",u,p),this.options=p,this.loose=!!p.loose,this.parse(u),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(u){const p=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],h=u.match(p);if(!h)throw new TypeError(`Invalid comparator: ${u}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new s(h[2],this.options.loose):this.semver=e}toString(){return this.value}test(u){if(o("Comparator.test",u,this.options.loose),this.semver===e||u===e)return!0;if(typeof u=="string")try{u=new s(u,this.options)}catch{return!1}return a(u,this.operator,this.semver,this.options)}intersects(u,p){if(!(u instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(u.value,p).test(this.value):u.operator===""?u.value===""?!0:new l(this.value,p).test(u.semver):(p=n(p),p.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!p.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||a(this.semver,"<",u.semver,p)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||a(this.semver,">",u.semver,p)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}Hw=t;const n=w_,{safeRe:r,t:i}=b0,a=EX,o=$T,s=ra,l=ls();return Hw}const iYe=ls(),aYe=(e,t,n)=>{try{t=new iYe(t,n)}catch{return!1}return t.test(e)};var OT=aYe;const oYe=ls(),sYe=(e,t)=>new oYe(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var lYe=sYe;const cYe=ra,uYe=ls(),dYe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new uYe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===-1)&&(r=o,i=new cYe(r,n))}),r};var pYe=dYe;const fYe=ra,hYe=ls(),mYe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new hYe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===1)&&(r=o,i=new fYe(r,n))}),r};var gYe=mYe;const jw=ra,vYe=ls(),xF=BT,yYe=(e,t)=>{e=new vYe(e,t);let n=new jw("0.0.0");if(e.test(n)||(n=new jw("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 jw(o.semver.version);switch(o.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!a||xF(s,a))&&(a=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),a&&(!n||xF(n,a))&&(n=a)}return n&&e.test(n)?n:null};var bYe=yYe;const TYe=ls(),kYe=(e,t)=>{try{return new TYe(e,t).range||"*"}catch{return null}};var SYe=kYe;const AYe=ra,RX=NT(),{ANY:DYe}=RX,wYe=ls(),EYe=OT,IF=BT,_F=C_,CYe=x_,RYe=R_,xYe=(e,t,n,r)=>{e=new AYe(e,r),t=new wYe(t,r);let i,a,o,s,l;switch(n){case">":i=IF,a=CYe,o=_F,s=">",l=">=";break;case"<":i=_F,a=RYe,o=IF,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(EYe(e,t,r))return!1;for(let d=0;d<t.set.length;++d){const u=t.set[d];let p=null,h=null;if(u.forEach(v=>{v.semver===DYe&&(v=new RX(">=0.0.0")),p=p||v,h=h||v,i(v.semver,p.semver,r)?p=v:o(v.semver,h.semver,r)&&(h=v)}),p.operator===s||p.operator===l||(!h.operator||h.operator===s)&&a(e,h.semver))return!1;if(h.operator===l&&o(e,h.semver))return!1}return!0};var I_=xYe;const IYe=I_,_Ye=(e,t,n)=>IYe(e,t,">",n);var LYe=_Ye;const PYe=I_,$Ye=(e,t,n)=>PYe(e,t,"<",n);var BYe=$Ye;const LF=ls(),NYe=(e,t,n)=>(e=new LF(e,n),t=new LF(t,n),e.intersects(t,n));var OYe=NYe;const MYe=OT,FYe=ss;var UYe=(e,t,n)=>{const r=[];let i=null,a=null;const o=e.sort((u,p)=>FYe(u,p,n));for(const u of o)MYe(u,t,n)?(a=u,i||(i=u)):(a&&r.push([i,a]),a=null,i=null);i&&r.push([i,null]);const s=[];for(const[u,p]of r)u===p?s.push(u):!p&&u===o[0]?s.push("*"):p?u===o[0]?s.push(`<=${p}`):s.push(`${u} - ${p}`):s.push(`>=${u}`);const l=s.join(" || "),d=typeof t.raw=="string"?t.raw:String(t);return l.length<d.length?l:t};const PF=ls(),__=NT(),{ANY:qw}=__,zh=OT,L_=ss,HYe=(e,t,n={})=>{if(e===t)return!0;e=new PF(e,n),t=new PF(t,n);let r=!1;e:for(const i of e.set){for(const a of t.set){const o=qYe(i,a,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},jYe=[new __(">=0.0.0-0")],$F=[new __(">=0.0.0")],qYe=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===qw){if(t.length===1&&t[0].semver===qw)return!0;n.includePrerelease?e=jYe:e=$F}if(t.length===1&&t[0].semver===qw){if(n.includePrerelease)return!0;t=$F}const r=new Set;let i,a;for(const v of e)v.operator===">"||v.operator===">="?i=BF(i,v,n):v.operator==="<"||v.operator==="<="?a=NF(a,v,n):r.add(v.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 v of r){if(i&&!zh(v,String(i),n)||a&&!zh(v,String(a),n))return null;for(const g of t)if(!zh(v,String(g),n))return!1;return!0}let s,l,d,u,p=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1,h=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1;p&&p.prerelease.length===1&&a.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(const v of t){if(u=u||v.operator===">"||v.operator===">=",d=d||v.operator==="<"||v.operator==="<=",i){if(h&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===h.major&&v.semver.minor===h.minor&&v.semver.patch===h.patch&&(h=!1),v.operator===">"||v.operator===">="){if(s=BF(i,v,n),s===v&&s!==i)return!1}else if(i.operator===">="&&!zh(i.semver,String(v),n))return!1}if(a){if(p&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===p.major&&v.semver.minor===p.minor&&v.semver.patch===p.patch&&(p=!1),v.operator==="<"||v.operator==="<="){if(l=NF(a,v,n),l===v&&l!==a)return!1}else if(a.operator==="<="&&!zh(a.semver,String(v),n))return!1}if(!v.operator&&(a||i)&&o!==0)return!1}return!(i&&d&&!a&&o!==0||a&&u&&!i&&o!==0||h||p)},BF=(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},NF=(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 VYe=HYe;const Vw=b0,OF=PT,zYe=ra,MF=AX,JYe=Yf,GYe=JWe,WYe=KWe,KYe=ZWe,YYe=QWe,ZYe=nKe,XYe=aKe,QYe=lKe,eZe=dKe,tZe=ss,nZe=mKe,rZe=yKe,iZe=E_,aZe=SKe,oZe=wKe,sZe=BT,lZe=C_,cZe=DX,uZe=wX,dZe=R_,pZe=x_,fZe=EX,hZe=WKe,mZe=NT(),gZe=ls(),vZe=OT,yZe=lYe,bZe=pYe,TZe=gYe,kZe=bYe,SZe=SYe,AZe=I_,DZe=LYe,wZe=BYe,EZe=OYe,CZe=UYe,RZe=VYe;var xX={parse:JYe,valid:GYe,clean:WYe,inc:KYe,diff:YYe,major:ZYe,minor:XYe,patch:QYe,prerelease:eZe,compare:tZe,rcompare:nZe,compareLoose:rZe,compareBuild:iZe,sort:aZe,rsort:oZe,gt:sZe,lt:lZe,eq:cZe,neq:uZe,gte:dZe,lte:pZe,cmp:fZe,coerce:hZe,Comparator:mZe,Range:gZe,satisfies:vZe,toComparators:yZe,maxSatisfying:bZe,minSatisfying:TZe,minVersion:kZe,validRange:SZe,outside:AZe,gtr:DZe,ltr:wZe,intersects:EZe,simplifyRange:CZe,subset:RZe,SemVer:zYe,re:Vw.re,src:Vw.src,tokens:Vw.t,SEMVER_SPEC_VERSION:OF.SEMVER_SPEC_VERSION,RELEASE_TYPES:OF.RELEASE_TYPES,compareIdentifiers:MF.compareIdentifiers,rcompareIdentifiers:MF.rcompareIdentifiers};const FF=Nt(xX);async function IX(...e){return new Promise((t,n)=>{Ur(()=>import("./index-NeahD9R-.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 xZe=[`${ji}/connect`,`${ji}/login`,`${ji}/invite`,`${ji}/issue-passport`];async function IZe(){const e=(window==null?void 0:window.blocklet)||{},t=window.location.pathname,{componentId:n,CHAIN_TYPE:r="arcblock",appPid:i}=e;if(xZe.includes(t))return null;const a=WY();try{const o=`${window.location.origin}${ji}/api/user/loginByWallet`;return await IX("arcLogin",{target:o,chainType:r,appPid:i,componentId:n,apps:a.map(l=>{let d=l==null?void 0:l.appLogo;return B2(d)||(d=Ln(l.appUrl,d)),{appName:l.appName,appPid:l.appPid,appUrl:l.appUrl,appLogo:d,sourceAppPid:l.sourceAppPid}})})}catch(o){return console.error(o),null}}async function _Ze(){return await IX("arcGetVisitorId")}function LZe({platform:e,version:t}={}){return!!(e==="ios"&&t&&FF.gte(t,"4.15.6")||e==="android"&&t&&FF.gte(t,"4.15.1"))}const{Provider:PZe,Consumer:UF}=Kf,HF={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"};function $Ze(e=YUe,t="ls",n={},r={}){var d;let i="/";(d=globalThis==null?void 0:globalThis.blocklet)!=null&&d.prefix&&(i=globalThis.blocklet.prefix),typeof r=="boolean"&&(r={appendAuthServicePrefix:r,extraParams:{}}),g7e(r,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:ZUe});const a=EN(e,t,n),o=EN(r.refreshTokenStorageKey,"ls");function s(u){var ye,Oe;const{connectApi:p,connectHolder:h}=xWe(),v=l0(),g=ea({action:u.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:"",get locale(){return u.locale||k.currentLocale||DY()}}),k=ea({extraParams:{},options:{},currentLocale:u.locale,allowWallet:void 0,openMode:"window",get autoConnect(){return typeof u.autoConnect=="boolean"?u.autoConnect:!!u.autoLogin},get prefix(){return r.appendAuthServicePrefix||u.appendAuthServicePrefix?Ln(ji,u.prefix):u.prefix}}),C=mn(()=>new y7e,[]),S=xt(($e,Ee,Pe)=>{const Ie={login:[Qr.LOGIN,Qr.CANCEL_LOGIN],"bind-wallet":[Qr.BIND_WALLET,Qr.CANCEL_BIND_WALLET],"switch-passport":[Qr.SWITCH_PASSPORT,Qr.CANCEL_SWITCH_PASSPORT],"switch-profile":[Qr.SWITCH_PROFILE,Qr.CANCEL_SWITCH_PROFILE],"switch-did":[Qr.LOGIN,Qr.CANCEL_LOGIN]};if(!Object.keys(Ie).includes($e))return;const Ue=async(...Xe)=>{Eu(Ee)&&await Ee(...Xe),C.emit($e,...Xe)};C.once(Ie[$e][0],Ue),C.once(Ie[$e][1],async(...Xe)=>{Eu(Ue)&&C.off(Ie[$e][0],Ue),Eu(Pe)&&await Pe(...Xe),C.emit(`cancel-${$e}`,...Xe)})}),I=PLe(g.initialized,($e,Ee)=>$e!==Ee||$e===!0&&Ee===!0);af(()=>{if(g.initialized){const $e=!I;C.emit("change",{user:Tl(g.user),isFirst:$e})}},[g.user,g.initialized,C]);const{handleRefreshUser:L,handleRefreshToken:N,renewToken:q,clearSession:H,handleLoginResult:V,decrypt:X,service:re,getSessionToken:le,getRefreshToken:Q,setRefreshToken:B,setSessionToken:T}=SHe({state:g,pageState:k,sessionTokenStorage:a,refreshTokenStorage:o,serviceHost:u.serviceHost,apiOptions:u.apiOptions,lazyRefreshToken:u.lazyRefreshToken}),c=xt(($e,Ee={},Pe={})=>{const Ie=$e;typeof Ie=="object"&&($e=Ie.onSuccess,Ee=Ie.extraParams||{},Pe=Ie.options||{},Pe.origin=Ie.origin||""),(!g.user||Pe.origin==="switch-did")&&(Pe.origin==="switch-did"?S("switch-did",$e,Ie==null?void 0:Ie.onCancel):S("login",$e,Ie==null?void 0:Ie.onCancel),k.extraParams=Ee,k.options=Pe,g.action="login",Ae())}),f=xt(async($e,Ee={},Pe={})=>{var J;if((Ee==null?void 0:Ee.openMode)==="redirect"){const O=(Ee==null?void 0:Ee.redirect)||"/",F=new URL(`${ji}/login`,window.location.origin);F.searchParams.set("redirect",O),window.location.href=F.href;return}let Ie=Ee==null?void 0:Ee.sourceAppPid;pc(Ie)&&$&&(Ie=Z.appPid),await kG(()=>g.initialized);const Ue=$e;typeof Ue=="object"&&($e=Ue.onSuccess,Ee=Ue.extraParams||{},Pe=Ue.options||{}),typeof Pe=="string"&&(Pe={origin:Pe});const Xe=Tl(Ee);k.allowWallet=void 0;const Me=(Xe==null?void 0:Xe.openMode)||((J=u==null?void 0:u.extraParams)==null?void 0:J.openMode);pc(Me)?k.openMode="window":k.openMode=Me,Ie?(g.baseUrl=globalThis.blocklet.appUrl,c($e,Xe,Pe)):(g.baseUrl="",c($e,Xe,Pe))}),b=Xg(),D=xt(async $e=>{const Ee=Ln(ji,"/api/user/logout");await fetch(Ee,{method:"POST",body:JSON.stringify({visitorId:b}),headers:{"Content-Type":"application/json"}}),H(),me(),g.user=null,g.provider="",g.walletOS="",g.error="",g.loading=!1,C.emit("logout"),typeof $e=="function"&&$e()}),{userSessions:R,refresh:x,loaded:w,loginUserSession:E}=TX({appPid:aW(g.user),loginAppPid:(ye=globalThis==null?void 0:globalThis.blocklet)==null?void 0:ye.appPid,sourceAppPid:(Oe=g==null?void 0:g.user)==null?void 0:Oe.sourceAppPid,autoFetch:!1}),y=xt(($e,Ee={},Pe={})=>{const Ie=$e;typeof Ie=="object"&&($e=Ie.onSuccess,Ee=Ie.extraParams||{},Pe=Ie.options||{}),typeof Pe=="string"&&(Pe={origin:Pe}),Pe!=null&&Pe.userSession?E(Pe.userSession).then(Ue=>{S("switch-did",$e),V({...Ue,encrypted:!1}),L(!0).then(()=>{C.emit(Qr.LOGIN,Ue,X)})}):(pc(Ee==null?void 0:Ee.forceConnected)&&(Ee.forceConnected=!1),f($e,Ee,{...Pe,origin:"switch-did"}))}),_=xt(($e,Ee={})=>{const Pe=$e;typeof Pe=="object"&&($e=Pe.onSuccess,Ee=Pe.extraParams||{}),g.user&&(S("switch-profile",$e,Pe==null?void 0:Pe.onCancel),k.extraParams=Ee,k.options={},g.action="switch-profile",Ae())}),ne=xt(($e,Ee={})=>{const Pe=$e;typeof Pe=="object"&&($e=Pe.onSuccess,Ee=Pe.extraParams||{}),g.user&&(S("switch-passport",$e,Pe==null?void 0:Pe.onCancel),k.extraParams=Ee,k.options={},g.action="switch-passport",Ae())}),M=xt(($e,Ee={})=>{const Pe=$e;typeof Pe=="object"&&($e=Pe.onSuccess),g.user&&(S("bind-wallet",$e,Pe==null?void 0:Pe.onCancel),k.extraParams=Ee,k.options={},g.action="bind-wallet",Ae())}),z=xt($e=>{k.extraParams={},k.options={},V($e),g.loading=!1,L(!0).then(()=>{g.action==="login"?C.emit(Qr.LOGIN,$e,X):g.action==="switch-passport"&&C.emit(Qr.SWITCH_PASSPORT,$e,X)})}),ie=xt($e=>{k.extraParams={},k.options={},V($e),g.loading=!1,L(!0).then(()=>{C.emit(Qr.BIND_WALLET,$e,X)})}),ce=xt($e=>{k.extraParams={},k.options={},g.loading=!1,L(!0).then(()=>{C.emit(Qr.SWITCH_PROFILE,$e,X)})}),he=xt($e=>{k.extraParams={},k.options={},me();const Ee={login:Qr.CANCEL_LOGIN,"switch-profile":Qr.CANCEL_SWITCH_PROFILE,"switch-passport":Qr.CANCEL_SWITCH_PASSPORT,"bind-wallet":Qr.CANCEL_BIND_WALLET};C.emit(Ee[$e])}),De=xt(($e,...Ee)=>{try{oe[$e](...Ee)}catch(Pe){console.error("Catch error in onSuccess",{action:$e,args:Ee,err:Pe})}}),{federatedMaster:j,federatedEnabled:$,master:Z}=yHe({locale:g.locale,decrypt:X,login:c,logout:D,handleLoginResult:V,handleRefreshUser:L,setRefreshToken:B,setSessionToken:T}),{checkMatch:W}=$He({protectedRoutes:u.protectedRoutes||[]});o0(async()=>{const $e=$r.get("connected_app"),Ee=v6();if(u.autoDisconnect&&$e&&Ee&&$e!==Ee){H(),g.initialized=!0,k.autoConnect?Ae():me();return}const Pe=le();let Ie="web";if(v.mobile.apple.device?Ie="ios":v.mobile.android.device&&(Ie="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&v.wallet&&LZe({version:v.walletVersion,platform:Ie})){if(!b){const Xe=await _Ze();yJ(Xe)}if(!Pe)try{g.loading=!0;const Xe=await IZe();if(Xe){g.initialized=!0,z({sessionToken:Xe.sessionToken,refreshToken:Xe.refreshToken,encrypted:!1});return}}finally{g.loading=!1}}if(Pe){await L(!0),g.initialized=!0;return}if(typeof window<"u"){const Xe=new URL(window.location.href),Me=Xe.searchParams.get("loginToken");if(Me){V({loginToken:Me,encrypted:!1}),Xe.searchParams.delete("loginToken"),window.history.replaceState({},window.title,Xe.href);return}}if(Q()){await N(!0),g.initialized=!0;return}try{}catch(Xe){console.error("Federated: tryAutoLogin failed",Xe)}finally{g.initialized=!0}k.autoConnect?Ae():me()});const te=K2(R),ge=xt(async()=>(w||(await x(),await bT()),te.current)),fe={api:re,events:C,storage:a,connectApi:p,session:{...g,loading:k.autoConnect&&!g.user||g.loading,login:f,logout:D,switchDid:y,switchProfile:_,switchPassport:ne,bindWallet:M,refresh:L,updateConnectedInfo:kY,federatedMaster:j,useOAuth:L6,OAuthProvider:Fb,OAuthConsumer:eHe,OAuthContext:_6,useDid:HY,WrapDid:JY,getUserSessions:ge}},oe={login:z,"switch-profile":ce,"switch-passport":z,"bind-wallet":ie},me=xt(()=>{g.open=!1,p.close()}),Ae=async()=>{var Ue,Xe,Me,J,O;const $e=IWe[g.action],Ee=$e[g.locale]||$e.en,Pe={...r.extraParams,...u.extraParams,...k.extraParams,previousUserDid:(Ue=g==null?void 0:g.user)==null?void 0:Ue.did,email:(Xe=g==null?void 0:g.user)==null?void 0:Xe.email};Pe==null||delete Pe.openMode;const Ie={action:g.action,locale:g.locale,extraParams:Pe,options:{...u.options||{},...k.options},checkTimeout:u.timeout,webWalletUrl:u.webWalletUrl,messages:Ee,useSocket:u.useSocket,...XC(u,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...q2(k.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:k.prefix,allowWallet:pc(k.allowWallet)?g.action!=="login"||(((Me=globalThis.blocklet)==null?void 0:Me.DID_CONNECT_ALLOW_WALLET)||"1")==="1":k.allowWallet,onSuccess(...F){De(g.action,...F),setTimeout(()=>{g.open=!1},2e3)},onClose(...F){he(g.action,...F)},onError(F){console.error(F)}};if(g.open=!0,["login"].includes(g.action)&&k.openMode==="window"&&!v.wallet)try{const F={...Ie,baseUrl:window.location.origin};B2(k.prefix)||(F.prefix=Ln(window.location.origin,u.serviceHost==="/"?"":u.serviceHost,k.prefix)),(J=F.extraParams)!=null&&J.provider||(F.extraParams.provider=((O=g==null?void 0:g.user)==null?void 0:O.provider)||"wallet"),await p.openPopup(F,{locale:g.locale})}catch(F){F.message==="Timeout"?wi.error(HF[g.locale]||HF.en):console.error(F)}else p.open(Ie)};return W()&&!g.initialized?Y.jsx(Xp,{children:Y.jsx(jg,{})}):Y.jsx(PZe,{value:fe,children:Y.jsxs(Fb,{locale:g.locale,onSwitchPassport:({sessionToken:$e,refreshToken:Ee})=>{z({sessionToken:$e,refreshToken:Ee,encrypted:!1})},onBindOAuth:()=>{L()},children:[!g.open&&typeof u.children=="function"?u.children(g):u.children,h,r.rolling&&Y.jsx(wY,{callback:()=>q()})]})})}s.propTypes={children:be.any.isRequired,serviceHost:be.string,action:be.string,prefix:be.string,appendAuthServicePrefix:be.bool,locale:be.string,timeout:be.number,autoConnect:be.bool,autoDisconnect:be.bool,useSocket:be.bool,extraParams:be.object,options:be.object,webWalletUrl:be.string,protectedRoutes:be.arrayOf(be.string),apiOptions:be.object,lazyRefreshToken:be.bool},s.defaultProps={serviceHost:i,locale:"",action:"login",prefix:I6,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:jY*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function l(u){return function(h){return Y.jsx(yb,{children:Y.jsx(UF,{children:v=>Y.jsx(u,{...h,...v})})})}}return{SessionProvider:u=>Y.jsx(yb,{children:Y.jsx(s,{...u})}),SessionConsumer:UF,SessionContext:Kf,withSession:l}}let _X="/";window.env&&(_X=window.env.groupPathPrefix||window.env.pathPrefix||"/");function LX(e,t){return[void 0,null,""].includes(e)?t:e/86400}var bH,TH,kH;const BZe=LX((kH=(TH=(bH=window.blocklet)==null?void 0:bH.settings)==null?void 0:TH.session)==null?void 0:kH.cacheTtl,1/144);var SH,AH,DH;const NZe=LX((DH=(AH=(SH=window.blocklet)==null?void 0:SH.settings)==null?void 0:AH.session)==null?void 0:DH.ttl,7),{SessionProvider:OZe,SessionContext:MZe,SessionConsumer:Sgt,withSession:Agt}=$Ze("login_token","cookie",{returnDomain:!1,path:_X,expireInDays:BZe},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays:NZe});function PX(){return G.useContext(MZe)}function FZe({children:e}){const t=ez({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return Y.jsx(FV,{injectFirst:!0,children:Y.jsx(QV,{theme:t,children:Y.jsx(MV,{theme:t,children:Y.jsx(c4,{translations:mIe,fallbackLocale:"en",children:Y.jsx(yb,{children:Y.jsx($_,{theme:t,children:e})})})})})})}const P_=new URL(window.location.href),$X=P_.searchParams.get("mode")||"",UZe=P_.pathname.includes("embed")&&$X==="dialog",HZe=P_.pathname.includes("embed")&&$X!=="dialog";function $_({children:e,theme:t}){var i,a,o;const{locale:n}=N2(),r=Fc`
632
632
  ${UZe?"body { background-color: transparent }":""}
633
633
  ${HZe?".MuiModal-backdrop { background-color: transparent !important }":""}
634
634
  a {
@@ -1434,10 +1434,10 @@ ${r.length}`,o=Ft.from(a),s=Ft.concat([o,i]);return Nat.default.keccak256s(s)}et
1434
1434
  `)&&e.flags==="s")}),ift=Wa,aft=Ga,oft=aft.RegExp,sft=ift(function(){var e=oft("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Ep=ih,dk=ka,lft=uk,cft=Ipt,uft=$pt,dft=F5,pft=Qpt,fft=Dne.get,hft=rft,mft=sft,gft=dft("native-string-replace",String.prototype.replace),u3=RegExp.prototype.exec,cx=u3,vft=dk("".charAt),yft=dk("".indexOf),bft=dk("".replace),TE=dk("".slice),ux=function(){var e=/a/,t=/b*/g;return Ep(u3,e,"a"),Ep(u3,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),Bne=uft.BROKEN_CARET,dx=/()??/.exec("")[1]!==void 0,Tft=ux||dx||Bne||hft||mft;Tft&&(cx=function(t){var n=this,r=fft(n),i=lft(t),a=r.raw,o,s,l,d,u,p,h;if(a)return a.lastIndex=n.lastIndex,o=Ep(cx,a,i),n.lastIndex=a.lastIndex,o;var v=r.groups,g=Bne&&n.sticky,k=Ep(cft,n),C=n.source,S=0,I=i;if(g&&(k=bft(k,"y",""),yft(k,"g")===-1&&(k+="g"),I=TE(i,n.lastIndex),n.lastIndex>0&&(!n.multiline||n.multiline&&vft(i,n.lastIndex-1)!==`
1435
1435
  `)&&(C="(?: "+C+")",I=" "+I,S++),s=new RegExp("^(?:"+C+")",k)),dx&&(s=new RegExp("^"+C+"$(?!\\s)",k)),ux&&(l=n.lastIndex),d=Ep(u3,g?s:n,I),g?d?(d.input=TE(d.input,S),d[0]=TE(d[0],S),d.index=n.lastIndex,n.lastIndex+=d[0].length):n.lastIndex=0:ux&&d&&(n.lastIndex=n.global?d.index+d[0].length:l),dx&&d&&d.length>1&&Ep(gft,d[0],s,function(){for(u=1;u<arguments.length-2;u++)arguments[u]===void 0&&(d[u]=void 0)}),d&&v)for(d.groups=p=pft(null),u=0;u<v.length;u++)h=v[u],p[h[0]]=d[h[1]];return d});var K5=cx,kft=Ine,tH=K5;kft({target:"RegExp",proto:!0,forced:/./.exec!==tH},{exec:tH});var Sft=$5,Nne=Function.prototype,nH=Nne.apply,rH=Nne.call,Aft=typeof Reflect=="object"&&Reflect.apply||(Sft?rH.bind(nH):function(){return rH.apply(nH,arguments)}),Dft=L0,wft=ka,One=function(e){if(Dft(e)==="Function")return wft(e)},iH=One,aH=Ene,Eft=K5,oH=Wa,Mne=Td,Cft=U5,Rft=Mne("species"),kE=RegExp.prototype,xft=function(e,t,n,r){var i=Mne(e),a=!oH(function(){var d={};return d[i]=function(){return 7},""[e](d)!=7}),o=a&&!oH(function(){var d=!1,u=/a/;return e==="split"&&(u={},u.constructor={},u.constructor[Rft]=function(){return u},u.flags="",u[i]=/./[i]),u.exec=function(){return d=!0,null},u[i](""),!d});if(!a||!o||n){var s=iH(/./[i]),l=t(i,""[e],function(d,u,p,h,v){var g=iH(d),k=u.exec;return k===Eft||k===kE.exec?a&&!v?{done:!0,value:s(u,p,h)}:{done:!0,value:g(p,u,h)}:{done:!1}});aH(String.prototype,e,l[0]),aH(kE,i,l[1])}r&&Cft(kE[i],"sham",!0)},Y5=ka,Ift=ck,_ft=uk,Lft=P0,Pft=Y5("".charAt),sH=Y5("".charCodeAt),$ft=Y5("".slice),lH=function(e){return function(t,n){var r=_ft(Lft(t)),i=Ift(n),a=r.length,o,s;return i<0||i>=a?e?"":void 0:(o=sH(r,i),o<55296||o>56319||i+1===a||(s=sH(r,i+1))<56320||s>57343?e?Pft(r,i):o:e?$ft(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},Bft={codeAt:lH(!1),charAt:lH(!0)},Nft=Bft.charAt,Oft=function(e,t,n){return t+(n?Nft(e,t).length:1)},Z5=ka,Mft=hne,Fft=Math.floor,SE=Z5("".charAt),Uft=Z5("".replace),AE=Z5("".slice),Hft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,jft=/\$([$&'`]|\d{1,2})/g,qft=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,l=jft;return i!==void 0&&(i=Mft(i),l=Hft),Uft(a,l,function(d,u){var p;switch(SE(u,0)){case"$":return"$";case"&":return e;case"`":return AE(t,0,n);case"'":return AE(t,o);case"<":p=i[AE(u,1,-1)];break;default:var h=+u;if(h===0)return d;if(h>s){var v=Fft(h/10);return v===0?d:v<=s?r[v-1]===void 0?SE(u,1):r[v-1]+SE(u,1):d}p=r[h-1]}return p===void 0?"":p})},cH=ih,Vft=kd,zft=Ka,Jft=L0,Gft=K5,Wft=TypeError,Kft=function(e,t){var n=e.exec;if(zft(n)){var r=cH(n,e,t);return r!==null&&Vft(r),r}if(Jft(e)==="RegExp")return cH(Gft,e,t);throw Wft("RegExp#exec called on incompatible receiver")},Yft=Aft,uH=ih,pk=ka,Zft=xft,Xft=Wa,Qft=kd,eht=Ka,tht=B5,nht=ck,rht=V5,tp=uk,iht=P0,aht=Oft,oht=pne,sht=qft,lht=Kft,cht=Td,px=cht("replace"),uht=Math.max,dht=Math.min,pht=pk([].concat),DE=pk([].push),dH=pk("".indexOf),pH=pk("".slice),fht=function(e){return e===void 0?e:String(e)},hht=function(){return"a".replace(/./,"$0")==="$0"}(),fH=function(){return/./[px]?/./[px]("a","$0")==="":!1}(),mht=!Xft(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"});Zft("replace",function(e,t,n){var r=fH?"$":"$0";return[function(a,o){var s=iht(this),l=tht(a)?void 0:oht(a,px);return l?uH(l,a,s,o):uH(t,tp(s),a,o)},function(i,a){var o=Qft(this),s=tp(i);if(typeof a=="string"&&dH(a,r)===-1&&dH(a,"$<")===-1){var l=n(t,o,s,a);if(l.done)return l.value}var d=eht(a);d||(a=tp(a));var u=o.global;if(u){var p=o.unicode;o.lastIndex=0}for(var h=[];;){var v=lht(o,s);if(v===null||(DE(h,v),!u))break;var g=tp(v[0]);g===""&&(o.lastIndex=aht(s,rht(o.lastIndex),p))}for(var k="",C=0,S=0;S<h.length;S++){v=h[S];for(var I=tp(v[0]),L=uht(dht(nht(v.index),s.length),0),N=[],q=1;q<v.length;q++)DE(N,fht(v[q]));var H=v.groups;if(d){var V=pht([I],N,L,s);H!==void 0&&DE(V,H);var X=tp(Yft(a,void 0,V))}else X=sht(I,s,L,N,H,a);L>=C&&(k+=pH(s,C,L)+X,C=L+I.length)}return k+pH(s,C)}]},!mht||!hht||fH);var ght=ah,vht=L0,yht=Td,bht=yht("match"),Tht=function(e){var t;return ght(e)&&((t=e[bht])!==void 0?!!t:vht(e)=="RegExp")},kht=Tht,Sht=TypeError,Aht=function(e){if(kht(e))throw Sht("The method doesn't accept regular expressions");return e},Dht=Td,wht=Dht("match"),Eht=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[wht]=!1,"/./"[e](t)}catch{}}return!1},Cht=Ine,Fne=One,Rht=sk.f,xht=V5,hH=uk,Iht=Aht,_ht=P0,Lht=Eht,mH=Fne("".endsWith),Pht=Fne("".slice),$ht=Math.min,Une=Lht("endsWith"),Bht=!Une&&!!function(){var e=Rht(String.prototype,"endsWith");return e&&!e.writable}();Cht({target:"String",proto:!0,forced:!Bht&&!Une},{endsWith:function(t){var n=hH(_ht(this));Iht(t);var r=arguments.length>1?arguments[1]:void 0,i=n.length,a=r===void 0?i:$ht(xht(r),i),o=hH(t);return mH?mH(n,o,a):Pht(n,a-o.length,a)===o}});const Nht={name:"Query"},Oht={name:"Mutation"},Mht=null,Fht=[{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}],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}],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:"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}],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}],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:"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}],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}],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:"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}],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:"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}],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:"updateUserRole",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:"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.
1436
1436
 
1437
- 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}],Uht=[{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}]}],Hht={queryType:Nht,mutationType:Oht,subscriptionType:Mht,types:Fht,directives:Uht},jht=Jte,qht=Hht;let Vht=class extends jht{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 qht}_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 zht=Vht;const Jht=dX,Ght=zht;class Wht extends Ght{_getSocketOptions(){return{}}_getEventImplementation(){return Jht}}var Kht=Wht;const Yht=Nt(Kht),Zht=(window.env?window.env.apiPrefix:"/")||"/",ul=new Yht(()=>`${Zht}/api/gql?locale=${JC()}`.replace(/\/+/g,"/").trim());function Xht({wsClient:e,event:t,cb:n=()=>{},deps:r=[]}){G.useEffect(()=>{const i=e&&(!r.length||r.every(Boolean));return i&&e.on(t,n),()=>{i&&e.off(t,n)}},r)}let $u;function Hne(){const e=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),t=`//${window.location.host}${e}/admin`;return new y_.WsClient(t,{heartbeatIntervalMs:100*1e3,params:()=>({token:$r.get("login_token")})})}function jne(){return $u||($u=Hne()),$u}const X5=(e,t=()=>{},n=[])=>{e=`${window.blocklet.did}/${e}`;const{session:r}=PX();!$u&&r.user&&($u=jne(),$u.connect()),Xht({wsClient:$u,event:e,cb:t,deps:n})};let wE=null;const Qht=async()=>{try{return(await _0.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},emt=()=>(wE||(wE=Qht()),wE),{Provider:tmt,Consumer:P0t}=W_,nmt=e=>e&&Sc(e,"settings.publicToStore")?e.settings.publicToStore:!1,rmt=(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},imt=(()=>{const e={endpoint:"",data:{}};return async t=>{if(e.endpoint===t)return e.data;const r=await Wte(t).getConfig();return e.endpoint=t,e.data=r,r}})(),{did:np,appId:amt}=window.env;function Om({children:e,mode:t}){const[n,r]=G.useState(null),[i,a]=G.useState(!1),[o,s]=G.useState(),[l,d]=G.useState({}),[u,p]=G.useState(),[h,v]=G.useState(),g=t==="setup",{loading:k,loadingRuntimeInfo:C,error:S,blocklet:I,recommendedDomain:L,runtimeHistory:N,actions:{refreshBlocklet:q,refreshDomainStatus:H,setBlocklet:V}}=Jrt({did:np,client:ul,useSubscription:X5,getIP:emt,useLocaleContext:N2}),X=async()=>{try{a(!0),r(null);const{data:f}=await _0.get("/blocklet/meta");d(f),a(!1)}catch(f){a(!1),r(f),wi.error(f.message)}},re=async({showError:f=!0}={})=>{var _,ne;if(!((ne=(_=l==null?void 0:l.requirements)==null?void 0:_.fuels)!=null&&ne.length))return null;const{endpoint:b,value:D,address:R}=l.requirements.fuels[0],x=rmt(b,I),w=D;let E=D;const y={endpoint:x,symbol:"",need:w,current:0,owe:Number(w)>0};try{const M=Wte(x),{config:z}=await imt(x),ie=JSON.parse(z).token;let ce=R;ce||(ce=ie.address),v({address:ie.address,symbol:ie.symbol,decimal:ie.decimal});const{getAccountState:{state:he},getTokenState:{state:De}}=await M.doBatchQuery({getAccountState:{address:amt},getTokenState:{address:ce}});De&&(y.symbol=De.symbol);const j=((he==null?void 0:he.tokens)||[]).find($=>$.address===ce);if(j){const $=ii.fromTokenToUnit(w,j.decimal||18);y.current=ii.fromUnitToToken(j.value,j.decimal||18),y.owe=$.gt(new ii.BN(j.value)),E=Math.max(0,ii.fromUnitToToken($.sub(new ii.BN(j.value)),j.decimal||18))}}catch(M){f&&wi.error(M.message)}return p({...y,deficiency:E}),y},le=async({configs:f,childDid:b})=>(await ul.configBlocklet({input:{did:[np].concat(b).filter(Boolean),configs:f}}),q()),Q=async f=>{const{blocklet:b}=await ul.updateWhoCanAccess({input:{did:[np],whoCanAccess:f}});V(b)},B=async f=>{const{blocklet:b}=await ul.configPublicToStore({input:{did:np,publicToStore:f}});V(b)},T=async f=>{const{blocklet:b}=await ul.configNavigations({input:{did:np,navigations:f}});V(b)};G.useEffect(()=>{g&&X(),q({showError:!1})},[]),G.useEffect(()=>{if(!I||!(I!=null&&I.controller))return;const{controller:f}=I;art(f.chainHost,f.nftId).then(b=>{b.expirationDate=UR.getNftExpirationDate(b),b.expired=UR.isNFTExpired(b),s(b)}).catch(b=>console.error(b))},[I==null?void 0:I.appPid]);const c={loading:i||k,loadingRuntimeInfo:C,error:n||S,blocklet:I,did:np,recommendedDomain:L,runtimeHistory:N,appIdList:I?Cee(I):[],env:window.blocklet||{},meta:l,gas:u,tokenInfo:h,getPublicInstance:nmt,nftState:o,client:ul,mode:t,actions:{refreshBlocklet:q,refreshDomainStatus:H,setBlocklet:V,refreshMeta:X,refreshFuel:re,configBlocklet:le,configWhoCanAccess:Q,configPublicToStore:B,configNavigations:T}};return Y.jsx(tmt,{value:c,children:e})}Om.propTypes={children:be.any,mode:be.oneOf(["dashboard","setup"]).isRequired};Om.defaultProps={children:null};function $0t(){return G.useContext(W_)}const Q5=G.createContext({});function B0t(){const{node:e}=G.useContext(Q5);return{...e,inService:e.type==="service",inDaemon:e.type==="daemon"}}const{Provider:omt,Consumer:N0t}=Q5,smt=`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function gH({children:e}){const{serverDid:t,serverVersion:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}=window.env,s={api:ul,restApi:_0,prefix:Wt.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix:smt,getSessionInHeader:()=>({}),ws:{getWsClient:jne,create:Hne,useSubscription:X5},type:"service",info:{did:t,version:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}};return Y.jsx(omt,{value:{node:s},children:e})}function O0t(){const{node:e}=G.useContext(Q5);return e}const qne=G.createContext({}),{Provider:lmt,Consumer:M0t}=qne;function cmt({children:e}){const{did:t}=window.env,[n,r]=G.useState([]),[i,a]=G.useState({total:0,pageSize:10,pageCount:0,page:1}),[o,s]=G.useState(!1),l=async({page:u=1}={})=>{if(!o){s(!0);try{const p=await ul.getBlockletNotifications({input:{paging:{page:u},teamDid:t}});r(p.list),a(p.paging),s(!1)}catch(p){wi.error(p.message),s(!1)}}};G.useEffect(()=>{l()},[]),X5(Wt.EVENTS.NOTIFICATION_BLOCKLET_CREATE,u=>{r(p=>[u,...p||[]])});const d={loading:o,refresh:l,data:n||[],paging:i,api:ul};return Y.jsx(lmt,{value:{notifications:d},children:e})}function F0t(){const{notifications:e}=G.useContext(qne);return e}const umt=G.lazy(()=>Ur(()=>import("./login-zL8w551q.js"),__vite__mapDeps([0,1,2]))),dmt=G.lazy(()=>Ur(()=>import("./connect-QgYEXdVh.js"),__vite__mapDeps([3,4,1,5]))),pmt=G.lazy(()=>Ur(()=>import("./exchange-passport-IuC9VwEx.js"),__vite__mapDeps([6,5,7]))),fmt=G.lazy(()=>Ur(()=>import("./issue-passport-LI0vQTx6.js"),__vite__mapDeps([8,9,5,7,1]))),hmt=G.lazy(()=>Ur(()=>import("./lost-passport-GLaDRSNa.js"),__vite__mapDeps([10,9,11,12,7,1,13,14]))),mmt=G.lazy(()=>Ur(()=>import("./start-Zw90S5HQ.js"),__vite__mapDeps([15,16,12,17,18,19]))),gmt=G.lazy(()=>Ur(()=>import("./setup-sZd9bR8j.js").then(e=>e.s),__vite__mapDeps([20,21,22,23,18,19,17,24,4,25]))),vmt=G.lazy(()=>Ur(()=>import("./invite-ZFnOF7D-.js"),__vite__mapDeps([26,27,1,28,9,7]))),ymt=G.lazy(()=>Ur(()=>import("./transfer-ZLiabJcr.js"),__vite__mapDeps([29,9,18,19]))),bmt=G.lazy(()=>Ur(()=>import("./dashboard-u9hZyLwN.js").then(e=>e.o),__vite__mapDeps([30,31,32,33,28,34,35,36,37,38,39,40,16,41,42,43,44,45,13,46,24,4,25,47,48,49,19,50,51,52,53,54,23,55]))),vH=G.lazy(()=>Ur(()=>import("./user-_XAxkLCw.js"),__vite__mapDeps([56,57,47,51,52,53,48,49,19,13,58,31,12,59,4,60,61,38,43,44,55,62,63,64,65,66,39]))),Tmt=G.lazy(()=>Ur(()=>import("./home-3M89U2oU.js"),__vite__mapDeps([67,68,50,51,52,53,54,23,47]))),kmt=G.lazy(()=>Ur(()=>import("./preferences-h7aAXHWa.js"),__vite__mapDeps([69,70,50,51,52,53,54,23,68,47]))),Smt=G.lazy(()=>Ur(()=>import("./localization-57p2YRoa.js"),__vite__mapDeps([71,68,50,51,52,53,54,23,47]))),Amt=G.lazy(()=>Ur(()=>import("./add-resource-WRcoBeLJ.js"),__vite__mapDeps([72,73,74,75,21,22,23,46,76,77,78,79,11,80,64,63,44,65,62,81,82,25,83,84,36,37,38,39,49,85,86,87,58,28,12,14,88,35,89,90,91,92,47,93,94,66,95,96,97,24,4,98,53,41,99]))),yH=G.lazy(()=>Ur(()=>import("./publish-resource-6bBVAn-l.js"),__vite__mapDeps([100,101,40,102,103,87,55,43,44,63,45,65,36,37,38,39,62,64,31,104,54,105,106,84,94,93,34,12,107,13,35,28,66,108,91,82,4,53,109,25]))),Dmt=G.lazy(()=>Ur(()=>import("./index-evdoM2z3.js"),__vite__mapDeps([]))),wmt=G.lazy(()=>Ur(()=>import("./unsubscribe-QliZKSwU.js"),__vite__mapDeps([110,111])));function Emt(){const e=Us();G.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${e.pathname}${e.search}`)},[e]);const t=Y.jsx(Xp,{children:Y.jsx(jg,{})});return Y.jsx(G.Suspense,{fallback:t,children:Y.jsxs(kC,{children:[Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:Y.jsx(hmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:Y.jsx(fmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:Y.jsx(umt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:Y.jsx(dmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:Y.jsx(pmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:Y.jsx(vmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:Y.jsx(ymt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:Y.jsx(Tmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:Y.jsx(kmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:Y.jsx(Smt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:Y.jsx(bu,{children:Y.jsx(mmt,{})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:Y.jsx(Om,{mode:"setup",children:Y.jsx(gmt,{})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:Y.jsx(wmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:Y.jsx(bu,{roles:["*"],children:Y.jsx(vH,{})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:Y.jsx(bu,{roles:["*"],children:Y.jsx(vH,{})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:Y.jsx(gH,{children:Y.jsx(cmt,{children:Y.jsx(bu,{roles:["owner","admin","member"],children:Y.jsx(Om,{mode:"dashboard",children:Y.jsx(bmt,{})})})})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:Y.jsx(dV,{to:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:Y.jsx(gH,{children:Y.jsx(bu,{roles:["owner","admin"],children:Y.jsx(Om,{mode:"dashboard",children:Y.jsxs(kC,{children:[Y.jsx(Sr,{path:"publish",element:Y.jsx(yH,{})}),Y.jsx(Sr,{path:"publish/*",element:Y.jsx(yH,{})}),Y.jsx(Sr,{path:"add",element:Y.jsx(Amt,{})}),Y.jsx(Sr,{path:"*",element:Y.jsx(Dmt,{})})]})})})})})]})})}function Cmt(){return Y.jsx(ehe,{basename:Zte,children:Y.jsx(FZe,{children:Y.jsx(Emt,{})})})}const Rmt=Uq(document.getElementById("app"));Rmt.render(Y.jsx(Cmt,{}));const xmt=Wt.WELLKNOWN_SERVICE_PATH_PREFIX;{async function e(){const{register:t}=await Ur(()=>import("./index-7SG8bi1h.js"),__vite__mapDeps([]));t(`${xmt}/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{po as $,gd as A,vt as B,Xp as C,IT as D,TJ as E,Nb as F,sg as G,Uz as H,X6 as I,zt as J,ud as K,rhe as L,cd as M,ea as N,u3e as O,be as P,Ur as Q,_0t as R,jg as S,xi as T,ZI as U,_0 as V,art as W,ul as X,_rt as Y,LI as Z,l0 as _,Ic as a,ZZ as a$,x0t as a0,I0t as a1,UR as a2,l0t as a3,mf as a4,Srt as a5,Fc as a6,Vg as a7,$0t as a8,B0t as a9,Jxe as aA,Gxe as aB,Wxe as aC,Kxe as aD,Yxe as aE,Zxe as aF,Qxe as aG,Xxe as aH,c4 as aI,Us as aJ,Bs as aK,J_ as aL,tr as aM,er as aN,en as aO,Et as aP,cr as aQ,an as aR,Le as aS,Ku as aT,rn as aU,wr as aV,FC as aW,R4 as aX,_f as aY,t0 as aZ,YZ as a_,k8e as aa,che as ab,Rw as ac,R0t as ad,C0t as ae,Jlt as af,Zte as ag,gH as ah,kC as ai,Sr as aj,dV as ak,S2 as al,TT as am,Mgt as an,$gt as ao,Bgt as ap,b8e as aq,M_ as ar,Yi as as,Fxe as at,Uxe as au,jxe as av,Hxe as aw,qxe as ax,Vxe as ay,zxe as az,Iz as b,QZ as b$,x4 as b0,D4 as b1,yX as b2,r0 as b3,Nt as b4,FIe as b5,j2 as b6,g4 as b7,Mrt as b8,xgt as b9,R2e as bA,i0t as bB,E2 as bC,jI as bD,F0t as bE,O0t as bF,CZ as bG,b0t as bH,jne as bI,Sfe as bJ,yr as bK,hg as bL,$a as bM,Fi as bN,Sc as bO,k6 as bP,sr as bQ,cg as bR,b2 as bS,rr as bT,Cl as bU,Gr as bV,Xn as bW,C2 as bX,j_ as bY,q_ as bZ,Dgt as b_,Rrt as ba,wrt as bb,Hgt as bc,X2e as bd,YI as be,vb as bf,xrt as bg,v0t as bh,Lgt as bi,p0t as bj,Ugt as bk,y0t as bl,$m as bm,X5 as bn,II as bo,Pme as bp,Ime as bq,Kf as br,c0t as bs,Cz as bt,t0t as bu,qg as bv,Fgt as bw,U2e as bx,trt as by,za as bz,Ln as c,jc as c$,QI as c0,yqe as c1,Ii as c2,ogt as c3,sgt as c4,vm as c5,fn as c6,l4 as c7,s0 as c8,_mt as c9,Aee as cA,tU as cB,T3e as cC,Qmt as cD,tgt as cE,W$ as cF,ngt as cG,ZV as cH,Pz as cI,P3e as cJ,Lz as cK,g2 as cL,v2 as cM,ad as cN,pgt as cO,Brt as cP,E0t as cQ,$r as cR,YQ as cS,ii as cT,Vgt as cU,KZ as cV,i4 as cW,VDe as cX,a4 as cY,hnt as cZ,s4 as c_,cI as ca,_z as cb,Bz as cc,d4 as cd,vY as ce,hhe as cf,mz as cg,WV as ch,Od as ci,ei as cj,gI as ck,Rc as cl,hl as cm,mi as cn,vo as co,oW as cp,et as cq,iqe as cr,krt as cs,cgt as ct,q2 as cu,Kgt as cv,y6 as cw,G6 as cx,e3e as cy,n3e as cz,PX as d,Qgt as d$,Pgt as d0,W6 as d1,Ngt as d2,zgt as d3,o0t as d4,d0t as d5,Frt as d6,qG as d7,Imt as d8,Jgt as d9,p2 as dA,r0e as dB,Rl as dC,Umt as dD,qV as dE,ko as dF,Fmt as dG,zV as dH,KV as dI,Fg as dJ,T1e as dK,nz as dL,ygt as dM,Rgt as dN,Lg as dO,k1e as dP,Ju as dQ,Gmt as dR,K2 as dS,A8e as dT,tR as dU,J2 as dV,G2 as dW,af as dX,ri as dY,f0e as dZ,Ft as d_,Wgt as da,A0t as db,r_ as dc,P6 as dd,Cgt as de,Tl as df,Zgt as dg,Kte as dh,zlt as di,Gee as dj,Wte as dk,Wu as dl,aR as dm,k0t as dn,ez as dp,agt as dq,FV as dr,QV as ds,MV as dt,Bl as du,d1e as dv,ru as dw,AC as dx,kV as dy,vI as dz,I3 as e,zmt as e$,kG as e0,qgt as e1,n0t as e2,a0t as e3,TWe as e4,Ta as e5,T0t as e6,OC as e7,D8e as e8,Uq as e9,FF as eA,jz as eB,M2e as eC,Z$ as eD,Y$ as eE,P2e as eF,rgt as eG,Kt as eH,Omt as eI,Nmt as eJ,Bmt as eK,Mmt as eL,u4 as eM,i_ as eN,dd as eO,i0 as eP,YVe as eQ,fJ as eR,qZ as eS,Mz as eT,r0t as eU,Vme as eV,g0e as eW,ige as eX,Wme as eY,Hg as eZ,Vmt as e_,nrt as ea,Crt as eb,f0t as ec,vrt as ed,s0t as ee,Xgt as ef,aF as eg,Drt as eh,Qnt as ei,e0t as ej,LT as ek,qnt as el,g0t as em,H2 as en,JGe as eo,rWe as ep,JX as eq,v4 as er,t7e as es,Irt as et,Lrt as eu,MI as ev,fz as ew,K6 as ex,c0e as ey,ove as ez,xt as f,XC as f$,u0e as f0,qmt as f1,Hmt as f2,d2 as f3,Ug as f4,y$ as f5,s0e as f6,Gu as f7,j0e as f8,Jmt as f9,Ggt as fA,hgt as fB,Ygt as fC,$rt as fD,Nrt as fE,ert as fF,rrt as fG,UJ as fH,CT as fI,AZ as fJ,ub as fK,z3 as fL,gz as fM,$mt as fN,HG as fO,EJ as fP,Ogt as fQ,mme as fR,GG as fS,w4 as fT,NJe as fU,T5e as fV,tW as fW,s5 as fX,l5 as fY,gf as fZ,Egt as f_,xl as fa,XV as fb,W0e as fc,l0e as fd,xC as fe,i0e as ff,A0e as fg,m2 as fh,g1e as fi,jmt as fj,sve as fk,Zmt as fl,xve as fm,Ive as fn,Bve as fo,Xmt as fp,Hn as fq,Lbe as fr,H1 as fs,Zbe as ft,Q2e as fu,Bh as fv,oTe as fw,ml as fx,gme as fy,jgt as fz,Xg as g,_gt as g0,ggt as g1,u0t as g2,iF as g3,Sb as g4,fgt as g5,x7e as g6,IC as g7,Igt as g8,Wmt as g9,jT as gA,QGe as gB,p4 as gC,f8e as gD,dgt as gE,ugt as gF,jG as gG,bG as gH,dX as gI,zK as gJ,h0t as gK,Rz as gL,CLe as gM,t1e as ga,Ymt as gb,Q1e as gc,Wbe as gd,t2e as ge,egt as gf,H2e as gg,igt as gh,Pmt as gi,J6 as gj,h2 as gk,X1e as gl,nye as gm,ZS as gn,Kmt as go,phe as gp,M1 as gq,Ert as gr,Art as gs,Prt as gt,zQ as gu,J1e as gv,A2 as gw,U2 as gx,Uc as gy,I1e as gz,o0 as h,ji as i,Y as j,I6 as k,Gf as l,g0 as m,wi as n,w0t as o,yJ as p,Lmt as q,G as r,D0t as s,pc as t,N2 as u,mn as v,Wt as w,CWe as x,yY as y,MZe as z};
1437
+ 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}],Uht=[{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}]}],Hht={queryType:Nht,mutationType:Oht,subscriptionType:Mht,types:Fht,directives:Uht},jht=Jte,qht=Hht;let Vht=class extends jht{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 qht}_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 zht=Vht;const Jht=dX,Ght=zht;class Wht extends Ght{_getSocketOptions(){return{}}_getEventImplementation(){return Jht}}var Kht=Wht;const Yht=Nt(Kht),Zht=(window.env?window.env.apiPrefix:"/")||"/",ul=new Yht(()=>`${Zht}/api/gql?locale=${JC()}`.replace(/\/+/g,"/").trim());function Xht({wsClient:e,event:t,cb:n=()=>{},deps:r=[]}){G.useEffect(()=>{const i=e&&(!r.length||r.every(Boolean));return i&&e.on(t,n),()=>{i&&e.off(t,n)}},r)}let $u;function Hne(){const e=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),t=`//${window.location.host}${e}/admin`;return new y_.WsClient(t,{heartbeatIntervalMs:100*1e3,params:()=>({token:$r.get("login_token")})})}function jne(){return $u||($u=Hne()),$u}const X5=(e,t=()=>{},n=[])=>{e=`${window.blocklet.did}/${e}`;const{session:r}=PX();!$u&&r.user&&($u=jne(),$u.connect()),Xht({wsClient:$u,event:e,cb:t,deps:n})};let wE=null;const Qht=async()=>{try{return(await _0.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},emt=()=>(wE||(wE=Qht()),wE),{Provider:tmt,Consumer:P0t}=W_,nmt=e=>e&&Sc(e,"settings.publicToStore")?e.settings.publicToStore:!1,rmt=(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},imt=(()=>{const e={endpoint:"",data:{}};return async t=>{if(e.endpoint===t)return e.data;const r=await Wte(t).getConfig();return e.endpoint=t,e.data=r,r}})(),{did:np,appId:amt}=window.env;function Om({children:e,mode:t}){const[n,r]=G.useState(null),[i,a]=G.useState(!1),[o,s]=G.useState(),[l,d]=G.useState({}),[u,p]=G.useState(),[h,v]=G.useState(),g=t==="setup",{loading:k,loadingRuntimeInfo:C,error:S,blocklet:I,recommendedDomain:L,runtimeHistory:N,actions:{refreshBlocklet:q,refreshDomainStatus:H,setBlocklet:V}}=Jrt({did:np,client:ul,useSubscription:X5,getIP:emt,useLocaleContext:N2}),X=async()=>{try{a(!0),r(null);const{data:f}=await _0.get("/blocklet/meta");d(f),a(!1)}catch(f){a(!1),r(f),wi.error(f.message)}},re=async({showError:f=!0}={})=>{var _,ne;if(!((ne=(_=l==null?void 0:l.requirements)==null?void 0:_.fuels)!=null&&ne.length))return null;const{endpoint:b,value:D,address:R}=l.requirements.fuels[0],x=rmt(b,I),w=D;let E=D;const y={endpoint:x,symbol:"",need:w,current:0,owe:Number(w)>0};try{const M=Wte(x),{config:z}=await imt(x),ie=JSON.parse(z).token;let ce=R;ce||(ce=ie.address),v({address:ie.address,symbol:ie.symbol,decimal:ie.decimal});const{getAccountState:{state:he},getTokenState:{state:De}}=await M.doBatchQuery({getAccountState:{address:amt},getTokenState:{address:ce}});De&&(y.symbol=De.symbol);const j=((he==null?void 0:he.tokens)||[]).find($=>$.address===ce);if(j){const $=ii.fromTokenToUnit(w,j.decimal||18);y.current=ii.fromUnitToToken(j.value,j.decimal||18),y.owe=$.gt(new ii.BN(j.value)),E=Math.max(0,ii.fromUnitToToken($.sub(new ii.BN(j.value)),j.decimal||18))}}catch(M){f&&wi.error(M.message)}return p({...y,deficiency:E}),y},le=async({configs:f,childDid:b})=>(await ul.configBlocklet({input:{did:[np].concat(b).filter(Boolean),configs:f}}),q()),Q=async f=>{const{blocklet:b}=await ul.updateWhoCanAccess({input:{did:[np],whoCanAccess:f}});V(b)},B=async f=>{const{blocklet:b}=await ul.configPublicToStore({input:{did:np,publicToStore:f}});V(b)},T=async f=>{const{blocklet:b}=await ul.configNavigations({input:{did:np,navigations:f}});V(b)};G.useEffect(()=>{g&&X(),q({showError:!1})},[]),G.useEffect(()=>{if(!I||!(I!=null&&I.controller))return;const{controller:f}=I;art(f.chainHost,f.nftId).then(b=>{b.expirationDate=UR.getNftExpirationDate(b),b.expired=UR.isNFTExpired(b),s(b)}).catch(b=>console.error(b))},[I==null?void 0:I.appPid]);const c={loading:i||k,loadingRuntimeInfo:C,error:n||S,blocklet:I,did:np,recommendedDomain:L,runtimeHistory:N,appIdList:I?Cee(I):[],env:window.blocklet||{},meta:l,gas:u,tokenInfo:h,getPublicInstance:nmt,nftState:o,client:ul,mode:t,actions:{refreshBlocklet:q,refreshDomainStatus:H,setBlocklet:V,refreshMeta:X,refreshFuel:re,configBlocklet:le,configWhoCanAccess:Q,configPublicToStore:B,configNavigations:T}};return Y.jsx(tmt,{value:c,children:e})}Om.propTypes={children:be.any,mode:be.oneOf(["dashboard","setup"]).isRequired};Om.defaultProps={children:null};function $0t(){return G.useContext(W_)}const Q5=G.createContext({});function B0t(){const{node:e}=G.useContext(Q5);return{...e,inService:e.type==="service",inDaemon:e.type==="daemon"}}const{Provider:omt,Consumer:N0t}=Q5,smt=`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function gH({children:e}){const{serverDid:t,serverVersion:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}=window.env,s={api:ul,restApi:_0,prefix:Wt.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix:smt,getSessionInHeader:()=>({}),ws:{getWsClient:jne,create:Hne,useSubscription:X5},type:"service",info:{did:t,version:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}};return Y.jsx(omt,{value:{node:s},children:e})}function O0t(){const{node:e}=G.useContext(Q5);return e}const qne=G.createContext({}),{Provider:lmt,Consumer:M0t}=qne;function cmt({children:e}){const{did:t}=window.env,[n,r]=G.useState([]),[i,a]=G.useState({total:0,pageSize:10,pageCount:0,page:1}),[o,s]=G.useState(!1),l=async({page:u=1}={})=>{if(!o){s(!0);try{const p=await ul.getBlockletNotifications({input:{paging:{page:u},teamDid:t}});r(p.list),a(p.paging),s(!1)}catch(p){wi.error(p.message),s(!1)}}};G.useEffect(()=>{l()},[]),X5(Wt.EVENTS.NOTIFICATION_BLOCKLET_CREATE,u=>{r(p=>[u,...p||[]])});const d={loading:o,refresh:l,data:n||[],paging:i,api:ul};return Y.jsx(lmt,{value:{notifications:d},children:e})}function F0t(){const{notifications:e}=G.useContext(qne);return e}const umt=G.lazy(()=>Ur(()=>import("./login-EhjG48Yw.js"),__vite__mapDeps([0,1,2]))),dmt=G.lazy(()=>Ur(()=>import("./connect-nYhNuMqi.js"),__vite__mapDeps([3,4,1,5]))),pmt=G.lazy(()=>Ur(()=>import("./exchange-passport--BD8S8jX.js"),__vite__mapDeps([6,5,7]))),fmt=G.lazy(()=>Ur(()=>import("./issue-passport-HcMt_zdr.js"),__vite__mapDeps([8,9,5,7,1]))),hmt=G.lazy(()=>Ur(()=>import("./lost-passport-Zuhxyica.js"),__vite__mapDeps([10,9,11,12,7,1,13,14]))),mmt=G.lazy(()=>Ur(()=>import("./start-8bpjhQMX.js"),__vite__mapDeps([15,16,12,17,18,19]))),gmt=G.lazy(()=>Ur(()=>import("./setup-Q8eWrWcl.js").then(e=>e.s),__vite__mapDeps([20,21,22,23,18,19,17,24,4,25]))),vmt=G.lazy(()=>Ur(()=>import("./invite-U6iWhMyt.js"),__vite__mapDeps([26,27,1,28,9,7]))),ymt=G.lazy(()=>Ur(()=>import("./transfer-rlOoYYgH.js"),__vite__mapDeps([29,9,18,19]))),bmt=G.lazy(()=>Ur(()=>import("./dashboard-I5vRXleu.js").then(e=>e.o),__vite__mapDeps([30,31,32,33,28,34,35,36,37,38,39,40,16,41,42,43,44,45,13,46,24,4,25,47,48,49,19,50,51,52,53,54,23,55]))),vH=G.lazy(()=>Ur(()=>import("./user-Dz7m3bpJ.js"),__vite__mapDeps([56,57,47,51,52,53,48,49,19,13,58,31,12,59,4,60,61,38,43,44,55,62,63,64,65,66,39]))),Tmt=G.lazy(()=>Ur(()=>import("./home-emaTaf8u.js"),__vite__mapDeps([67,68,50,51,52,53,54,23,47]))),kmt=G.lazy(()=>Ur(()=>import("./preferences-E_gHyBm2.js"),__vite__mapDeps([69,70,50,51,52,53,54,23,68,47]))),Smt=G.lazy(()=>Ur(()=>import("./localization-A9q7RwDF.js"),__vite__mapDeps([71,68,50,51,52,53,54,23,47]))),Amt=G.lazy(()=>Ur(()=>import("./add-resource-FFT9Nq-D.js"),__vite__mapDeps([72,73,74,75,21,22,23,46,76,77,78,79,11,80,64,63,44,65,62,81,82,25,83,84,36,37,38,39,49,85,86,87,58,28,12,14,88,35,89,90,91,92,47,93,94,66,95,96,97,24,4,98,53,41,99]))),yH=G.lazy(()=>Ur(()=>import("./publish-resource-oHk38jQi.js"),__vite__mapDeps([100,101,40,102,103,87,55,43,44,63,45,65,36,37,38,39,62,64,31,104,54,105,106,84,94,93,34,12,107,13,35,28,66,108,91,82,4,53,109,25]))),Dmt=G.lazy(()=>Ur(()=>import("./index-ALnlxAZf.js"),__vite__mapDeps([]))),wmt=G.lazy(()=>Ur(()=>import("./unsubscribe-knq8tExI.js"),__vite__mapDeps([110,111])));function Emt(){const e=Us();G.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${e.pathname}${e.search}`)},[e]);const t=Y.jsx(Xp,{children:Y.jsx(jg,{})});return Y.jsx(G.Suspense,{fallback:t,children:Y.jsxs(kC,{children:[Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:Y.jsx(hmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:Y.jsx(fmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:Y.jsx(umt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:Y.jsx(dmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:Y.jsx(pmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:Y.jsx(vmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:Y.jsx(ymt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:Y.jsx(Tmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:Y.jsx(kmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:Y.jsx(Smt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:Y.jsx(bu,{children:Y.jsx(mmt,{})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:Y.jsx(Om,{mode:"setup",children:Y.jsx(gmt,{})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:Y.jsx(wmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:Y.jsx(bu,{roles:["*"],children:Y.jsx(vH,{})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:Y.jsx(bu,{roles:["*"],children:Y.jsx(vH,{})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:Y.jsx(gH,{children:Y.jsx(cmt,{children:Y.jsx(bu,{roles:["owner","admin","member"],children:Y.jsx(Om,{mode:"dashboard",children:Y.jsx(bmt,{})})})})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:Y.jsx(dV,{to:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:Y.jsx(gH,{children:Y.jsx(bu,{roles:["owner","admin"],children:Y.jsx(Om,{mode:"dashboard",children:Y.jsxs(kC,{children:[Y.jsx(Sr,{path:"publish",element:Y.jsx(yH,{})}),Y.jsx(Sr,{path:"publish/*",element:Y.jsx(yH,{})}),Y.jsx(Sr,{path:"add",element:Y.jsx(Amt,{})}),Y.jsx(Sr,{path:"*",element:Y.jsx(Dmt,{})})]})})})})})]})})}function Cmt(){return Y.jsx(ehe,{basename:Zte,children:Y.jsx(FZe,{children:Y.jsx(Emt,{})})})}const Rmt=Uq(document.getElementById("app"));Rmt.render(Y.jsx(Cmt,{}));const xmt=Wt.WELLKNOWN_SERVICE_PATH_PREFIX;{async function e(){const{register:t}=await Ur(()=>import("./index-7SG8bi1h.js"),__vite__mapDeps([]));t(`${xmt}/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{po as $,gd as A,vt as B,Xp as C,IT as D,TJ as E,Nb as F,sg as G,Uz as H,X6 as I,zt as J,ud as K,rhe as L,cd as M,ea as N,u3e as O,be as P,Ur as Q,_0t as R,jg as S,xi as T,ZI as U,_0 as V,art as W,ul as X,_rt as Y,LI as Z,l0 as _,Ic as a,ZZ as a$,x0t as a0,I0t as a1,UR as a2,l0t as a3,mf as a4,Srt as a5,Fc as a6,Vg as a7,$0t as a8,B0t as a9,Jxe as aA,Gxe as aB,Wxe as aC,Kxe as aD,Yxe as aE,Zxe as aF,Qxe as aG,Xxe as aH,c4 as aI,Us as aJ,Bs as aK,J_ as aL,tr as aM,er as aN,en as aO,Et as aP,cr as aQ,an as aR,Le as aS,Ku as aT,rn as aU,wr as aV,FC as aW,R4 as aX,_f as aY,t0 as aZ,YZ as a_,k8e as aa,che as ab,Rw as ac,R0t as ad,C0t as ae,Jlt as af,Zte as ag,gH as ah,kC as ai,Sr as aj,dV as ak,S2 as al,TT as am,Mgt as an,$gt as ao,Bgt as ap,b8e as aq,M_ as ar,Yi as as,Fxe as at,Uxe as au,jxe as av,Hxe as aw,qxe as ax,Vxe as ay,zxe as az,Iz as b,QZ as b$,x4 as b0,D4 as b1,yX as b2,r0 as b3,Nt as b4,FIe as b5,j2 as b6,g4 as b7,Mrt as b8,xgt as b9,R2e as bA,i0t as bB,E2 as bC,jI as bD,F0t as bE,O0t as bF,CZ as bG,b0t as bH,jne as bI,Sfe as bJ,yr as bK,hg as bL,$a as bM,Fi as bN,Sc as bO,k6 as bP,sr as bQ,cg as bR,b2 as bS,rr as bT,Cl as bU,Gr as bV,Xn as bW,C2 as bX,j_ as bY,q_ as bZ,Dgt as b_,Rrt as ba,wrt as bb,Hgt as bc,X2e as bd,YI as be,vb as bf,xrt as bg,v0t as bh,Lgt as bi,p0t as bj,Ugt as bk,y0t as bl,$m as bm,X5 as bn,II as bo,Pme as bp,Ime as bq,Kf as br,c0t as bs,Cz as bt,t0t as bu,qg as bv,Fgt as bw,U2e as bx,trt as by,za as bz,Ln as c,jc as c$,QI as c0,yqe as c1,Ii as c2,ogt as c3,sgt as c4,vm as c5,fn as c6,l4 as c7,s0 as c8,_mt as c9,Aee as cA,tU as cB,T3e as cC,Qmt as cD,tgt as cE,W$ as cF,ngt as cG,ZV as cH,Pz as cI,P3e as cJ,Lz as cK,g2 as cL,v2 as cM,ad as cN,pgt as cO,Brt as cP,E0t as cQ,$r as cR,YQ as cS,ii as cT,Vgt as cU,KZ as cV,i4 as cW,VDe as cX,a4 as cY,hnt as cZ,s4 as c_,cI as ca,_z as cb,Bz as cc,d4 as cd,vY as ce,hhe as cf,mz as cg,WV as ch,Od as ci,ei as cj,gI as ck,Rc as cl,hl as cm,mi as cn,vo as co,oW as cp,et as cq,iqe as cr,krt as cs,cgt as ct,q2 as cu,Kgt as cv,y6 as cw,G6 as cx,e3e as cy,n3e as cz,PX as d,Qgt as d$,Pgt as d0,W6 as d1,Ngt as d2,zgt as d3,o0t as d4,d0t as d5,Frt as d6,qG as d7,Imt as d8,Jgt as d9,p2 as dA,r0e as dB,Rl as dC,Umt as dD,qV as dE,ko as dF,Fmt as dG,zV as dH,KV as dI,Fg as dJ,T1e as dK,nz as dL,ygt as dM,Rgt as dN,Lg as dO,k1e as dP,Ju as dQ,Gmt as dR,K2 as dS,A8e as dT,tR as dU,J2 as dV,G2 as dW,af as dX,ri as dY,f0e as dZ,Ft as d_,Wgt as da,A0t as db,r_ as dc,P6 as dd,Cgt as de,Tl as df,Zgt as dg,Kte as dh,zlt as di,Gee as dj,Wte as dk,Wu as dl,aR as dm,k0t as dn,ez as dp,agt as dq,FV as dr,QV as ds,MV as dt,Bl as du,d1e as dv,ru as dw,AC as dx,kV as dy,vI as dz,I3 as e,zmt as e$,kG as e0,qgt as e1,n0t as e2,a0t as e3,TWe as e4,Ta as e5,T0t as e6,OC as e7,D8e as e8,Uq as e9,FF as eA,jz as eB,M2e as eC,Z$ as eD,Y$ as eE,P2e as eF,rgt as eG,Kt as eH,Omt as eI,Nmt as eJ,Bmt as eK,Mmt as eL,u4 as eM,i_ as eN,dd as eO,i0 as eP,YVe as eQ,fJ as eR,qZ as eS,Mz as eT,r0t as eU,Vme as eV,g0e as eW,ige as eX,Wme as eY,Hg as eZ,Vmt as e_,nrt as ea,Crt as eb,f0t as ec,vrt as ed,s0t as ee,Xgt as ef,aF as eg,Drt as eh,Qnt as ei,e0t as ej,LT as ek,qnt as el,g0t as em,H2 as en,JGe as eo,rWe as ep,JX as eq,v4 as er,t7e as es,Irt as et,Lrt as eu,MI as ev,fz as ew,K6 as ex,c0e as ey,ove as ez,xt as f,XC as f$,u0e as f0,qmt as f1,Hmt as f2,d2 as f3,Ug as f4,y$ as f5,s0e as f6,Gu as f7,j0e as f8,Jmt as f9,Ggt as fA,hgt as fB,Ygt as fC,$rt as fD,Nrt as fE,ert as fF,rrt as fG,UJ as fH,CT as fI,AZ as fJ,ub as fK,z3 as fL,gz as fM,$mt as fN,HG as fO,EJ as fP,Ogt as fQ,mme as fR,GG as fS,w4 as fT,NJe as fU,T5e as fV,tW as fW,s5 as fX,l5 as fY,gf as fZ,Egt as f_,xl as fa,XV as fb,W0e as fc,l0e as fd,xC as fe,i0e as ff,A0e as fg,m2 as fh,g1e as fi,jmt as fj,sve as fk,Zmt as fl,xve as fm,Ive as fn,Bve as fo,Xmt as fp,Hn as fq,Lbe as fr,H1 as fs,Zbe as ft,Q2e as fu,Bh as fv,oTe as fw,ml as fx,gme as fy,jgt as fz,Xg as g,_gt as g0,ggt as g1,u0t as g2,iF as g3,Sb as g4,fgt as g5,x7e as g6,IC as g7,Igt as g8,Wmt as g9,jT as gA,QGe as gB,p4 as gC,f8e as gD,dgt as gE,ugt as gF,jG as gG,bG as gH,dX as gI,zK as gJ,h0t as gK,Rz as gL,CLe as gM,t1e as ga,Ymt as gb,Q1e as gc,Wbe as gd,t2e as ge,egt as gf,H2e as gg,igt as gh,Pmt as gi,J6 as gj,h2 as gk,X1e as gl,nye as gm,ZS as gn,Kmt as go,phe as gp,M1 as gq,Ert as gr,Art as gs,Prt as gt,zQ as gu,J1e as gv,A2 as gw,U2 as gx,Uc as gy,I1e as gz,o0 as h,ji as i,Y as j,I6 as k,Gf as l,g0 as m,wi as n,w0t as o,yJ as p,Lmt as q,G as r,D0t as s,pc as t,N2 as u,mn as v,Wt as w,CWe as x,yY as y,MZe as z};
1438
1438
  function __vite__mapDeps(indexes) {
1439
1439
  if (!__vite__mapDeps.viteFileDeps) {
1440
- __vite__mapDeps.viteFileDeps = ["assets/login-zL8w551q.js","assets/use-passport-id-pXgWCnyq.js","assets/LaunchOutlined-lL2bUPmR.js","assets/connect-QgYEXdVh.js","assets/index-kA6bEgMs.js","assets/fullpage-ErEPlrFR.js","assets/exchange-passport-IuC9VwEx.js","assets/wrap-locale-FLgJeXdD.js","assets/issue-passport-LI0vQTx6.js","assets/CheckCircle-TSCHhVSn.js","assets/lost-passport-GLaDRSNa.js","assets/Done-QX8JUe6j.js","assets/did-address-HLejxWfT.js","assets/Avatar-phMyiuZN.js","assets/Stepper-jB61m6gP.js","assets/start-Zw90S5HQ.js","assets/PlayArrow-lHMXu7Pu.js","assets/ServerLogo-q3dZeMtc.js","assets/addon-1QMy4IRG.js","assets/selector-MhbaknSB.js","assets/setup-sZd9bR8j.js","assets/index-3wOALYwV.js","assets/Skeleton-bZ_Miios.js","assets/Hidden-mWvmgc4A.js","assets/spaces-PqbUeoTO.js","assets/api-dJ8jWDqQ.js","assets/invite-ZFnOF7D-.js","assets/index-KIoBUz9b.js","assets/session-UBJotivU.js","assets/transfer-ZLiabJcr.js","assets/dashboard-u9hZyLwN.js","assets/index-BG8b7I-X.js","assets/permission-hBdmK8vu.js","assets/useAsync-L140-N35.js","assets/MoreVert--r4YINap.js","assets/useLocalStorage-UtHo1ezh.js","assets/confirm-rTEv2cR4.js","assets/DialogContentText-GOi1cMCU.js","assets/Alert-CVBj6K_x.js","assets/format-error-wlUtS96P.js","assets/useSetState-qyJ6mTGB.js","assets/ButtonGroup-WpuCESRm.js","assets/RadioGroup-7FTePFM-.js","assets/FormControlLabel-RXb6vK7s.js","assets/useFormControl-pwVb7wu_.js","assets/FormGroup--UBs69R8.js","assets/index-O5NefLt1.js","assets/fallback-b_zmsVbg.js","assets/wallet-hidden-topbar-bqcwYNs3.js","assets/ListItem-0o0I3uAI.js","assets/index--CyhSTyx.js","assets/nav-menu-Tl5mEfRm.js","assets/MoreHoriz-CgcL_RUW.js","assets/ExpandMore-AjCxxobS.js","assets/Toolbar-yH3XFZuP.js","assets/Checkbox-E7hRdaZx.js","assets/user-_XAxkLCw.js","assets/index-CLYRJvy9.js","assets/index-l2b8-RX7.js","assets/did-utils-HUCV2HWu.js","assets/index.esm-yzdsIZwH.js","assets/confirm-QgU1_PTp.js","assets/Select-S9JKyZyg.js","assets/FormControl-dd94hWMS.js","assets/TextField-mvaGVkiG.js","assets/InputLabel-TPtinWuK.js","assets/InputAdornment-uDUcdmme.js","assets/home-3M89U2oU.js","assets/studio-o1cOhwh6.js","assets/preferences-h7aAXHWa.js","assets/iframe-tVY0Votd.js","assets/localization-57p2YRoa.js","assets/add-resource-WRcoBeLJ.js","assets/add-component-core-rFzl_VX2.js","assets/uniqBy-ngvp8e0L.js","assets/page-header-66OZD-k5.js","assets/lottie-jK27rNdj.js","assets/launch-result-message-ZdZYSlup.js","assets/index-dmjAo0qH.js","assets/EditIcon-iEwSDmTg.js","assets/Google-IOajhpti.js","assets/logo-uploader-zW337Go0.js","assets/index--OWo39zO.js","assets/jss-plugin-props-sort.esm-dCzWy4MH.js","assets/toPropertyKey-NzAT2yhV.js","assets/util-Xu6BqTTW.js","assets/index-jXP9EjwJ.js","assets/TableRow-NtkZR5qp.js","assets/ArrowDropDown-eyRAz4BW.js","assets/Add-Fa_jDVH4.js","assets/Launch-Lgl-88-b.js","assets/DeleteOutline-ldnn034A.js","assets/click-to-copy-H6ULFxkd.js","assets/Search-iVqmV6Op.js","assets/Grid-xUYHRi0b.js","assets/preact.module-yJdvQMHZ.js","assets/content-layout-royTMDoy.js","assets/use-blocklet-info-for-connect-did-spaces-gdL1zKwo.js","assets/index-O-lzERhh.js","assets/add-component-core-wegghUnI.css","assets/publish-resource-6bBVAn-l.js","assets/index-BD3_xRrb.js","assets/index-Drj2DsEg.js","assets/FilterList-2ERNRQaM.js","assets/LastPage-JHHCVMPH.js","assets/index-pXkIJMvn.js","assets/redux-XOuz_cVf.js","assets/ChevronRight-4XdBuB9J.js","assets/Download-6axtZJsQ.js","assets/OpenInNew-UCL6a4s2.js","assets/unsubscribe-QliZKSwU.js","assets/CardContent-11p23WdN.js"]
1440
+ __vite__mapDeps.viteFileDeps = ["assets/login-EhjG48Yw.js","assets/use-passport-id-pXgWCnyq.js","assets/LaunchOutlined-ZzEMLrgz.js","assets/connect-nYhNuMqi.js","assets/index-XSoLlKHE.js","assets/fullpage-a7ojvBVp.js","assets/exchange-passport--BD8S8jX.js","assets/wrap-locale-RacvOmgo.js","assets/issue-passport-HcMt_zdr.js","assets/CheckCircle-EKyY4n73.js","assets/lost-passport-Zuhxyica.js","assets/Done-8vU_Upzq.js","assets/did-address-qq_1T5l2.js","assets/Avatar-40UryW2V.js","assets/Stepper-cuElXodD.js","assets/start-8bpjhQMX.js","assets/PlayArrow-yDXb6jT-.js","assets/ServerLogo-zKRLrZ_t.js","assets/addon-Bog8-kCc.js","assets/selector-F8m6H7ls.js","assets/setup-Q8eWrWcl.js","assets/index-RxmlMTY4.js","assets/Skeleton-SccM_IPU.js","assets/Hidden-85MTYsBc.js","assets/spaces-hhM8J11w.js","assets/api-KhkAYAK1.js","assets/invite-U6iWhMyt.js","assets/index-kE9Ny3to.js","assets/session-JrxJoUmO.js","assets/transfer-rlOoYYgH.js","assets/dashboard-I5vRXleu.js","assets/index-Ro3Si39i.js","assets/permission-z3yQEkWY.js","assets/useAsync-mbLXKNT9.js","assets/MoreVert-js_otO_B.js","assets/useLocalStorage-aXh_Rj3q.js","assets/confirm-sh5q1a0n.js","assets/DialogContentText-IKkXjwY4.js","assets/Alert-msfMnXoL.js","assets/format-error-AwlVbqQ_.js","assets/useSetState--uFjPInN.js","assets/ButtonGroup-YM9idA0S.js","assets/RadioGroup-q_troyXZ.js","assets/FormControlLabel--DtAy8ru.js","assets/useFormControl-1XPmGFai.js","assets/FormGroup-uAQ93T09.js","assets/index-pYu4WiGr.js","assets/fallback-FI7UBCyS.js","assets/wallet-hidden-topbar-UIfeoHPs.js","assets/ListItem-8xgbSCnj.js","assets/index-YpqYtp4Y.js","assets/nav-menu-MsHU6Nrg.js","assets/MoreHoriz-nW6861tu.js","assets/ExpandMore-IA-2iaem.js","assets/Toolbar-VMTR0FH4.js","assets/Checkbox-6b2Wxw9o.js","assets/user-Dz7m3bpJ.js","assets/index-Q8npJK7t.js","assets/index-k76AZIv6.js","assets/did-utils-n-LpEp5G.js","assets/index.esm-sb7FovOt.js","assets/confirm-tcpqKzZB.js","assets/Select-kt7kYpdf.js","assets/FormControl-hdLaFfly.js","assets/TextField-_iwvPvON.js","assets/InputLabel-NZgDieHH.js","assets/InputAdornment-DqlpUqnE.js","assets/home-emaTaf8u.js","assets/studio-VzA8spAy.js","assets/preferences-E_gHyBm2.js","assets/iframe-qCWq1lRA.js","assets/localization-A9q7RwDF.js","assets/add-resource-FFT9Nq-D.js","assets/add-component-core-Wo1tPDwI.js","assets/uniqBy-ce2Rut-n.js","assets/page-header-H2K8sq1W.js","assets/lottie-8GVMnq4j.js","assets/launch-result-message-PfgqBUec.js","assets/index-DMCnrsz9.js","assets/EditIcon-kce6kCKp.js","assets/Google-Q7CSvqZv.js","assets/logo-uploader-wd-ziphC.js","assets/index-HhHxxbfK.js","assets/jss-plugin-props-sort.esm-uATOjvk7.js","assets/toPropertyKey-NzAT2yhV.js","assets/util-VyxQThsV.js","assets/index-a5IVf4Ds.js","assets/TableRow-g8XooIYl.js","assets/ArrowDropDown-u5qE0c6W.js","assets/Add-TPn0Xq2y.js","assets/Launch-eOQU29xS.js","assets/DeleteOutline-VKfxyMcW.js","assets/click-to-copy-TVTLHTem.js","assets/Search-TiKYSEXg.js","assets/Grid-W1BkY5Ap.js","assets/preact.module-yJdvQMHZ.js","assets/content-layout-NIhaYYrz.js","assets/use-blocklet-info-for-connect-did-spaces-xmxqqrX1.js","assets/index-vcrZDM8V.js","assets/add-component-core-wegghUnI.css","assets/publish-resource-oHk38jQi.js","assets/index-bx0V2_nY.js","assets/index-VrHUjlIO.js","assets/FilterList-qFkuKu0i.js","assets/LastPage-8I3Fk9_4.js","assets/index-usQGF3Hd.js","assets/redux-XOuz_cVf.js","assets/ChevronRight-969UYibA.js","assets/Download-dvlwhMcC.js","assets/OpenInNew-LA_Vftw3.js","assets/unsubscribe-knq8tExI.js","assets/CardContent-Q2QI-QCi.js"]
1441
1441
  }
1442
1442
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
1443
1443
  }