@abtnode/webapp 1.16.49 → 1.16.50-beta-20250902-084222-ed7de4a8

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 (186) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-DimT2cks.js → AdapterDayjs-DPswIgNd.js} +1 -1
  4. package/dist/assets/{Add-B2ZDVqat.js → Add-CTkKWsbA.js} +1 -1
  5. package/dist/assets/ArrowDropDown-CPMzkOwU.js +1 -0
  6. package/dist/assets/{Autocomplete-B6hdnAbf.js → Autocomplete-BnpjHbVI.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-C0NyAgW3.js → Breadcrumbs-BcwyHALS.js} +1 -1
  8. package/dist/assets/{ButtonGroup-BxZjrpDd.js → ButtonGroup-B8CEk0Fm.js} +1 -1
  9. package/dist/assets/{CSSTransition-D9w1WbTD.js → CSSTransition-CgU-qJG1.js} +1 -1
  10. package/dist/assets/{CallMerge-CT9kGdYw.js → CallMerge-DG9UCIML.js} +1 -1
  11. package/dist/assets/{CardContent-DZQbbzze.js → CardContent-DUT0SHjO.js} +1 -1
  12. package/dist/assets/{ChevronLeft-C1WpAw9J.js → ChevronLeft-Mrf8wNcO.js} +1 -1
  13. package/dist/assets/{ChevronRight-BHex1y5g.js → ChevronRight-CgNj8oK3.js} +1 -1
  14. package/dist/assets/{Clear-CY2XI9UL.js → Clear-D0eiF7LM.js} +1 -1
  15. package/dist/assets/{DeleteOutline-DCwd4zu5.js → DeleteOutline-BXGUPwfv.js} +1 -1
  16. package/dist/assets/{Done-DvjnHsf4.js → Done-B-4ttL5E.js} +1 -1
  17. package/dist/assets/{Edit-CQvdC-gs.js → Edit-BDZJlnuz.js} +1 -1
  18. package/dist/assets/{ErrorOutline-3x65gte5.js → ErrorOutline-DM8Q-uGO.js} +1 -1
  19. package/dist/assets/{FilterList-C7CgIPm8.js → FilterList-BnK3OcNB.js} +1 -1
  20. package/dist/assets/{Google-Bli8mQj2.js → Google-BnsccEt-.js} +1 -1
  21. package/dist/assets/{HelpOutline-DK_qkp2M.js → HelpOutline-95P320TL.js} +1 -1
  22. package/dist/assets/{Launch-Cazur-Fl.js → Launch-C31ynKKh.js} +1 -1
  23. package/dist/assets/{Link-B32ARgrh.js → Link-DKdN2Z0q.js} +1 -1
  24. package/dist/assets/{ListItemButton-BOWa6EsK.js → ListItemButton-wejxtEoj.js} +1 -1
  25. package/dist/assets/{ListSubheader-59vUoVIT.js → ListSubheader-B_qXJClL.js} +1 -1
  26. package/dist/assets/{LoadingButton-ClNP4uj0.js → LoadingButton-Zo_5FEH-.js} +1 -1
  27. package/dist/assets/{MoreVert-Dnv5meLi.js → MoreVert-Bg7SRP_I.js} +1 -1
  28. package/dist/assets/{OpenInNew-CVZ7jhVw.js → OpenInNew-C4rxt70p.js} +1 -1
  29. package/dist/assets/{Refresh-BU7QWHYu.js → Refresh-L5IK_LF1.js} +1 -1
  30. package/dist/assets/{Search-CviyP5PC.js → Search-2a28Zd0Q.js} +1 -1
  31. package/dist/assets/{Slider-DEcPJiVm.js → Slider-DfrL_KUv.js} +1 -1
  32. package/dist/assets/{Stepper-BXOkpPZl.js → Stepper-B6f7_MVS.js} +1 -1
  33. package/dist/assets/{Switch-C_vix7qp.js → Switch-iXfQHCNE.js} +1 -1
  34. package/dist/assets/{TableSearch-Dsfp_XUr.js → TableSearch-BfqBG8KC.js} +1 -1
  35. package/dist/assets/{ToggleButtonGroup-BRuEkEDq.js → ToggleButtonGroup-CAU8g76h.js} +1 -1
  36. package/dist/assets/{Verified-C1OHOKpp.js → Verified-DFAnifny.js} +1 -1
  37. package/dist/assets/{VerifiedUser-C0M9SrH7.js → VerifiedUser-BFvcT9A-.js} +1 -1
  38. package/dist/assets/{ViewList-_seGVlfH.js → ViewList-BF_nxJjM.js} +1 -1
  39. package/dist/assets/{_createAggregator-s6UGbWKk.js → _createAggregator-DTDqEyEr.js} +1 -1
  40. package/dist/assets/{actions-DaFcSF4Q.js → actions-BfeIbo_G.js} +1 -1
  41. package/dist/assets/{actions-BTM30cO2.js → actions-DcrS1GhL.js} +1 -1
  42. package/dist/assets/{agreement-DSL1Z9Z4.js → agreement-8NAAXeTA.js} +1 -1
  43. package/dist/assets/api-DHdVnqwS.js +1 -0
  44. package/dist/assets/{appearance-B5Fxj0pt.js → appearance-BiJ6lD1T.js} +1 -1
  45. package/dist/assets/{audit-logs-DfhTX_zm.js → audit-logs-xPU-sDla.js} +1 -1
  46. package/dist/assets/{base-chart-CUBovNRp.js → base-chart-CPd4vePQ.js} +1 -1
  47. package/dist/assets/{blocklet-Clk0KDdY.js → blocklet-BwXw89V1.js} +1 -1
  48. package/dist/assets/{chain-Bpi260c_.js → chain-d11c9jLj.js} +1 -1
  49. package/dist/assets/{click-to-copy-BZWirPDQ.js → click-to-copy-mqyEDC5n.js} +1 -1
  50. package/dist/assets/client-CSeQ4CUw.js +1 -0
  51. package/dist/assets/cloneDeep-DrWSOVhF.js +1 -0
  52. package/dist/assets/{collapse-BOYOLC_4.js → collapse-Co_76D-y.js} +1 -1
  53. package/dist/assets/{config-navigation-BEIEFUiN.js → config-navigation-Bxan73e2.js} +3 -3
  54. package/dist/assets/{connect-to-CKfgySWf.js → connect-to-dgAF9yLc.js} +5 -5
  55. package/dist/assets/{cssMode-B5RVclx-.js → cssMode-C31W-e3q.js} +1 -1
  56. package/dist/assets/{delete-confirm-BrhseXop.js → delete-confirm-BBlDevSj.js} +1 -1
  57. package/dist/assets/{depsEqual-msOq5b5x.js → depsEqual-BxsaWGVI.js} +1 -1
  58. package/dist/assets/{detail-BlLW7YjN.js → detail-DAPMqeRx.js} +3 -3
  59. package/dist/assets/{domains-C_4AnOp5.js → domains-24jfdV6n.js} +1 -1
  60. package/dist/assets/{download-DY09iblB.js → download-3kRJTAFI.js} +1 -1
  61. package/dist/assets/{edit.svg-D-BTMQSd.js → edit.svg-BHgQlE3X.js} +1 -1
  62. package/dist/assets/emotion-cache.browser.esm-DKCrrwkN.js +1 -0
  63. package/dist/assets/engine-Cere5Eel.js +1 -0
  64. package/dist/assets/{freemarker2-qOqeJDqa.js → freemarker2-JmP3cv2S.js} +1 -1
  65. package/dist/assets/{get-safe-url-0GDhhKMb.js → get-safe-url-DG3hbVuw.js} +1 -1
  66. package/dist/assets/getValidReactChildren-UBZRExQI.js +1 -0
  67. package/dist/assets/{graphqlMode-K6gJ3gBf.js → graphqlMode-C78Ld2Eu.js} +2 -2
  68. package/dist/assets/{handlebars-CpCfM6TO.js → handlebars-CKF2hLML.js} +1 -1
  69. package/dist/assets/{html-fUKduY5C.js → html-CBskQMFu.js} +1 -1
  70. package/dist/assets/{html-title-HtPlSvGf.js → html-title-F0NEfYXw.js} +1 -1
  71. package/dist/assets/{htmlMode-B-5GmxUH.js → htmlMode-DsG66HOr.js} +1 -1
  72. package/dist/assets/{iframe-CiaMOw3l.js → iframe-B5DJ8-Ji.js} +1 -1
  73. package/dist/assets/{index-BniP3-Ka.js → index-0496i8uI.js} +2 -2
  74. package/dist/assets/{index-B58pv6JK.js → index-2hrGtHmX.js} +1 -1
  75. package/dist/assets/{index-BcVAgGLo.js → index-4ozQpL9g.js} +1 -1
  76. package/dist/assets/{index--IDE3zqS.js → index-B3FIRHqC.js} +1 -1
  77. package/dist/assets/{index-B09qWXEi.js → index-BLMobR0e.js} +1 -1
  78. package/dist/assets/index-BMcGNp8z.js +602 -0
  79. package/dist/assets/{index-De5Caszn.js → index-BShBVqEp.js} +1 -1
  80. package/dist/assets/{index-QEEYyfjs.js → index-BTOhdwnt.js} +1 -1
  81. package/dist/assets/{index-BQl82i43.js → index-BUw2Zomp.js} +1 -1
  82. package/dist/assets/{index-n4_kY89C.js → index-BWyeLBJr.js} +1 -1
  83. package/dist/assets/index-B_D_eWlx.js +1 -0
  84. package/dist/assets/{index-Rr_K0vXu.js → index-BeVhpCa2.js} +1 -1
  85. package/dist/assets/{index-C_Fk7Rzr.js → index-Bj_Te32l.js} +1 -1
  86. package/dist/assets/{index-D1AKo-x3.js → index-C-fYS2zX.js} +1 -1
  87. package/dist/assets/{index-CwANiKOk.js → index-C1YX-486.js} +1 -1
  88. package/dist/assets/{index-BcMFt6jn.js → index-C3erfPAZ.js} +3 -3
  89. package/dist/assets/{index-sz3uFV7b.js → index-CIOQij4h.js} +1 -1
  90. package/dist/assets/{index-DMSf9VmZ.js → index-CN-8L-fW.js} +1 -1
  91. package/dist/assets/{index-DiVM7PAR.js → index-COFGt098.js} +1 -1
  92. package/dist/assets/{index-CB6io54J.js → index-COql_jsK.js} +1 -1
  93. package/dist/assets/{index-C0cmjlmK.js → index-CPewySJ_.js} +1 -1
  94. package/dist/assets/{index-nbCQMVdu.js → index-CTpUEnRG.js} +1 -1
  95. package/dist/assets/{index-N8fONOxR.js → index-ChZ3ki2X.js} +9 -9
  96. package/dist/assets/{index-BCDhEJAj.js → index-ClLVAMtr.js} +1 -1
  97. package/dist/assets/{index-C_i8vZPM.js → index-Cx9xeHC7.js} +1 -1
  98. package/dist/assets/{index-CB3gF2be.js → index-D-LfiN9o.js} +1 -1
  99. package/dist/assets/{index-wdj0FEUp.js → index-D9XGO23S.js} +3 -3
  100. package/dist/assets/{index-daIR3ecn.js → index-D9nLQXCy.js} +1 -1
  101. package/dist/assets/{index-tE5HA0JS.js → index-DAw4DSiR.js} +1 -1
  102. package/dist/assets/{index-NeEbDyYj.js → index-DCkFWlji.js} +1 -1
  103. package/dist/assets/{index-BVwfeTfE.js → index-DDIG3-mk.js} +1 -1
  104. package/dist/assets/{index-DCr9iA79.js → index-DGDUIal5.js} +1 -1
  105. package/dist/assets/{index-Cs7boeoz.js → index-DKPVTl-I.js} +1 -1
  106. package/dist/assets/{index-BMlarUaU.js → index-DPKaJazb.js} +1 -1
  107. package/dist/assets/{index-Bz1WmE2z.js → index-DocroCwn.js} +1 -1
  108. package/dist/assets/{index-BhIGrRjA.js → index-DpRx2tZw.js} +1 -1
  109. package/dist/assets/{index-DGDwJTNO.js → index-Dsvvy8_K.js} +1 -1
  110. package/dist/assets/{index-Dm676q-V.js → index-H1nowJu-.js} +1 -1
  111. package/dist/assets/{index-k6Jydhg7.js → index-Mg5Ud6gu.js} +1 -1
  112. package/dist/assets/{index-C21lcN-6.js → index-OGdXuzH7.js} +3 -3
  113. package/dist/assets/{index-Cp668Jsm.js → index-OdvXHPqT.js} +112 -112
  114. package/dist/assets/{index-DNBJ_q-W.js → index-R68RI5nS.js} +1 -1
  115. package/dist/assets/{index-DLs4lvkb.js → index-Y2ocg0We.js} +1 -1
  116. package/dist/assets/{index-BuNutR9F.js → index-g2Hjwa9j.js} +1 -1
  117. package/dist/assets/{index-CEcRkbK_.js → index-x8ZFxnS7.js} +1 -1
  118. package/dist/assets/{index.esm-BWXMXe80.js → index.esm-Dt7UO6Gw.js} +1 -1
  119. package/dist/assets/{install-from-url-CvXm7zrQ.js → install-from-url-DP36MlN0.js} +1 -1
  120. package/dist/assets/{invitation-Bbd0EUPN.js → invitation-Iv5T__li.js} +1 -1
  121. package/dist/assets/{is-path-prefix-equal-9dPZdPqq.js → is-path-prefix-equal-DVbPRsdH.js} +1 -1
  122. package/dist/assets/{item-Czk-LxVv.js → item-D5nrOHxx.js} +1 -1
  123. package/dist/assets/{javascript-Df4-_tCH.js → javascript-DwMwjVUG.js} +1 -1
  124. package/dist/assets/{jsonMode-lPvmVuEc.js → jsonMode-Dw4fMRhD.js} +1 -1
  125. package/dist/assets/{liquid-iErrkmsS.js → liquid-9EaYCIu3.js} +1 -1
  126. package/dist/assets/{list-header-D9Jtipco.js → list-header-DofW2Ftc.js} +1 -1
  127. package/dist/assets/{log-D_Iy4G-2.js → log-DaGgK84T.js} +1 -1
  128. package/dist/assets/{lottie-react.esm-CLF_w70g.js → lottie-react.esm-tNmLlP7P.js} +1 -1
  129. package/dist/assets/{mdx-CpiXAgeN.js → mdx-WQ_--1yL.js} +1 -1
  130. package/dist/assets/{memory-0tMnFTeS.js → memory-BPr31Oys.js} +1 -1
  131. package/dist/assets/{metric-Blz-YEnp.js → metric-D2ucAHiH.js} +1 -1
  132. package/dist/assets/omit-BPHBFoDu.js +1 -0
  133. package/dist/assets/{overview-DQoppCkb.js → overview-CCPEnAHB.js} +1 -1
  134. package/dist/assets/{permission-Dq4G1Nhn.js → permission-CUvNs2Zv.js} +1 -1
  135. package/dist/assets/{preference-5drfcglD.js → preference-BN0Jy77b.js} +3 -3
  136. package/dist/assets/{python-DXxIcyYN.js → python-C_uQOER7.js} +1 -1
  137. package/dist/assets/{raf-schd.esm-le4x5qzb.js → raf-schd.esm-DUMXV33K.js} +1 -1
  138. package/dist/assets/{razor-DEo7ceFX.js → razor-Bf6ygvvd.js} +1 -1
  139. package/dist/assets/{rotate-session-key-omld1AuK.js → rotate-session-key-BdVsr217.js} +1 -1
  140. package/dist/assets/{runtime-myPRlwBo.js → runtime-B54DBemf.js} +1 -1
  141. package/dist/assets/schema-C8eqaAts.js +1 -0
  142. package/dist/assets/sdk-B2QHgBcr.js +1 -0
  143. package/dist/assets/{service-M1mmil55.js → service-CcQaRfy1.js} +1 -1
  144. package/dist/assets/{shorten-label-Dwsld825.js → shorten-label-CPrM7klu.js} +1 -1
  145. package/dist/assets/{simple-select-C7PnNUpe.js → simple-select-Y6nLlyX-.js} +1 -1
  146. package/dist/assets/{spaces-Dz6osU8D.js → spaces-DfU2dhr-.js} +1 -1
  147. package/dist/assets/{status-Dk7whVRe.js → status-DjEtZNUr.js} +1 -1
  148. package/dist/assets/{status-DC_uFdhU.js → status-tQggAyS9.js} +1 -1
  149. package/dist/assets/{switch-control-Dg5zSUdo.js → switch-control-LS_NeTom.js} +1 -1
  150. package/dist/assets/{table-icons-jOs3s3dQ.js → table-icons-LUDdTh3T.js} +1 -1
  151. package/dist/assets/{team-D3LeaCxJ.js → team-Dyq5wP2P.js} +1 -1
  152. package/dist/assets/{toLower-D7KlZyXh.js → toLower-B8SBWvWe.js} +1 -1
  153. package/dist/assets/toUpper-z0GOUGgF.js +1 -0
  154. package/dist/assets/{traffic-Dh32_ebe.js → traffic-DgBk3o2N.js} +1 -1
  155. package/dist/assets/{tsMode-BXE5NTFR.js → tsMode-_qFiyVuf.js} +1 -1
  156. package/dist/assets/{typescript-Cyw-SWET.js → typescript-BClkULc3.js} +1 -1
  157. package/dist/assets/{url-evaluation-ZlHZwvb8.js → url-evaluation-DgbmtLnr.js} +1 -1
  158. package/dist/assets/{url-join-BaK21hdG.js → url-join-CTs-nsh5.js} +1 -1
  159. package/dist/assets/{use-mobile-fb1R4sTD.js → use-mobile-BeKGXAC7.js} +1 -1
  160. package/dist/assets/{use-mobile-DmPwZVyR.js → use-mobile-Yz2bScih.js} +1 -1
  161. package/dist/assets/{useAsync-mK5hkfXk.js → useAsync-DkpPqR2N.js} +1 -1
  162. package/dist/assets/{useAsyncRetry-Bz9aJRiB.js → useAsyncRetry-Xbq1Vu1J.js} +1 -1
  163. package/dist/assets/{useLocalStorage-D39oHiv_.js → useLocalStorage-BRX7xEeE.js} +1 -1
  164. package/dist/assets/{useThemeProps-CEesX7e5.js → useThemeProps-B8kKGfuj.js} +1 -1
  165. package/dist/assets/{util-B3o9CH5x.js → util-Cw9ZhkhZ.js} +1 -1
  166. package/dist/assets/{wait-container-Cq-OhUMI.js → wait-container-CESBMuDe.js} +1 -1
  167. package/dist/assets/{without-wallet-BK9y4GG-.js → without-wallet-DfzBh9gC.js} +1 -1
  168. package/dist/assets/{wrap-locale-BDWmzfGR.js → wrap-locale-Bz8sQEwG.js} +1 -1
  169. package/dist/assets/{xml-C7AOEa-o.js → xml-DgLvDwTZ.js} +1 -1
  170. package/dist/assets/{yaml-D87QX20d.js → yaml-CBYpsbMl.js} +1 -1
  171. package/dist/index.html +1 -1
  172. package/dist/service-worker.js +1 -1
  173. package/package.json +1 -1
  174. package/dist/assets/ArrowDropDown-DTUdke6O.js +0 -1
  175. package/dist/assets/api-BDClPnhH.js +0 -1
  176. package/dist/assets/client-BeAJe0yS.js +0 -1
  177. package/dist/assets/cloneDeep-BPw0K7hq.js +0 -1
  178. package/dist/assets/emotion-cache.browser.esm-B-0g7s2E.js +0 -1
  179. package/dist/assets/engine-CjGipQ8H.js +0 -1
  180. package/dist/assets/getValidReactChildren-CS8vN0Dc.js +0 -1
  181. package/dist/assets/index-31DGwfk5.js +0 -602
  182. package/dist/assets/index-DWCHUGMU.js +0 -1
  183. package/dist/assets/omit-kqOgzbK4.js +0 -1
  184. package/dist/assets/schema-B6D_WZyG.js +0 -1
  185. package/dist/assets/sdk-BbOdEeFV.js +0 -1
  186. package/dist/assets/toUpper-j7Or1KIp.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as i,N as t,dn as m,L as h,r as g,s as _,be as u,aE as f,o as n}from"./index-Cp668Jsm.js";function b({icon:e,value:a,name:r,url:o="",animated:s=!1,LinkComponent:p=h,loading:x=!1}){const d=()=>u.isValidElement(e)?e:i.jsx(t,{component:f,icon:e,alt:typeof r=="string"?r:"",sx:{fontSize:30}});if(x)return i.jsxs(c,{children:[e&&i.jsx(t,{className:"metric__image",children:i.jsx(m,{variant:"circular",width:32,height:32})}),i.jsxs(t,{children:[i.jsx(m,{className:`metric__number ${s?"metric__number--animated":""}`,variant:"rounded",width:160,height:"36px",sx:{mb:1}}),i.jsx(m,{className:"metric__name",variant:"rounded",width:80,height:20})]})]});const l=i.jsxs(i.Fragment,{children:[e&&i.jsx(t,{className:"metric__image",children:d()}),i.jsxs(t,{children:[g.isValidElement(a)?i.jsx(t,{className:`metric__number ${s?"metric__number--animated":""}`,children:a}):i.jsx(t,{className:`metric__number ${s?"metric__number--animated":""}`,dangerouslySetInnerHTML:{__html:a}}),i.jsx(t,{className:"metric__name",children:r})]})]});return i.jsx(c,{children:o?i.jsx(p,{href:o,sx:{textDecoration:"none"},children:l}):l})}b.propTypes={icon:n.string.isRequired,value:n.string.isRequired,name:n.string.isRequired,url:n.string,animated:n.bool,LinkComponent:n.elementType,loading:n.bool};const c=_(t)`
1
+ import{j as i,N as t,dn as m,L as h,r as g,s as _,be as u,aE as f,o as n}from"./index-OdvXHPqT.js";function b({icon:e,value:a,name:r,url:o="",animated:s=!1,LinkComponent:p=h,loading:x=!1}){const d=()=>u.isValidElement(e)?e:i.jsx(t,{component:f,icon:e,alt:typeof r=="string"?r:"",sx:{fontSize:30}});if(x)return i.jsxs(c,{children:[e&&i.jsx(t,{className:"metric__image",children:i.jsx(m,{variant:"circular",width:32,height:32})}),i.jsxs(t,{children:[i.jsx(m,{className:`metric__number ${s?"metric__number--animated":""}`,variant:"rounded",width:160,height:"36px",sx:{mb:1}}),i.jsx(m,{className:"metric__name",variant:"rounded",width:80,height:20})]})]});const l=i.jsxs(i.Fragment,{children:[e&&i.jsx(t,{className:"metric__image",children:d()}),i.jsxs(t,{children:[g.isValidElement(a)?i.jsx(t,{className:`metric__number ${s?"metric__number--animated":""}`,children:a}):i.jsx(t,{className:`metric__number ${s?"metric__number--animated":""}`,dangerouslySetInnerHTML:{__html:a}}),i.jsx(t,{className:"metric__name",children:r})]})]});return i.jsx(c,{children:o?i.jsx(p,{href:o,sx:{textDecoration:"none"},children:l}):l})}b.propTypes={icon:n.string.isRequired,value:n.string.isRequired,name:n.string.isRequired,url:n.string,animated:n.bool,LinkComponent:n.elementType,loading:n.bool};const c=_(t)`
2
2
  border-left: 1px solid ${e=>e.theme.palette.divider};
3
3
  padding: 10px 0 10px 16px;
4
4
  @media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
@@ -0,0 +1 @@
1
+ import{dw as e,h1 as r}from"./index-OdvXHPqT.js";const a=e(r);export{a as r};
@@ -1,4 +1,4 @@
1
- import{r as m,o as E,m as T,bn as Y,e as X,j as e,W as g,N as s,az as k,v as J,aE as p,g$ as ee,cY as te,P as oe,p as ne,cj as se,T as y,G as _,E as w,y as ae,aR as C,bf as q,k as re,s as le}from"./index-Cp668Jsm.js";import{H as ie}from"./HelpOutline-DK_qkp2M.js";import{d as ce,V as de}from"./status-Dk7whVRe.js";import{f as R}from"./index-BojVbZw0.js";import{v as me}from"./index-CwANiKOk.js";import{u as ue}from"./blocklet-Clk0KDdY.js";import{u as pe}from"./team-D3LeaCxJ.js";import{M as he}from"./metric-Blz-YEnp.js";import{a as xe}from"./spaces-Dz6osU8D.js";import"./index-DWCHUGMU.js";import"./ErrorOutline-3x65gte5.js";import"./omit-kqOgzbK4.js";import"./url-evaluation-ZlHZwvb8.js";import"./api-BDClPnhH.js";const ge={width:24,height:24,body:'<path fill="currentColor" d="m12 10.8l-3.9 3.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.6-4.6q.3-.3.7-.3t.7.3l4.6 4.6q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 10.8Z"/>'},fe={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 17a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm12 0a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2zM9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2zM6 15v-1a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1m-6-6v3"/>'},ve={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 7a4 4 0 1 0 8 0a4 4 0 1 0-8 0M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2m1-17.87a4 4 0 0 1 0 7.75M21 21v-2a4 4 0 0 0-3-3.85"/>'},ke={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M7 12h3v4H7z"/><path d="M10 6H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-6"/><path d="M10 4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1zm4 12h2m-2-4h4"/></g>'},je={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M19.5 7A9 9 0 0 0 12 3a8.991 8.991 0 0 0-7.484 4"/><path d="M11.5 3a16.989 16.989 0 0 0-1.826 4M12.5 3a16.989 16.989 0 0 1 1.828 4M19.5 17a9 9 0 0 1-7.5 4a8.991 8.991 0 0 1-7.484-4"/><path d="M11.5 21a16.989 16.989 0 0 1-1.826-4m2.826 4a16.989 16.989 0 0 0 1.828-4M2 10l1 4l1.5-4L6 14l1-4m10 0l1 4l1.5-4l1.5 4l1-4M9.5 10l1 4l1.5-4l1.5 4l1-4"/></g>'},O={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0"/><path d="M12 7v5l3 3"/></g>'},be={width:24,height:24,body:'<path fill="currentColor" d="M12 14q-.825 0-1.413-.588T10 12q0-.825.588-1.413T12 10q.825 0 1.413.588T14 12q0 .825-.588 1.413T12 14Zm0 7q-3.475 0-6.025-2.288T3.05 13H5.1q.35 2.6 2.313 4.3T12 19q2.925 0 4.963-2.038T19 12q0-2.925-2.038-4.963T12 5q-1.725 0-3.225.8T6.25 8H9v2H3V4h2v2.35q1.275-1.6 3.113-2.475T12 3q1.875 0 3.513.713t2.85 1.924q1.212 1.213 1.925 2.85T21 12q0 1.875-.713 3.513t-1.924 2.85q-1.213 1.212-2.85 1.925T12 21Z"/>'},f={oneSecond:1,oneMin:1*60,oneHour:1*60*60,oneDay:24*60*60},Se=(t,a)=>{const[o,r]=m.useState(0),i=x=>x>=f.oneDay?f.oneDay:x>=f.oneHour?f.oneHour:x>=f.oneMin?f.oneMin:f.oneSecond,[u,h]=m.useState(i(t/1e3));return m.useEffect(()=>{const x=setInterval(()=>{r(o+u);const A=i(t/1e3+o+u);u!==A&&h(A)},u*1e3);return()=>clearInterval(x)},[u,o]),m.useEffect(()=>{r(0),h(i(t/1e3))},[t]),a(t+o*1e3)};E.number.isRequired,E.func;const we={arcblock:"ArcBlock",ethereum:"Ethereum"};function L({source:t,migrated:a}){const{t:o}=T();return t?t.startsWith("managed")?e.jsxs(s,{sx:{display:"flex",alignItems:"center",gap:.5},children:[e.jsx(y,{children:t}),e.jsx(k,{title:o(a?"blocklet.skSourceMigratedTip":"blocklet.skSourceManagedTip"),children:e.jsx(C,{sx:{fontSize:16,color:a?"text.secondary":"warning.main"}})})]}):e.jsx(y,{children:t}):null}L.propTypes={source:E.string.isRequired,migrated:E.bool.isRequired};const ye=t=>{const{t:a}=T();let o=0,r=0;t&&(o=t.length,r=t.filter(u=>u.status==="running").length);let i=o;return r&&(i+=`<small>${a("common.running")} ${r}</small>`),i},Te=(t,a)=>{const{t:o}=T();return a.length?e.jsxs(s,{component:"small",children:[o("router.domainAlias.custom")," ",a.length]}):e.jsxs(s,{component:"small",sx:{display:"flex",alignItems:"center",gap:.5,color:a.length?"text.primary":"warning.main"},children:[o("router.domainAlias.noCustom"),e.jsx(k,{title:o("router.domainAlias.noCustomTip"),children:e.jsx(C,{sx:{fontSize:16}})})]})},Ae=(t,a)=>{const o=t===w.BACKUPS.STATUS.PROGRESS&&q().diff(a,"hours")>=w.BACKUPS.TIMEOUT_HOURS,r=t===w.BACKUPS.STATUS.PROGRESS&&!o;return t===w.BACKUPS.STATUS.SUCCEEDED&&!o?e.jsx(s,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"success.main"}}):r?e.jsx(s,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"error.main"}}):e.jsx(s,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"warning.main"}})},Ie=(t,a)=>{const{t:o,locale:r}=T(),i=a?.createdAt;return t&&i?e.jsxs(s,{sx:{display:"flex",alignItems:"baseline",gap:.5,color:q(i).add(1,"day").isAfter(q())?"text.primary":"warning.main"},children:[R(i,r==="tw"?"zh":r),e.jsx(k,{title:o("storage.spaces.backup.lastBackupTip",{time:R(i,r==="tw"?"zh":r)}),children:e.jsx(C,{sx:{fontSize:16}})})]}):e.jsxs(s,{sx:{display:"flex",alignItems:"baseline",gap:.5,color:"warning.main",fontSize:30},children:[o("storage.spaces.backup.noBackup"),e.jsx(k,{title:o("storage.spaces.backup.noBackupTip"),children:e.jsx(C,{sx:{fontSize:16}})})]})},v={fontSize:30,color:"text.primary"};function Le(){const{t,locale:a}=T(),{info:o,inService:r,api:i}=Y(),{teamDid:u}=pe(),[h,x]=m.useState(!1),{did:A,blocklet:n}=ue(),c=X(()=>i.getBlockletBaseInfo({input:{teamDid:u}})),{appDid:D,appPid:B,migratedFrom:j=[]}=n,$=n.environments.find(l=>l.key==="BLOCKLET_APP_CHAIN_TYPE")?.value,I=l=>typeof l!="number"||Number.isNaN(l)?"0":l>=1e4?new Intl.NumberFormat(a,{notation:"compact",compactDisplay:"short"}).format(l):new Intl.NumberFormat(a).format(l),P=[D?{name:t("blocklet.appId"),value:e.jsx(g,{did:D,showQrcode:!0})}:null,B&&D!==B?{name:e.jsxs(s,{children:[t("blocklet.appPid"),e.jsx(k,{title:t("blocklet.whyNeedAppPid"),style:{cursor:"help",fontSize:16},children:e.jsx(ie,{sx:{verticalAlign:"middle",mt:"-2px",ml:"2px"}})})]}),value:e.jsx(g,{did:B,showQrcode:!0})}:null,j?.length>1?{name:t("blocklet.alsoKnownAs"),value:e.jsxs("div",{children:[(h?j.slice(1):j.slice(1,2)).map(l=>e.jsx(g,{did:l.appDid,showQrcode:!0})),j.length>2&&e.jsx(J,{sx:{pl:0,"&:hover":{backgroundColor:"transparent"}},endIcon:h?e.jsx(p,{icon:ge}):e.jsx(p,{icon:ce}),onClick:()=>x(!h),children:t(h?"common.collapseAll":"blocklet.router.showAllDIDs")})]})}:null,ee(n)?{name:"NFT",value:e.jsx(g,{external:!0,href:te(n?.controller?.chainHost,n?.controller?.nftId,"asset"),did:n?.controller?.nftId,showQrcode:!0})}:null,{name:t("common.owner"),value:n.settings?.owner?e.jsx(g,{did:n.settings.owner.did,showQrcode:!0}):"-"},n.vaults?.length?{name:t("blocklet.config.vault.name"),value:e.jsxs(s,{sx:{display:"flex",alignItems:"center",gap:.5,"& > span":{width:"auto"}},children:[e.jsx(g,{did:n.vaults[n.vaults.length-1].did,showQrcode:!0}),e.jsx(de,{vaults:n.vaults,appPid:n.appPid})]})}:null,{name:t("blocklet.installedAt"),value:n.installedAt?e.jsx(oe,{value:n.installedAt,type:"all",locale:a}):"-"},{name:t("blocklet.config.walletType.name"),value:we[$||"arcblock"]||$},n.externalSkSource?{name:t("blocklet.skSource"),value:e.jsx(L,{source:n.externalSkSource,migrated:j.length>0})}:null].filter(Boolean);r&&P.push({name:t("common.serverDid"),value:e.jsx(g,{did:o.did,showQrcode:!0})},{name:t("common.serverVersion"),value:e.jsx(ne,{children:o.version})});const K=l=>l.map(d=>e.jsx(me,{style:{display:"flex",alignItems:"flex-start"},valueComponent:"div",nameWidth:150,name:d.name,nameFormatter:()=>d.name,children:d.value},d.name)),Q=ye(n.children),z=Number(c?.value?.appRuntimeInfo?.uptime||0),W=Se(z,l=>re(l,{compact:!0,verbose:!0,locale:a==="tw"?"zh":a})),M=m.useMemo(()=>n?.site?.domainAliases||[],[n?.site?.domainAliases]),F=m.useMemo(()=>M.filter(l=>se.isCustomDomain(l.value)),[M]),V=Te(M,F),N=m.useMemo(()=>c?.value?.passport||{},[c?.value?.passport]),U=m.useMemo(()=>c?.value?.user||{},[c?.value?.user]),H=m.useMemo(()=>xe(n?.environments),[n?.environments]),G=Ie(H,c?.value?.backup),b=(l,d)=>`${w.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${l}/${d}`,S=l=>{const d=o?.routing?.adminPath;return ae(d,`/blocklets/${A}/${l}`)},Z=[{name:t("common.blocklets"),value:Q,icon:e.jsx(s,{component:p,icon:fe,sx:v}),url:r?b("overview","components"):S("components")},{loading:c?.loading,name:t("common.members"),value:`${I(U?.users||0)}<small>${t("common.active")} ${I(U?.approvedUsers)}</small>`,icon:e.jsx(s,{component:p,icon:ve,sx:v}),url:r?b("did-connect","members"):S("members")},{loading:c?.loading,name:t("team.member.passports"),value:`${I(N?.passports||0)}<small>${t("common.active")} ${I(N?.activePassports)}</small>`,icon:e.jsx(s,{component:p,icon:ke,sx:v}),url:r?b("did-connect","passports"):S("passports")},{loading:c?.loading,name:t("common.domains"),value:e.jsxs(s,{sx:{display:"flex",alignItems:"baseline"},children:[M.length,V]}),icon:e.jsx(s,{component:p,icon:je,sx:v}),url:r?b("website","domains"):S("domains")},{loading:c?.loading,name:t("common.uptime"),value:z?W:e.jsx(s,{sx:{fontSize:28,color:"text.secondary"},children:`${t("common.waiting")}...`}),icon:e.jsx(s,{component:p,icon:O,sx:v})},n.createdAt&&+new Date(n.createdAt)!=+new Date(0)?{name:t("common.created"),value:R(new Date(n.createdAt).getTime(),a==="tw"?"zh":a),icon:e.jsx(s,{component:p,icon:O,sx:v})}:null,{loading:c?.loading,name:e.jsxs(s,{sx:{display:"flex",alignItems:"baseline",gap:.5},children:[t("storage.spaces.backup.lastBackup"),c?.value?.backup&&H&&e.jsx(k,{children:Ae(c?.value?.backup?.status,c?.value?.backup?.createdAt)})]}),value:G,icon:e.jsx(s,{component:p,icon:be,sx:v}),url:r?b("did-spaces","backups"):S("didSpaces")}].filter(Boolean);return e.jsxs(Me,{component:"div",children:[e.jsxs(s,{className:"section",children:[e.jsx(y,{className:"section__header",color:"textPrimary",children:t("common.overview")}),e.jsx(_,{className:"page-metrics",container:!0,spacing:5,children:Z.map(({icon:l,...d})=>e.jsx(_,{sx:{small:{ml:.5}},size:{xl:1.5,lg:3,md:4,sm:6,xs:6},children:e.jsx(he,{...d})},d.name))})]}),e.jsxs(s,{className:"section",children:[e.jsx(y,{className:"section__header",color:"textPrimary",children:t("common.basicInfo")}),e.jsx(s,{className:"basicInfo",children:K(P)})]})]})}const Me=le(y)`
1
+ import{r as m,o as E,m as T,bn as Y,e as X,j as e,W as g,N as s,az as k,v as J,aE as p,g$ as ee,cY as te,P as oe,p as ne,cj as se,T as y,G as _,E as w,y as ae,aR as C,bf as q,k as re,s as le}from"./index-OdvXHPqT.js";import{H as ie}from"./HelpOutline-95P320TL.js";import{d as ce,V as de}from"./status-DjEtZNUr.js";import{f as R}from"./index-BojVbZw0.js";import{v as me}from"./index-C1YX-486.js";import{u as ue}from"./blocklet-BwXw89V1.js";import{u as pe}from"./team-Dyq5wP2P.js";import{M as he}from"./metric-D2ucAHiH.js";import{a as xe}from"./spaces-DfU2dhr-.js";import"./index-B_D_eWlx.js";import"./ErrorOutline-DM8Q-uGO.js";import"./omit-BPHBFoDu.js";import"./url-evaluation-DgbmtLnr.js";import"./api-DHdVnqwS.js";const ge={width:24,height:24,body:'<path fill="currentColor" d="m12 10.8l-3.9 3.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.6-4.6q.3-.3.7-.3t.7.3l4.6 4.6q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 10.8Z"/>'},fe={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 17a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm12 0a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2zM9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2zM6 15v-1a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1m-6-6v3"/>'},ve={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 7a4 4 0 1 0 8 0a4 4 0 1 0-8 0M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2m1-17.87a4 4 0 0 1 0 7.75M21 21v-2a4 4 0 0 0-3-3.85"/>'},ke={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M7 12h3v4H7z"/><path d="M10 6H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-6"/><path d="M10 4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1zm4 12h2m-2-4h4"/></g>'},je={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M19.5 7A9 9 0 0 0 12 3a8.991 8.991 0 0 0-7.484 4"/><path d="M11.5 3a16.989 16.989 0 0 0-1.826 4M12.5 3a16.989 16.989 0 0 1 1.828 4M19.5 17a9 9 0 0 1-7.5 4a8.991 8.991 0 0 1-7.484-4"/><path d="M11.5 21a16.989 16.989 0 0 1-1.826-4m2.826 4a16.989 16.989 0 0 0 1.828-4M2 10l1 4l1.5-4L6 14l1-4m10 0l1 4l1.5-4l1.5 4l1-4M9.5 10l1 4l1.5-4l1.5 4l1-4"/></g>'},O={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0"/><path d="M12 7v5l3 3"/></g>'},be={width:24,height:24,body:'<path fill="currentColor" d="M12 14q-.825 0-1.413-.588T10 12q0-.825.588-1.413T12 10q.825 0 1.413.588T14 12q0 .825-.588 1.413T12 14Zm0 7q-3.475 0-6.025-2.288T3.05 13H5.1q.35 2.6 2.313 4.3T12 19q2.925 0 4.963-2.038T19 12q0-2.925-2.038-4.963T12 5q-1.725 0-3.225.8T6.25 8H9v2H3V4h2v2.35q1.275-1.6 3.113-2.475T12 3q1.875 0 3.513.713t2.85 1.924q1.212 1.213 1.925 2.85T21 12q0 1.875-.713 3.513t-1.924 2.85q-1.213 1.212-2.85 1.925T12 21Z"/>'},f={oneSecond:1,oneMin:1*60,oneHour:1*60*60,oneDay:24*60*60},Se=(t,a)=>{const[o,r]=m.useState(0),i=x=>x>=f.oneDay?f.oneDay:x>=f.oneHour?f.oneHour:x>=f.oneMin?f.oneMin:f.oneSecond,[u,h]=m.useState(i(t/1e3));return m.useEffect(()=>{const x=setInterval(()=>{r(o+u);const A=i(t/1e3+o+u);u!==A&&h(A)},u*1e3);return()=>clearInterval(x)},[u,o]),m.useEffect(()=>{r(0),h(i(t/1e3))},[t]),a(t+o*1e3)};E.number.isRequired,E.func;const we={arcblock:"ArcBlock",ethereum:"Ethereum"};function L({source:t,migrated:a}){const{t:o}=T();return t?t.startsWith("managed")?e.jsxs(s,{sx:{display:"flex",alignItems:"center",gap:.5},children:[e.jsx(y,{children:t}),e.jsx(k,{title:o(a?"blocklet.skSourceMigratedTip":"blocklet.skSourceManagedTip"),children:e.jsx(C,{sx:{fontSize:16,color:a?"text.secondary":"warning.main"}})})]}):e.jsx(y,{children:t}):null}L.propTypes={source:E.string.isRequired,migrated:E.bool.isRequired};const ye=t=>{const{t:a}=T();let o=0,r=0;t&&(o=t.length,r=t.filter(u=>u.status==="running").length);let i=o;return r&&(i+=`<small>${a("common.running")} ${r}</small>`),i},Te=(t,a)=>{const{t:o}=T();return a.length?e.jsxs(s,{component:"small",children:[o("router.domainAlias.custom")," ",a.length]}):e.jsxs(s,{component:"small",sx:{display:"flex",alignItems:"center",gap:.5,color:a.length?"text.primary":"warning.main"},children:[o("router.domainAlias.noCustom"),e.jsx(k,{title:o("router.domainAlias.noCustomTip"),children:e.jsx(C,{sx:{fontSize:16}})})]})},Ae=(t,a)=>{const o=t===w.BACKUPS.STATUS.PROGRESS&&q().diff(a,"hours")>=w.BACKUPS.TIMEOUT_HOURS,r=t===w.BACKUPS.STATUS.PROGRESS&&!o;return t===w.BACKUPS.STATUS.SUCCEEDED&&!o?e.jsx(s,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"success.main"}}):r?e.jsx(s,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"error.main"}}):e.jsx(s,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"warning.main"}})},Ie=(t,a)=>{const{t:o,locale:r}=T(),i=a?.createdAt;return t&&i?e.jsxs(s,{sx:{display:"flex",alignItems:"baseline",gap:.5,color:q(i).add(1,"day").isAfter(q())?"text.primary":"warning.main"},children:[R(i,r==="tw"?"zh":r),e.jsx(k,{title:o("storage.spaces.backup.lastBackupTip",{time:R(i,r==="tw"?"zh":r)}),children:e.jsx(C,{sx:{fontSize:16}})})]}):e.jsxs(s,{sx:{display:"flex",alignItems:"baseline",gap:.5,color:"warning.main",fontSize:30},children:[o("storage.spaces.backup.noBackup"),e.jsx(k,{title:o("storage.spaces.backup.noBackupTip"),children:e.jsx(C,{sx:{fontSize:16}})})]})},v={fontSize:30,color:"text.primary"};function Le(){const{t,locale:a}=T(),{info:o,inService:r,api:i}=Y(),{teamDid:u}=pe(),[h,x]=m.useState(!1),{did:A,blocklet:n}=ue(),c=X(()=>i.getBlockletBaseInfo({input:{teamDid:u}})),{appDid:D,appPid:B,migratedFrom:j=[]}=n,$=n.environments.find(l=>l.key==="BLOCKLET_APP_CHAIN_TYPE")?.value,I=l=>typeof l!="number"||Number.isNaN(l)?"0":l>=1e4?new Intl.NumberFormat(a,{notation:"compact",compactDisplay:"short"}).format(l):new Intl.NumberFormat(a).format(l),P=[D?{name:t("blocklet.appId"),value:e.jsx(g,{did:D,showQrcode:!0})}:null,B&&D!==B?{name:e.jsxs(s,{children:[t("blocklet.appPid"),e.jsx(k,{title:t("blocklet.whyNeedAppPid"),style:{cursor:"help",fontSize:16},children:e.jsx(ie,{sx:{verticalAlign:"middle",mt:"-2px",ml:"2px"}})})]}),value:e.jsx(g,{did:B,showQrcode:!0})}:null,j?.length>1?{name:t("blocklet.alsoKnownAs"),value:e.jsxs("div",{children:[(h?j.slice(1):j.slice(1,2)).map(l=>e.jsx(g,{did:l.appDid,showQrcode:!0})),j.length>2&&e.jsx(J,{sx:{pl:0,"&:hover":{backgroundColor:"transparent"}},endIcon:h?e.jsx(p,{icon:ge}):e.jsx(p,{icon:ce}),onClick:()=>x(!h),children:t(h?"common.collapseAll":"blocklet.router.showAllDIDs")})]})}:null,ee(n)?{name:"NFT",value:e.jsx(g,{external:!0,href:te(n?.controller?.chainHost,n?.controller?.nftId,"asset"),did:n?.controller?.nftId,showQrcode:!0})}:null,{name:t("common.owner"),value:n.settings?.owner?e.jsx(g,{did:n.settings.owner.did,showQrcode:!0}):"-"},n.vaults?.length?{name:t("blocklet.config.vault.name"),value:e.jsxs(s,{sx:{display:"flex",alignItems:"center",gap:.5,"& > span":{width:"auto"}},children:[e.jsx(g,{did:n.vaults[n.vaults.length-1].did,showQrcode:!0}),e.jsx(de,{vaults:n.vaults,appPid:n.appPid})]})}:null,{name:t("blocklet.installedAt"),value:n.installedAt?e.jsx(oe,{value:n.installedAt,type:"all",locale:a}):"-"},{name:t("blocklet.config.walletType.name"),value:we[$||"arcblock"]||$},n.externalSkSource?{name:t("blocklet.skSource"),value:e.jsx(L,{source:n.externalSkSource,migrated:j.length>0})}:null].filter(Boolean);r&&P.push({name:t("common.serverDid"),value:e.jsx(g,{did:o.did,showQrcode:!0})},{name:t("common.serverVersion"),value:e.jsx(ne,{children:o.version})});const K=l=>l.map(d=>e.jsx(me,{style:{display:"flex",alignItems:"flex-start"},valueComponent:"div",nameWidth:150,name:d.name,nameFormatter:()=>d.name,children:d.value},d.name)),Q=ye(n.children),z=Number(c?.value?.appRuntimeInfo?.uptime||0),W=Se(z,l=>re(l,{compact:!0,verbose:!0,locale:a==="tw"?"zh":a})),M=m.useMemo(()=>n?.site?.domainAliases||[],[n?.site?.domainAliases]),F=m.useMemo(()=>M.filter(l=>se.isCustomDomain(l.value)),[M]),V=Te(M,F),N=m.useMemo(()=>c?.value?.passport||{},[c?.value?.passport]),U=m.useMemo(()=>c?.value?.user||{},[c?.value?.user]),H=m.useMemo(()=>xe(n?.environments),[n?.environments]),G=Ie(H,c?.value?.backup),b=(l,d)=>`${w.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${l}/${d}`,S=l=>{const d=o?.routing?.adminPath;return ae(d,`/blocklets/${A}/${l}`)},Z=[{name:t("common.blocklets"),value:Q,icon:e.jsx(s,{component:p,icon:fe,sx:v}),url:r?b("overview","components"):S("components")},{loading:c?.loading,name:t("common.members"),value:`${I(U?.users||0)}<small>${t("common.active")} ${I(U?.approvedUsers)}</small>`,icon:e.jsx(s,{component:p,icon:ve,sx:v}),url:r?b("did-connect","members"):S("members")},{loading:c?.loading,name:t("team.member.passports"),value:`${I(N?.passports||0)}<small>${t("common.active")} ${I(N?.activePassports)}</small>`,icon:e.jsx(s,{component:p,icon:ke,sx:v}),url:r?b("did-connect","passports"):S("passports")},{loading:c?.loading,name:t("common.domains"),value:e.jsxs(s,{sx:{display:"flex",alignItems:"baseline"},children:[M.length,V]}),icon:e.jsx(s,{component:p,icon:je,sx:v}),url:r?b("website","domains"):S("domains")},{loading:c?.loading,name:t("common.uptime"),value:z?W:e.jsx(s,{sx:{fontSize:28,color:"text.secondary"},children:`${t("common.waiting")}...`}),icon:e.jsx(s,{component:p,icon:O,sx:v})},n.createdAt&&+new Date(n.createdAt)!=+new Date(0)?{name:t("common.created"),value:R(new Date(n.createdAt).getTime(),a==="tw"?"zh":a),icon:e.jsx(s,{component:p,icon:O,sx:v})}:null,{loading:c?.loading,name:e.jsxs(s,{sx:{display:"flex",alignItems:"baseline",gap:.5},children:[t("storage.spaces.backup.lastBackup"),c?.value?.backup&&H&&e.jsx(k,{children:Ae(c?.value?.backup?.status,c?.value?.backup?.createdAt)})]}),value:G,icon:e.jsx(s,{component:p,icon:be,sx:v}),url:r?b("did-spaces","backups"):S("didSpaces")}].filter(Boolean);return e.jsxs(Me,{component:"div",children:[e.jsxs(s,{className:"section",children:[e.jsx(y,{className:"section__header",color:"textPrimary",children:t("common.overview")}),e.jsx(_,{className:"page-metrics",container:!0,spacing:5,children:Z.map(({icon:l,...d})=>e.jsx(_,{sx:{small:{ml:.5}},size:{xl:1.5,lg:3,md:4,sm:6,xs:6},children:e.jsx(he,{...d})},d.name))})]}),e.jsxs(s,{className:"section",children:[e.jsx(y,{className:"section__header",color:"textPrimary",children:t("common.basicInfo")}),e.jsx(s,{className:"basicInfo",children:K(P)})]})]})}const Me=le(y)`
2
2
  .section {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1 +1 @@
1
- import{n as m,j as l,o as n}from"./index-Cp668Jsm.js";function c({permission:i="",role:t="",component:e=null,children:o=null}){const{session:r}=m();let s=!0;const u=[].concat(i).filter(Boolean),f=[].concat(t).filter(Boolean);if(u.length){const p=r.user&&r.user.permissions||[];s=u.some(a=>p.includes(a))}return s&&f.length&&(s=f.includes(r.user.role)),typeof e=="function"?e(s):typeof o=="function"?o(s):s&&(e||o)||null}function g(i,t,e){return function(r){return l.jsx(c,{permission:t,role:e,children:s=>l.jsx(i,{...r,hasPermission:s})})}}c.propTypes={permission:n.oneOfType([n.string,n.arrayOf(n.string)]),role:n.oneOfType([n.string,n.arrayOf(n.string)]),component:n.oneOfType([n.func,n.node]),children:n.oneOfType([n.func,n.node])};export{c as P,g as w};
1
+ import{n as m,j as l,o as n}from"./index-OdvXHPqT.js";function c({permission:i="",role:t="",component:e=null,children:o=null}){const{session:r}=m();let s=!0;const u=[].concat(i).filter(Boolean),f=[].concat(t).filter(Boolean);if(u.length){const p=r.user&&r.user.permissions||[];s=u.some(a=>p.includes(a))}return s&&f.length&&(s=f.includes(r.user.role)),typeof e=="function"?e(s):typeof o=="function"?o(s):s&&(e||o)||null}function g(i,t,e){return function(r){return l.jsx(c,{permission:t,role:e,children:s=>l.jsx(i,{...r,hasPermission:s})})}}c.propTypes={permission:n.oneOfType([n.string,n.arrayOf(n.string)]),role:n.oneOfType([n.string,n.arrayOf(n.string)]),component:n.oneOfType([n.func,n.node]),children:n.oneOfType([n.func,n.node])};export{c as P,g as w};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-wdj0FEUp.js","./index-Cp668Jsm.js","./index-DGkT7afN.css","./url-join-BaK21hdG.js","./index-n4_kY89C.js","./_createAggregator-s6UGbWKk.js","./depsEqual-msOq5b5x.js","./index-BhIGrRjA.js","./index-DRYJ0xIl.js","./toUpper-j7Or1KIp.js","./index-B5LvOF-F.css"])))=>i.map(i=>d[i]);
2
- import{aG as Pe,j as x,s as Ie,N as W,be as fe,a4 as ne,dH as ze,dK as qe,dI as Oe,bu as Fe,dJ as $e,U as We,o as w,r as F,g as Ue,t as Ne,C as De,f4 as Ve,bi as Xe,hv as Be,m as Ge,dG as ue,y as se,bE as Me,bn as He,E as Ke}from"./index-Cp668Jsm.js";import{r as Qe}from"./omit-kqOgzbK4.js";import{r as Je}from"./index-n4_kY89C.js";import{D as Ze}from"./Done-DvjnHsf4.js";import{R as Ye}from"./collapse-BOYOLC_4.js";import{e as et}from"./edit.svg-D-BTMQSd.js";import{A as tt}from"./ArrowDropDown-DTUdke6O.js";import{B as rt}from"./ButtonGroup-BxZjrpDd.js";import{c as it}from"./index-BhIGrRjA.js";import{I as at}from"./iframe-CiaMOw3l.js";const Lt=Pe(x.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1q-.09-.03-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}));var K={exports:{}},V={},Q={exports:{}},L={},J={exports:{}},G={},ce;function _e(){if(ce)return G;ce=1;function r(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function n(e,c,g){}function o(e,c,g){}var a=/javascript\s*\:/img;function v(e,c){return a.test(c)?"":c}return G.whiteList=r(),G.getDefaultWhiteList=r,G.onAttr=n,G.onIgnoreAttr=o,G.safeAttrValue=v,G}var Y,pe;function Ee(){return pe||(pe=1,Y={indexOf:function(r,n){var o,a;if(Array.prototype.indexOf)return r.indexOf(n);for(o=0,a=r.length;o<a;o++)if(r[o]===n)return o;return-1},forEach:function(r,n,o){var a,v;if(Array.prototype.forEach)return r.forEach(n,o);for(a=0,v=r.length;a<v;a++)n.call(o,r[a],a,r)},trim:function(r){return String.prototype.trim?r.trim():r.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(r){return String.prototype.trimRight?r.trimRight():r.replace(/(\s*$)/g,"")}}),Y}var ee,de;function nt(){if(de)return ee;de=1;var r=Ee();function n(o,a){o=r.trimRight(o),o[o.length-1]!==";"&&(o+=";");var v=o.length,e=!1,c=0,g=0,y="";function k(){if(!e){var p=r.trim(o.slice(c,g)),i=p.indexOf(":");if(i!==-1){var s=r.trim(p.slice(0,i)),d=r.trim(p.slice(i+1));if(s){var l=a(c,y.length,s,d,p);l&&(y+=l+"; ")}}}c=g+1}for(;g<v;g++){var _=o[g];if(_==="/"&&o[g+1]==="*"){var t=o.indexOf("*/",g+2);if(t===-1)break;g=t+1,c=g+1,e=!1}else _==="("?e=!0:_===")"?e=!1:_===";"?e||k():_===`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-D9XGO23S.js","./index-OdvXHPqT.js","./index-DGkT7afN.css","./url-join-CTs-nsh5.js","./index-BWyeLBJr.js","./_createAggregator-DTDqEyEr.js","./depsEqual-BxsaWGVI.js","./index-DpRx2tZw.js","./index-DRYJ0xIl.js","./toUpper-z0GOUGgF.js","./index-B5LvOF-F.css"])))=>i.map(i=>d[i]);
2
+ import{aG as Pe,j as x,s as Ie,N as W,be as fe,a4 as ne,dH as ze,dK as qe,dI as Oe,bu as Fe,dJ as $e,U as We,o as w,r as F,g as Ue,t as Ne,C as De,f4 as Ve,bi as Xe,hv as Be,m as Ge,dG as ue,y as se,bE as Me,bn as He,E as Ke}from"./index-OdvXHPqT.js";import{r as Qe}from"./omit-BPHBFoDu.js";import{r as Je}from"./index-BWyeLBJr.js";import{D as Ze}from"./Done-B-4ttL5E.js";import{R as Ye}from"./collapse-Co_76D-y.js";import{e as et}from"./edit.svg-BHgQlE3X.js";import{A as tt}from"./ArrowDropDown-CPMzkOwU.js";import{B as rt}from"./ButtonGroup-B8CEk0Fm.js";import{c as it}from"./index-DpRx2tZw.js";import{I as at}from"./iframe-B5DJ8-Ji.js";const Lt=Pe(x.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1q-.09-.03-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}));var K={exports:{}},V={},Q={exports:{}},L={},J={exports:{}},G={},ce;function _e(){if(ce)return G;ce=1;function r(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function n(e,c,g){}function o(e,c,g){}var a=/javascript\s*\:/img;function v(e,c){return a.test(c)?"":c}return G.whiteList=r(),G.getDefaultWhiteList=r,G.onAttr=n,G.onIgnoreAttr=o,G.safeAttrValue=v,G}var Y,pe;function Ee(){return pe||(pe=1,Y={indexOf:function(r,n){var o,a;if(Array.prototype.indexOf)return r.indexOf(n);for(o=0,a=r.length;o<a;o++)if(r[o]===n)return o;return-1},forEach:function(r,n,o){var a,v;if(Array.prototype.forEach)return r.forEach(n,o);for(a=0,v=r.length;a<v;a++)n.call(o,r[a],a,r)},trim:function(r){return String.prototype.trim?r.trim():r.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(r){return String.prototype.trimRight?r.trimRight():r.replace(/(\s*$)/g,"")}}),Y}var ee,de;function nt(){if(de)return ee;de=1;var r=Ee();function n(o,a){o=r.trimRight(o),o[o.length-1]!==";"&&(o+=";");var v=o.length,e=!1,c=0,g=0,y="";function k(){if(!e){var p=r.trim(o.slice(c,g)),i=p.indexOf(":");if(i!==-1){var s=r.trim(p.slice(0,i)),d=r.trim(p.slice(i+1));if(s){var l=a(c,y.length,s,d,p);l&&(y+=l+"; ")}}}c=g+1}for(;g<v;g++){var _=o[g];if(_==="/"&&o[g+1]==="*"){var t=o.indexOf("*/",g+2);if(t===-1)break;g=t+1,c=g+1,e=!1}else _==="("?e=!0:_===")"?e=!1:_===";"?e||k():_===`
3
3
  `&&k()}return r.trim(y)}return ee=n,ee}var te,ge;function st(){if(ge)return te;ge=1;var r=_e(),n=nt();Ee();function o(e){return e==null}function a(e){var c={};for(var g in e)c[g]=e[g];return c}function v(e){e=a(e||{}),e.whiteList=e.whiteList||r.whiteList,e.onAttr=e.onAttr||r.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||r.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||r.safeAttrValue,this.options=e}return v.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var c=this,g=c.options,y=g.whiteList,k=g.onAttr,_=g.onIgnoreAttr,t=g.safeAttrValue,p=n(e,function(i,s,d,l,S){var f=y[d],u=!1;if(f===!0?u=f:typeof f=="function"?u=f(l):f instanceof RegExp&&(u=f.test(l)),u!==!0&&(u=!1),l=t(d,l),!!l){var T={position:s,sourcePosition:i,source:S,isWhite:u};if(u){var A=k(d,l,T);return o(A)?d+":"+l:A}else{var A=_(d,l,T);if(!o(A))return A}}});return p},te=v,te}var he;function oe(){return he||(he=1,function(r,n){var o=_e(),a=st();function v(c,g){var y=new a(g);return y.process(c)}n=r.exports=v,n.FilterCSS=a;for(var e in o)n[e]=o[e];typeof window<"u"&&(window.filterCSS=r.exports)}(J,J.exports)),J.exports}var re,me;function le(){return me||(me=1,re={indexOf:function(r,n){var o,a;if(Array.prototype.indexOf)return r.indexOf(n);for(o=0,a=r.length;o<a;o++)if(r[o]===n)return o;return-1},forEach:function(r,n,o){var a,v;if(Array.prototype.forEach)return r.forEach(n,o);for(a=0,v=r.length;a<v;a++)n.call(o,r[a],a,r)},trim:function(r){return String.prototype.trim?r.trim():r.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(r){var n=/\s|\n|\t/,o=n.exec(r);return o?o.index:-1}}),re}var ve;function Ce(){if(ve)return L;ve=1;var r=oe().FilterCSS,n=oe().getDefaultWhiteList,o=le();function a(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var v=new r;function e(h,I,m){}function c(h,I,m){}function g(h,I,m){}function y(h,I,m){}function k(h){return h.replace(t,"&lt;").replace(p,"&gt;")}function _(h,I,m,b){if(m=$(m),I==="href"||I==="src"){if(m=o.trim(m),m==="#")return"#";if(!(m.substr(0,7)==="http://"||m.substr(0,8)==="https://"||m.substr(0,7)==="mailto:"||m.substr(0,4)==="tel:"||m.substr(0,11)==="data:image/"||m.substr(0,6)==="ftp://"||m.substr(0,2)==="./"||m.substr(0,3)==="../"||m[0]==="#"||m[0]==="/"))return""}else if(I==="background"){if(f.lastIndex=0,f.test(m))return""}else if(I==="style"){if(u.lastIndex=0,u.test(m)||(T.lastIndex=0,T.test(m)&&(f.lastIndex=0,f.test(m))))return"";b!==!1&&(b=b||v,m=b.process(m))}return m=P(m),m}var t=/</g,p=/>/g,i=/"/g,s=/&quot;/g,d=/&#([a-zA-Z0-9]*);?/gim,l=/&colon;?/gim,S=/&newline;?/gim,f=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,u=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,T=/u\s*r\s*l\s*\(.*/gi;function A(h){return h.replace(i,"&quot;")}function E(h){return h.replace(s,'"')}function C(h){return h.replace(d,function(m,b){return b[0]==="x"||b[0]==="X"?String.fromCharCode(parseInt(b.substr(1),16)):String.fromCharCode(parseInt(b,10))})}function R(h){return h.replace(l,":").replace(S," ")}function q(h){for(var I="",m=0,b=h.length;m<b;m++)I+=h.charCodeAt(m)<32?" ":h.charAt(m);return o.trim(I)}function $(h){return h=E(h),h=C(h),h=R(h),h=q(h),h}function P(h){return h=A(h),h=k(h),h}function z(){return""}function B(h,I){typeof I!="function"&&(I=function(){});var m=!Array.isArray(h);function b(O){return m?!0:o.indexOf(h,O)!==-1}var j=[],N=!1;return{onIgnoreTag:function(O,M,D){if(b(O))if(D.isClosing){var H="[/removed]",je=D.position+H.length;return j.push([N!==!1?N:D.position,je]),N=!1,H}else return N||(N=D.position),"[removed]";else return I(O,M,D)},remove:function(O){var M="",D=0;return o.forEach(j,function(H){M+=O.slice(D,H[0]),D=H[1]}),M+=O.slice(D),M}}}function X(h){for(var I="",m=0;m<h.length;){var b=h.indexOf("<!--",m);if(b===-1){I+=h.slice(m);break}I+=h.slice(m,b);var j=h.indexOf("-->",b);if(j===-1)break;m=j+3}return I}function U(h){var I=h.split("");return I=I.filter(function(m){var b=m.charCodeAt(0);return b===127?!1:b<=31?b===10||b===13:!0}),I.join("")}return L.whiteList=a(),L.getDefaultWhiteList=a,L.onTag=e,L.onIgnoreTag=c,L.onTagAttr=g,L.onIgnoreTagAttr=y,L.safeAttrValue=_,L.escapeHtml=k,L.escapeQuote=A,L.unescapeQuote=E,L.escapeHtmlEntities=C,L.escapeDangerHtml5Entities=R,L.clearNonPrintableCharacter=q,L.friendlyAttrValue=$,L.escapeAttrValue=P,L.onIgnoreTagStripAll=z,L.StripTagBody=B,L.stripCommentTag=X,L.stripBlankChar=U,L.attributeWrapSign='"',L.cssFilter=v,L.getDefaultCSSWhiteList=n,L}var Z={},be;function Le(){if(be)return Z;be=1;var r=le();function n(t){var p=r.spaceIndex(t),i;return p===-1?i=t.slice(1,-1):i=t.slice(1,p+1),i=r.trim(i).toLowerCase(),i.slice(0,1)==="/"&&(i=i.slice(1)),i.slice(-1)==="/"&&(i=i.slice(0,-1)),i}function o(t){return t.slice(0,2)==="</"}function a(t,p,i){var s="",d=0,l=!1,S=!1,f=0,u=t.length,T="",A="";e:for(f=0;f<u;f++){var E=t.charAt(f);if(l===!1){if(E==="<"){l=f;continue}}else if(S===!1){if(E==="<"){s+=i(t.slice(d,f)),l=f,d=f;continue}if(E===">"||f===u-1){s+=i(t.slice(d,l)),A=t.slice(l,f+1),T=n(A),s+=p(l,s.length,T,A,o(A)),d=f+1,l=!1;continue}if(E==='"'||E==="'")for(var C=1,R=t.charAt(f-C);R.trim()===""||R==="=";){if(R==="="){S=E;continue e}R=t.charAt(f-++C)}}else if(E===S){S=!1;continue}}return d<u&&(s+=i(t.substr(d))),s}var v=/[^a-zA-Z0-9\\_:.-]/gim;function e(t,p){var i=0,s=0,d=[],l=!1,S=t.length;function f(C,R){if(C=r.trim(C),C=C.replace(v,"").toLowerCase(),!(C.length<1)){var q=p(C,R||"");q&&d.push(q)}}for(var u=0;u<S;u++){var T=t.charAt(u),A,E;if(l===!1&&T==="="){l=t.slice(i,u),i=u+1,s=t.charAt(i)==='"'||t.charAt(i)==="'"?i:g(t,u+1);continue}if(l!==!1&&u===s){if(E=t.indexOf(T,u+1),E===-1)break;A=r.trim(t.slice(s+1,E)),f(l,A),l=!1,u=E,i=u+1;continue}if(/\s|\n|\t/.test(T))if(t=t.replace(/\s|\n|\t/g," "),l===!1)if(E=c(t,u),E===-1){A=r.trim(t.slice(i,u)),f(A),l=!1,i=u+1;continue}else{u=E-1;continue}else if(E=y(t,u-1),E===-1){A=r.trim(t.slice(i,u)),A=_(A),f(l,A),l=!1,i=u+1;continue}else continue}return i<t.length&&(l===!1?f(t.slice(i)):f(l,_(r.trim(t.slice(i))))),r.trim(d.join(" "))}function c(t,p){for(;p<t.length;p++){var i=t[p];if(i!==" ")return i==="="?p:-1}}function g(t,p){for(;p<t.length;p++){var i=t[p];if(i!==" ")return i==="'"||i==='"'?p:-1}}function y(t,p){for(;p>0;p--){var i=t[p];if(i!==" ")return i==="="?p:-1}}function k(t){return t[0]==='"'&&t[t.length-1]==='"'||t[0]==="'"&&t[t.length-1]==="'"}function _(t){return k(t)?t.substr(1,t.length-2):t}return Z.parseTag=a,Z.parseAttr=e,Z}var ie,xe;function ot(){if(xe)return ie;xe=1;var r=oe().FilterCSS,n=Ce(),o=Le(),a=o.parseTag,v=o.parseAttr,e=le();function c(t){return t==null}function g(t){var p=e.spaceIndex(t);if(p===-1)return{html:"",closing:t[t.length-2]==="/"};t=e.trim(t.slice(p+1,-1));var i=t[t.length-1]==="/";return i&&(t=e.trim(t.slice(0,-1))),{html:t,closing:i}}function y(t){var p={};for(var i in t)p[i]=t[i];return p}function k(t){var p={};for(var i in t)Array.isArray(t[i])?p[i.toLowerCase()]=t[i].map(function(s){return s.toLowerCase()}):p[i.toLowerCase()]=t[i];return p}function _(t){t=y(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=n.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=k(t.whiteList||t.allowList):t.whiteList=n.whiteList,this.attributeWrapSign=t.singleQuotedAttributeValue===!0?"'":n.attributeWrapSign,t.onTag=t.onTag||n.onTag,t.onTagAttr=t.onTagAttr||n.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||n.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||n.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||n.safeAttrValue,t.escapeHtml=t.escapeHtml||n.escapeHtml,this.options=t,t.css===!1?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new r(t.css))}return _.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var p=this,i=p.options,s=i.whiteList,d=i.onTag,l=i.onIgnoreTag,S=i.onTagAttr,f=i.onIgnoreTagAttr,u=i.safeAttrValue,T=i.escapeHtml,A=p.attributeWrapSign,E=p.cssFilter;i.stripBlankChar&&(t=n.stripBlankChar(t)),i.allowCommentTag||(t=n.stripCommentTag(t));var C=!1;i.stripIgnoreTagBody&&(C=n.StripTagBody(i.stripIgnoreTagBody,l),l=C.onIgnoreTag);var R=a(t,function(q,$,P,z,B){var X={sourcePosition:q,position:$,isClosing:B,isWhite:Object.prototype.hasOwnProperty.call(s,P)},U=d(P,z,X);if(!c(U))return U;if(X.isWhite){if(X.isClosing)return"</"+P+">";var h=g(z),I=s[P],m=v(h.html,function(b,j){var N=e.indexOf(I,b)!==-1,O=S(P,b,j,N);return c(O)?N?(j=u(P,b,j,E),j?b+"="+A+j+A:b):(O=f(P,b,j,N),c(O)?void 0:O):O});return z="<"+P,m&&(z+=" "+m),h.closing&&(z+=" /"),z+=">",z}else return U=l(P,z,X),c(U)?T(z):U},T);return C&&(R=C.remove(R)),R},ie=_,ie}var ye;function lt(){return ye||(ye=1,function(r,n){var o=Ce(),a=Le(),v=ot();function e(g,y){var k=new v(y);return k.process(g)}n=r.exports=e,n.filterXSS=e,n.FilterXSS=v,function(){for(var g in o)n[g]=o[g];for(var y in a)n[y]=a[y]}(),typeof window<"u"&&(window.filterXSS=r.exports);function c(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}c()&&(self.filterXSS=r.exports)}(Q,Q.exports)),Q.exports}var we;function ft(){if(we)return V;we=1,Object.defineProperty(V,"__esModule",{value:!0}),V.sanitizeSvg=V.isSvgFile=V.initSanitize=void 0;var r=e(lt()),n=a(Qe),o=a(Je());function a(s){return s&&s.__esModule?s:{default:s}}function v(s){if(typeof WeakMap!="function")return null;var d=new WeakMap,l=new WeakMap;return(v=function(S){return S?l:d})(s)}function e(s,d){if(s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var l=v(d);if(l&&l.has(s))return l.get(s);var S={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in s)if(u!=="default"&&{}.hasOwnProperty.call(s,u)){var T=f?Object.getOwnPropertyDescriptor(s,u):null;T&&(T.get||T.set)?Object.defineProperty(S,u,T):S[u]=s[u]}return S.default=s,l&&l.set(s,S),S}const c=["script","img","iframe","body","form","style","link","meta","bgsound","svg","embed","object","video","audio","source","track","marquee","blink","noscript","param","textarea","input","select","button"],g=c.reduce((s,d)=>(s[d]=!0,s),{});let y={escapeHtml:s=>s,whiteList:(0,n.default)(r.getDefaultWhiteList(),c),onIgnoreTag:function(s,d,l){if(g[s])return""},stripIgnoreTagBody:["script"]};const k=(s={})=>{const d={...y,...s},l=new r.FilterXSS(d),S=f=>typeof f=="string"?l.process(f):Array.isArray(f)?f.map(u=>typeof u=="string"?l.process(u):Array.isArray(u)||typeof u=="object"?S(u):u):(typeof f=="object"&&f!==null&&Object.keys(f).forEach(u=>{if(d?.allowedKeys?.includes(u))return;const T=f[u];typeof T=="string"?f[u]=l.process(T):(Array.isArray(T)||typeof T=="object")&&(f[u]=S(T))}),f);return S};V.initSanitize=k;const t={whiteList:{svg:["width","height","viewBox","xmlns","version","preserveAspectRatio","xml:space"],circle:["cx","cy","r","fill","stroke","stroke-width","fill-opacity","stroke-opacity"],ellipse:["cx","cy","rx","ry","fill","stroke","stroke-width"],line:["x1","y1","x2","y2","stroke","stroke-width"],path:["d","fill","stroke","stroke-width","fill-rule","stroke-linecap","stroke-linejoin"],polygon:["points","fill","stroke","stroke-width"],polyline:["points","fill","stroke","stroke-width"],rect:["x","y","width","height","rx","ry","fill","stroke","stroke-width"],g:["transform","fill","stroke"],text:["x","y","font-size","font-family","text-anchor","fill"],defs:[],clipPath:["id"],mask:["id"],use:["x","y","width","height"],linearGradient:["id","x1","y1","x2","y2","gradientUnits"],radialGradient:["id","cx","cy","r","fx","fy","gradientUnits"],stop:["offset","stop-color","stop-opacity"],pattern:["id","width","height","patternUnits","patternTransform"]},stripIgnoreTagBody:["script","style"],onIgnoreTag:function(s,d,l){return""},onIgnoreTagAttr:function(s,d,l,S){if(d.startsWith("on")||d==="href"||d==="xlink:href")return"";if(d==="style"){const f=l.replace(/expression\(.*\)|javascript:|data:|@import|behavior|binding|moz-binding/gi,"");return f!==l?"":`${d}="${f}"`}if(s==="use"&&(d==="href"||d==="xlink:href"))return l.startsWith("#")&&!/[<>"']/.test(l)?`${d}="${l}"`:"";if(d==="id"||d==="class")return`${d}="${l}"`}},p=s=>{if(!i(s))throw new Error("Invalid SVG content");return new r.FilterXSS(t).process(s)};V.sanitizeSvg=p;const i=(s,d)=>!(typeof s!="string"||!/<svg[^>]*?(?:>|\/>)|<\?xml[^>]*>\s*<svg[^>]*?(?:>|\/?>)/i.test(s)||d?.name&&o.default.extname(d.name).toLowerCase()!==".svg"||d?.type&&!d.type.toLowerCase().includes("image/svg"));return V.isSvgFile=i,V}var ke;function ut(){return ke||(ke=1,function(r,n){Object.defineProperty(n,"__esModule",{value:!0});var o={xss:!0};n.xss=v;var a=ft();Object.keys(a).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(o,e)||e in n&&n[e]===a[e]||Object.defineProperty(n,e,{enumerable:!0,get:function(){return a[e]}})});function v(e={}){const c=(0,a.initSanitize)(e);return(g,y,k)=>{["body","params","headers","query"].forEach(_=>{g[_]&&(g[_]=c(g[_]))}),k()}}r.exports={xss:v,initSanitize:a.initSanitize,isSvgFile:a.isSvgFile,sanitizeSvg:a.sanitizeSvg}}(K,K.exports)),K.exports}var ae,Se;function ct(){if(Se)return ae;Se=1;const{initSanitize:r}=ut();return ae={sanitizeTag:a=>!a||typeof a!="string"?a:r({whiteList:{},stripIgnoreTag:!1,stripIgnoreTagBody:[],onIgnoreTag:(e,c)=>c.replace(/</g,"&lt;").replace(/>/g,"&gt;"),onIgnoreTagAttr:(e,c,g)=>`${c}="${g}"`,onTag:(e,c)=>c.replace(/</g,"&lt;").replace(/>/g,"&gt;"),escapeHtml:e=>e.replace(/</g,"&lt;").replace(/>/g,"&gt;")})(a),escapeTag:a=>!a||typeof a!="string"?a:r({whiteList:{},stripIgnoreTag:!1,onIgnoreTag:(e,c)=>c.replace(/</g,"&lt;").replace(/>/g,"&gt;"),onIgnoreTagAttr:(e,c,g)=>`${c}="${g}"`,stripIgnoreTagBody:[],escapeHtml:e=>e.replace(/</g,"&lt;").replace(/>/g,"&gt;")})(a)},ae}var Rt=ct();const pt=Ie(W)`
4
4
  width: 100%;
5
5
  flex-grow: 1;
@@ -108,7 +108,7 @@ import{aG as Pe,j as x,s as Ie,N as W,be as fe,a4 as ne,dH as ze,dK as qe,dI as
108
108
  25%, 75% {
109
109
  transform: scale(1.1) translateX(3px);
110
110
  }
111
- `;function gt({label:r="",disabled:n=!1,required:o=!1,initialValue:a="",onChange:v=()=>{},placeholder:e="",style:c={},onSubmit:g=()=>{},secure:y=!1,type:k="",triggers:_=[],formatterBeforeSubmit:t=null,directEditing:p=!1,autoFocus:i=!0,errorTips:s="",...d}){const[l,S]=F.useState(p),[f,u]=F.useState(!1),{t:T}=F.useContext(Ue),[A,E]=F.useState(y&&a==="__encrypted__"?null:a),[C,R]=F.useState(A),[q,$]=F.useState(!1),[P,z]=F.useState(!1),B=async()=>{u(!0);try{if(await g(C)===!1)R(A);else{let j=C;typeof t=="function"&&(j=t(C)),R(j),E(j),$(!1)}}catch{R(A)}finally{u(!1),S(!1)}};F.useEffect(()=>{const b=y&&a==="__encrypted__"?null:a;b!==A&&(E(b),R(b),$(!1))},[a,y,A]);const X=b=>{$(b!==C),R(b),v(b)},U=b=>{b.key==="Enter"&&B()},h=F.useCallback(()=>{z(!0),setTimeout(()=>{z(!1)},500)},[]),I=()=>{if(p&&!n&&!f){B();return}q&&h(),!q&&!n&&!f&&(S(!1),$(!1))},m=l||p?x.jsx(Ne,{style:{flex:1},fullWidth:!0,value:C,onChange:b=>{X(b.target.value)},autoFocus:i,size:"small",variant:"outlined",placeholder:e,onKeyDown:U,onBlur:I,disabled:n,error:!!s,type:y?"password":k||"text",...d}):x.jsx(W,{"data-cy":"schema-form-item-edit",className:"form-item-input slot",style:{whiteSpace:"pre-wrap",cursor:"text"},onClick:()=>{n||S(!0)},sx:{px:1},children:Ae(C,y,a)?Ae(C,y,a):x.jsx("span",{className:"placeholder",children:T("common.requiredInputPlaceholder",{name:e||r})})});return x.jsx(pt,{className:"form",style:c,children:x.jsxs(W,{children:[x.jsxs(W,{className:"form-item-label",children:[r,o&&x.jsx(Ye,{})]}),x.jsxs(W,{className:"form-item-body",style:{alignItems:"flex-start"},children:[x.jsx(W,{className:"form-item-input",children:m}),x.jsx(W,{className:"form-item-action",style:{marginLeft:!_.length||p?0:12},children:l&&!p?x.jsxs(x.Fragment,{children:[q?x.jsx(ne,{"data-cy":"schema-form-item-confirm",onClick:B,disabled:n||f||!q,sx:{animation:P?`${dt} 0.5s linear`:"none"},style:{paddingRight:4},size:"large",children:f?x.jsx(De,{size:24}):x.jsx(Ze,{})}):null,x.jsx(ne,{"data-cy":"schema-form-item-cancel",onClick:()=>{R(A),S(!1),$(!1)},style:{paddingLeft:q?4:8},disabled:n||f,size:"large",children:x.jsx(Ve,{})})]}):x.jsx(W,{children:_.length?x.jsx(Re,{triggers:_,disabled:n}):null})})]}),s&&x.jsx(Xe,{error:!0,children:s})]})})}gt.propTypes={style:w.object,onSubmit:w.func,onChange:w.func,label:w.string,initialValue:w.string,placeholder:w.string,required:w.bool,disabled:w.bool,secure:w.bool,triggers:w.array,formatterBeforeSubmit:w.func,directEditing:w.bool,type:w.string,autoFocus:w.bool,errorTips:w.string};const ht=F.lazy(()=>Me(()=>import("./index-wdj0FEUp.js").then(r=>r.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(r=>({default:r.Uploader}))),mt="/blocklet/logo/upload",Te=[".png",".jpg",".jpeg",".webp",".bmp",".ico"];function vt({url:r,height:n=80,width:o="auto",enabled:a=!0,allowSVG:v=!0,type:e,did:c,prefix:g,headers:y=ue,aspectRatio:k=1,minWidth:_=256,minHeight:t=256,onUploaded:p=ue,children:i=null}){const{t:s,locale:d}=Ge(),l=F.useRef(null),S=()=>{l.current?.open()},f=()=>{p(),l.current?.close()},u={cursor:a?"pointer":"default","&::after":{content:`"${s("common.switch")}"`}};return x.jsxs(bt,{id:`uploader-${c}-${e}`,children:[x.jsx(ht,{ref:l,locale:d,popup:!0,onUploadFinish:f,plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:se(g,mt,e,c),disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileExts:v?[...Te,".svg"]:Te,maxFileSize:1024*1024*5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:k,initialAspectRatio:k,croppedCanvasOptions:{minWidth:_,minHeight:t}}},tusProps:{headers:y}}),i?x.jsx(W,{onClick:S,children:i}):x.jsx(W,{className:it("uploader-wrapper",a&&"enabled"),sx:u,onClick:S,children:x.jsx("img",{alt:e,src:r,style:{width:o,height:n}})})]},`uploader-${c}-${e}`)}vt.propTypes={url:w.string.isRequired,type:w.oneOf(["square","rect","favicon","splash-portrait","splash-landscape","og-image"]).isRequired,did:w.string.isRequired,prefix:w.string.isRequired,headers:w.func,onUploaded:w.func,height:w.number,width:w.any,enabled:w.bool,allowSVG:w.bool,aspectRatio:w.number,minWidth:w.number,minHeight:w.number,children:w.node};const bt=Ie.div`
111
+ `;function gt({label:r="",disabled:n=!1,required:o=!1,initialValue:a="",onChange:v=()=>{},placeholder:e="",style:c={},onSubmit:g=()=>{},secure:y=!1,type:k="",triggers:_=[],formatterBeforeSubmit:t=null,directEditing:p=!1,autoFocus:i=!0,errorTips:s="",...d}){const[l,S]=F.useState(p),[f,u]=F.useState(!1),{t:T}=F.useContext(Ue),[A,E]=F.useState(y&&a==="__encrypted__"?null:a),[C,R]=F.useState(A),[q,$]=F.useState(!1),[P,z]=F.useState(!1),B=async()=>{u(!0);try{if(await g(C)===!1)R(A);else{let j=C;typeof t=="function"&&(j=t(C)),R(j),E(j),$(!1)}}catch{R(A)}finally{u(!1),S(!1)}};F.useEffect(()=>{const b=y&&a==="__encrypted__"?null:a;b!==A&&(E(b),R(b),$(!1))},[a,y,A]);const X=b=>{$(b!==C),R(b),v(b)},U=b=>{b.key==="Enter"&&B()},h=F.useCallback(()=>{z(!0),setTimeout(()=>{z(!1)},500)},[]),I=()=>{if(p&&!n&&!f){B();return}q&&h(),!q&&!n&&!f&&(S(!1),$(!1))},m=l||p?x.jsx(Ne,{style:{flex:1},fullWidth:!0,value:C,onChange:b=>{X(b.target.value)},autoFocus:i,size:"small",variant:"outlined",placeholder:e,onKeyDown:U,onBlur:I,disabled:n,error:!!s,type:y?"password":k||"text",...d}):x.jsx(W,{"data-cy":"schema-form-item-edit",className:"form-item-input slot",style:{whiteSpace:"pre-wrap",cursor:"text"},onClick:()=>{n||S(!0)},sx:{px:1},children:Ae(C,y,a)?Ae(C,y,a):x.jsx("span",{className:"placeholder",children:T("common.requiredInputPlaceholder",{name:e||r})})});return x.jsx(pt,{className:"form",style:c,children:x.jsxs(W,{children:[x.jsxs(W,{className:"form-item-label",children:[r,o&&x.jsx(Ye,{})]}),x.jsxs(W,{className:"form-item-body",style:{alignItems:"flex-start"},children:[x.jsx(W,{className:"form-item-input",children:m}),x.jsx(W,{className:"form-item-action",style:{marginLeft:!_.length||p?0:12},children:l&&!p?x.jsxs(x.Fragment,{children:[q?x.jsx(ne,{"data-cy":"schema-form-item-confirm",onClick:B,disabled:n||f||!q,sx:{animation:P?`${dt} 0.5s linear`:"none"},style:{paddingRight:4},size:"large",children:f?x.jsx(De,{size:24}):x.jsx(Ze,{})}):null,x.jsx(ne,{"data-cy":"schema-form-item-cancel",onClick:()=>{R(A),S(!1),$(!1)},style:{paddingLeft:q?4:8},disabled:n||f,size:"large",children:x.jsx(Ve,{})})]}):x.jsx(W,{children:_.length?x.jsx(Re,{triggers:_,disabled:n}):null})})]}),s&&x.jsx(Xe,{error:!0,children:s})]})})}gt.propTypes={style:w.object,onSubmit:w.func,onChange:w.func,label:w.string,initialValue:w.string,placeholder:w.string,required:w.bool,disabled:w.bool,secure:w.bool,triggers:w.array,formatterBeforeSubmit:w.func,directEditing:w.bool,type:w.string,autoFocus:w.bool,errorTips:w.string};const ht=F.lazy(()=>Me(()=>import("./index-D9XGO23S.js").then(r=>r.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(r=>({default:r.Uploader}))),mt="/blocklet/logo/upload",Te=[".png",".jpg",".jpeg",".webp",".bmp",".ico"];function vt({url:r,height:n=80,width:o="auto",enabled:a=!0,allowSVG:v=!0,type:e,did:c,prefix:g,headers:y=ue,aspectRatio:k=1,minWidth:_=256,minHeight:t=256,onUploaded:p=ue,children:i=null}){const{t:s,locale:d}=Ge(),l=F.useRef(null),S=()=>{l.current?.open()},f=()=>{p(),l.current?.close()},u={cursor:a?"pointer":"default","&::after":{content:`"${s("common.switch")}"`}};return x.jsxs(bt,{id:`uploader-${c}-${e}`,children:[x.jsx(ht,{ref:l,locale:d,popup:!0,onUploadFinish:f,plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:se(g,mt,e,c),disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileExts:v?[...Te,".svg"]:Te,maxFileSize:1024*1024*5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:k,initialAspectRatio:k,croppedCanvasOptions:{minWidth:_,minHeight:t}}},tusProps:{headers:y}}),i?x.jsx(W,{onClick:S,children:i}):x.jsx(W,{className:it("uploader-wrapper",a&&"enabled"),sx:u,onClick:S,children:x.jsx("img",{alt:e,src:r,style:{width:o,height:n}})})]},`uploader-${c}-${e}`)}vt.propTypes={url:w.string.isRequired,type:w.oneOf(["square","rect","favicon","splash-portrait","splash-landscape","og-image"]).isRequired,did:w.string.isRequired,prefix:w.string.isRequired,headers:w.func,onUploaded:w.func,height:w.number,width:w.any,enabled:w.bool,allowSVG:w.bool,aspectRatio:w.number,minWidth:w.number,minHeight:w.number,children:w.node};const bt=Ie.div`
112
112
  .uploader-wrapper {
113
113
  display: inline-flex;
114
114
  position: relative;
@@ -1,4 +1,4 @@
1
- import{m as o}from"./index-N8fONOxR.js";import"./index-Cp668Jsm.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
1
+ import{m as o}from"./index-ChZ3ki2X.js";import"./index-OdvXHPqT.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -1 +1 @@
1
- import{id as O,hF as B,r as p}from"./index-Cp668Jsm.js";import{_ as S}from"./typeof-QjJsDpFa.js";import{t as j}from"./redux-DfszZyTl.js";function v(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,o=Array(r);t<r;t++)o[t]=e[t];return o}function M(e,r){if(e){if(typeof e=="string")return v(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,r):void 0}}function N(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&O(e,r)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},g(e)}function k(e,r){if(r&&(S(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(e)}function q(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function b(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,j(o.key),o)}}function z(e,r,t){return r&&b(e.prototype,r),t&&b(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function C(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}function h(e,r){var t=p.useState(function(){return{inputs:r,result:e()}})[0],o=p.useRef(!0),n=p.useRef(t),a=o.current||!!(r&&n.current.inputs&&C(r,n.current.inputs)),i=a?n.current:{inputs:r,result:e()};return p.useEffect(function(){o.current=!1,n.current=i},[i]),i.result}function A(e,r){return h(function(){return e},r)}var D=h,K=A,P="Invariant failed";function _(e,r){throw new Error(P)}var d=function(r){var t=r.top,o=r.right,n=r.bottom,a=r.left,i=o-a,f=n-t,c={top:t,right:o,bottom:n,left:a,width:i,height:f,x:a,y:t,center:{x:(o+a)/2,y:(n+t)/2}};return c},R=function(r,t){return{top:r.top-t.top,left:r.left-t.left,bottom:r.bottom+t.bottom,right:r.right+t.right}},m=function(r,t){return{top:r.top+t.top,left:r.left+t.left,bottom:r.bottom-t.bottom,right:r.right-t.right}},T=function(r,t){return{top:r.top+t.y,left:r.left+t.x,bottom:r.bottom+t.y,right:r.right+t.x}},l={top:0,right:0,bottom:0,left:0},x=function(r){var t=r.borderBox,o=r.margin,n=o===void 0?l:o,a=r.border,i=a===void 0?l:a,f=r.padding,c=f===void 0?l:f,w=d(R(t,n)),s=d(m(t,i)),y=d(m(s,c));return{marginBox:w,borderBox:d(t),paddingBox:s,contentBox:y,margin:n,border:i,padding:c}},u=function(r){var t=r.slice(0,-2),o=r.slice(-2);if(o!=="px")return 0;var n=Number(t);return isNaN(n)&&_(),n},E=function(){return{x:window.pageXOffset,y:window.pageYOffset}},F=function(r,t){var o=r.borderBox,n=r.border,a=r.margin,i=r.padding,f=T(o,t);return x({borderBox:f,border:n,margin:a,padding:i})},U=function(r,t){return t===void 0&&(t=E()),F(r,t)},W=function(r,t){var o={top:u(t.marginTop),right:u(t.marginRight),bottom:u(t.marginBottom),left:u(t.marginLeft)},n={top:u(t.paddingTop),right:u(t.paddingRight),bottom:u(t.paddingBottom),left:u(t.paddingLeft)},a={top:u(t.borderTopWidth),right:u(t.borderRightWidth),bottom:u(t.borderBottomWidth),left:u(t.borderLeftWidth)};return x({borderBox:r,margin:o,padding:n,border:a})},X=function(r){var t=r.getBoundingClientRect(),o=window.getComputedStyle(r);return W(t,o)},Y=function(r){var t=[],o=null,n=function(){for(var i=arguments.length,f=new Array(i),c=0;c<i;c++)f[c]=arguments[c];t=f,!o&&(o=requestAnimationFrame(function(){o=null,r.apply(void 0,t)}))};return n.cancel=function(){o&&(cancelAnimationFrame(o),o=null)},n};export{z as _,q as a,N as b,k as c,g as d,v as e,M as f,K as g,X as h,d as i,R as j,x as k,W as l,F as o,Y as r,D as u,U as w};
1
+ import{id as O,hF as B,r as p}from"./index-OdvXHPqT.js";import{_ as S}from"./typeof-QjJsDpFa.js";import{t as j}from"./redux-DfszZyTl.js";function v(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,o=Array(r);t<r;t++)o[t]=e[t];return o}function M(e,r){if(e){if(typeof e=="string")return v(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,r):void 0}}function N(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&O(e,r)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},g(e)}function k(e,r){if(r&&(S(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(e)}function q(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function b(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,j(o.key),o)}}function z(e,r,t){return r&&b(e.prototype,r),t&&b(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function C(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}function h(e,r){var t=p.useState(function(){return{inputs:r,result:e()}})[0],o=p.useRef(!0),n=p.useRef(t),a=o.current||!!(r&&n.current.inputs&&C(r,n.current.inputs)),i=a?n.current:{inputs:r,result:e()};return p.useEffect(function(){o.current=!1,n.current=i},[i]),i.result}function A(e,r){return h(function(){return e},r)}var D=h,K=A,P="Invariant failed";function _(e,r){throw new Error(P)}var d=function(r){var t=r.top,o=r.right,n=r.bottom,a=r.left,i=o-a,f=n-t,c={top:t,right:o,bottom:n,left:a,width:i,height:f,x:a,y:t,center:{x:(o+a)/2,y:(n+t)/2}};return c},R=function(r,t){return{top:r.top-t.top,left:r.left-t.left,bottom:r.bottom+t.bottom,right:r.right+t.right}},m=function(r,t){return{top:r.top+t.top,left:r.left+t.left,bottom:r.bottom-t.bottom,right:r.right-t.right}},T=function(r,t){return{top:r.top+t.y,left:r.left+t.x,bottom:r.bottom+t.y,right:r.right+t.x}},l={top:0,right:0,bottom:0,left:0},x=function(r){var t=r.borderBox,o=r.margin,n=o===void 0?l:o,a=r.border,i=a===void 0?l:a,f=r.padding,c=f===void 0?l:f,w=d(R(t,n)),s=d(m(t,i)),y=d(m(s,c));return{marginBox:w,borderBox:d(t),paddingBox:s,contentBox:y,margin:n,border:i,padding:c}},u=function(r){var t=r.slice(0,-2),o=r.slice(-2);if(o!=="px")return 0;var n=Number(t);return isNaN(n)&&_(),n},E=function(){return{x:window.pageXOffset,y:window.pageYOffset}},F=function(r,t){var o=r.borderBox,n=r.border,a=r.margin,i=r.padding,f=T(o,t);return x({borderBox:f,border:n,margin:a,padding:i})},U=function(r,t){return t===void 0&&(t=E()),F(r,t)},W=function(r,t){var o={top:u(t.marginTop),right:u(t.marginRight),bottom:u(t.marginBottom),left:u(t.marginLeft)},n={top:u(t.paddingTop),right:u(t.paddingRight),bottom:u(t.paddingBottom),left:u(t.paddingLeft)},a={top:u(t.borderTopWidth),right:u(t.borderRightWidth),bottom:u(t.borderBottomWidth),left:u(t.borderLeftWidth)};return x({borderBox:r,margin:o,padding:n,border:a})},X=function(r){var t=r.getBoundingClientRect(),o=window.getComputedStyle(r);return W(t,o)},Y=function(r){var t=[],o=null,n=function(){for(var i=arguments.length,f=new Array(i),c=0;c<i;c++)f[c]=arguments[c];t=f,!o&&(o=requestAnimationFrame(function(){o=null,r.apply(void 0,t)}))};return n.cancel=function(){o&&(cancelAnimationFrame(o),o=null)},n};export{z as _,q as a,N as b,k as c,g as d,v as e,M as f,K as g,X as h,d as i,R as j,x as k,W as l,F as o,Y as r,D as u,U as w};
@@ -1,4 +1,4 @@
1
- import{m}from"./index-N8fONOxR.js";import"./index-Cp668Jsm.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
1
+ import{m}from"./index-ChZ3ki2X.js";import"./index-OdvXHPqT.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -1 +1 @@
1
- import{aG as j,j as o,m as h,bn as p,r as i,v as S,C as x,ad as y,H as l,Y as v}from"./index-Cp668Jsm.js";const k=j(o.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}));function K({teamDid:r,size:a="small",...m}){const{t:e}=h(),{api:f}=p(),[u,t]=i.useState(!1),[n,c]=i.useState(null),C=()=>{t(!1),c(null)},d=async()=>{try{t(!0);const s=await f.clearCache({input:{teamDid:r}});l.success(e("blocklet.config.clearCache.success",{count:s.removed?.length||0}))}catch(s){l.error(v(s))}finally{t(!1),c(null)}},g={title:e("blocklet.config.clearCache.title"),description:e("blocklet.config.clearCache.description"),confirm:e("common.confirm"),cancel:e("common.cancel"),onConfirm:d,onCancel:C};return o.jsxs("div",{...m,children:[o.jsxs(S,{onClick:()=>c(g),color:"error",variant:"outlined",size:a,children:[u?o.jsx(x,{size:16,style:{marginRight:5}}):null,e("blocklet.config.clearCache.action")]}),n&&o.jsx(y,{title:n.title,description:n.description,confirm:n.confirm,cancel:n.cancel,onConfirm:n.onConfirm,onCancel:n.onCancel})]})}function z({teamDid:r,size:a="small",...m}){const{t:e}=h(),{api:f}=p(),[u,t]=i.useState(!1),[n,c]=i.useState(null),C=()=>{t(!1),c(null)},d=async()=>{try{t(!0);const s=await f.rotateSessionKey({input:{teamDid:r}});l.success(e("blocklet.config.rotateSessionKey.success",{count:s.removed?.length||0})),setTimeout(()=>{window.location.reload()},1e3)}catch(s){l.error(v(s))}finally{t(!1),c(null)}},g={title:e("blocklet.config.rotateSessionKey.title"),description:e("blocklet.config.rotateSessionKey.description"),confirm:e("common.confirm"),cancel:e("common.cancel"),onConfirm:d,onCancel:C};return o.jsxs("div",{...m,children:[o.jsxs(S,{onClick:()=>c(g),color:"error",variant:"outlined",size:a,children:[u?o.jsx(x,{size:16,style:{marginRight:5}}):null,e("blocklet.config.rotateSessionKey.action")]}),n&&o.jsx(y,{title:n.title,description:n.description,confirm:n.confirm,cancel:n.cancel,onConfirm:n.onConfirm,onCancel:n.onCancel})]})}export{K as C,k as P,z as R};
1
+ import{aG as j,j as o,m as h,bn as p,r as i,v as S,C as x,ad as y,H as l,Y as v}from"./index-OdvXHPqT.js";const k=j(o.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}));function K({teamDid:r,size:a="small",...m}){const{t:e}=h(),{api:f}=p(),[u,t]=i.useState(!1),[n,c]=i.useState(null),C=()=>{t(!1),c(null)},d=async()=>{try{t(!0);const s=await f.clearCache({input:{teamDid:r}});l.success(e("blocklet.config.clearCache.success",{count:s.removed?.length||0}))}catch(s){l.error(v(s))}finally{t(!1),c(null)}},g={title:e("blocklet.config.clearCache.title"),description:e("blocklet.config.clearCache.description"),confirm:e("common.confirm"),cancel:e("common.cancel"),onConfirm:d,onCancel:C};return o.jsxs("div",{...m,children:[o.jsxs(S,{onClick:()=>c(g),color:"error",variant:"outlined",size:a,children:[u?o.jsx(x,{size:16,style:{marginRight:5}}):null,e("blocklet.config.clearCache.action")]}),n&&o.jsx(y,{title:n.title,description:n.description,confirm:n.confirm,cancel:n.cancel,onConfirm:n.onConfirm,onCancel:n.onCancel})]})}function z({teamDid:r,size:a="small",...m}){const{t:e}=h(),{api:f}=p(),[u,t]=i.useState(!1),[n,c]=i.useState(null),C=()=>{t(!1),c(null)},d=async()=>{try{t(!0);const s=await f.rotateSessionKey({input:{teamDid:r}});l.success(e("blocklet.config.rotateSessionKey.success",{count:s.removed?.length||0})),setTimeout(()=>{window.location.reload()},1e3)}catch(s){l.error(v(s))}finally{t(!1),c(null)}},g={title:e("blocklet.config.rotateSessionKey.title"),description:e("blocklet.config.rotateSessionKey.description"),confirm:e("common.confirm"),cancel:e("common.cancel"),onConfirm:d,onCancel:C};return o.jsxs("div",{...m,children:[o.jsxs(S,{onClick:()=>c(g),color:"error",variant:"outlined",size:a,children:[u?o.jsx(x,{size:16,style:{marginRight:5}}):null,e("blocklet.config.rotateSessionKey.action")]}),n&&o.jsx(y,{title:n.title,description:n.description,confirm:n.confirm,cancel:n.cancel,onConfirm:n.onConfirm,onCancel:n.onCancel})]})}export{K as C,k as P,z as R};
@@ -1 +1 @@
1
- import{m as k,bn as C,r as p,j as t,T as l,G as c,s as v,o as a,J as I,N as m,bt as D,az as f,i as H,aE as L,d4 as M,k as z,l as N}from"./index-Cp668Jsm.js";import{H as U}from"./index-DLs4lvkb.js";import{u as B}from"./blocklet-Clk0KDdY.js";import{y as S}from"./index-De5Caszn.js";import{x as T}from"./index-DRYJ0xIl.js";import{C as E,M as $}from"./memory-0tMnFTeS.js";import{B as P}from"./status-DC_uFdhU.js";import{T as w,a as G}from"./ToggleButtonGroup-BRuEkEDq.js";import"./FilterList-C7CgIPm8.js";import"./CSSTransition-D9w1WbTD.js";import"./emotion-cache.browser.esm-B-0g7s2E.js";import"./index-B58pv6JK.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-msOq5b5x.js";import"./TableSearch-Dsfp_XUr.js";import"./Search-CviyP5PC.js";import"./Clear-CY2XI9UL.js";import"./MoreVert-Dnv5meLi.js";import"./base-chart-CUBovNRp.js";import"./index-BVwfeTfE.js";import"./url-evaluation-ZlHZwvb8.js";import"./getValidReactChildren-CS8vN0Dc.js";function R({blocklet:r,cpuHistory:x=[],memoryHistory:u=[],...g}){const{t:i}=k(),{info:d}=C(),{runtimeHistory:s}=B(),[y,j]=p.useState(null),n=p.useCallback(e=>r.status!=="running"?t.jsx(l,{children:i("blocklet.runtimeInfo.noRunning")}):e.length?null:t.jsx(S,{children:i("common.empty")}),[r.status,i]),o=p.useCallback(e=>{j(e)},[]);return s.length===0?t.jsx(l,{children:i("blocklet.runtimeInfo.noRunning")}):t.jsxs(W,{component:"div",...g,memoryHistory:u,cpuHistory:x,children:[t.jsxs(c,{className:"page-metrics",container:!0,spacing:5,children:[t.jsx(c,{sx:{pt:"16px !important"},size:12,children:t.jsx(l,{sx:{fontSize:"16px",fontWeight:"bold"},children:"CPU"})}),s?.map(e=>t.jsx(c,{sx:{pt:"16px !important"},size:{lg:4,md:6,sm:6,xs:12},children:t.jsx(E,{title:`${e.name} CPU`,empty:n(e.cpu),currentLoad:e.appRuntimeInfo?.cpuUsage||0,cpus:e.appRuntimeInfo?.cpus||[],history:e.cpu,onHover:o,hoverIndex:y,style:{height:150}})},`${e.key}-cpu`))]}),t.jsxs(c,{className:"page-metrics",container:!0,spacing:5,sx:{mt:1},children:[t.jsx(c,{sx:{pt:"16px !important"},size:12,children:t.jsx(l,{sx:{fontSize:"16px",fontWeight:"bold"},children:"Memory"})}),s?.map(e=>t.jsx(c,{sx:{pt:"16px !important"},size:{lg:4,md:6,sm:6,xs:12},children:t.jsx($,{title:`${e.name} Memory`,empty:n(e.memory),total:d.runtimeConfig?.blockletMaxMemoryLimit?T.parseSize(`${d.runtimeConfig.blockletMaxMemoryLimit*(e.key===r?.meta?.did?s.length-1:1)}MiB`):0,used:e.appRuntimeInfo?.memoryUsage||0,history:e.memory,onHover:o,hoverIndex:y,style:{height:150}})},`${e.key}-memory`))]})]})}R.propTypes={blocklet:a.object.isRequired,cpuHistory:a.arrayOf(a.shape({date:a.number,value:a.number})),memoryHistory:a.arrayOf(a.shape({date:a.number,value:a.number}))};const W=v(l)``;function pe(){const{t:r,locale:x}=k(),[u,g]=p.useState(6),{blocklet:i,actions:{refreshBlocklet:d}}=B(),s=p.useMemo(()=>{const n=[];return I.forEachBlockletSync(i,(o,{ancestors:e,id:b,level:h})=>{o?.meta?.did&&o.meta.did!==i.meta.did&&n.push({type:"blocklet",groupId:i.meta.did,groupName:I.getDisplayName(i),id:b,name:I.getDisplayName(o,!0),blocklet:i,component:o,level:h-1>=0?h-1:0,runtimeInfo:o.runtimeInfo,ancestors:e})}),n},[i]);p.useEffect(()=>{d({hours:u});const n=setInterval(()=>{d({hours:u})},1e3*10);return()=>{clearInterval(n)}},[u]);const y=n=>z(Number(n||0),{locale:N(x)}),j=[{label:r("common.name"),name:"name",options:{customBodyRenderLite(n){const{name:o,component:e,level:b,ancestors:h}=s[n];return t.jsxs(m,{sx:{display:"flex",alignItems:"center",pl:b*2},children:[t.jsx(D,{size:20,blocklet:e,ancestors:h}),t.jsx(m,{sx:{ml:1},children:o}),t.jsx(P,{variant:"pin",style:{marginLeft:8},status:e.status,source:e.source,progress:e.progress})]})}}},{label:r("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):y(o?.uptime)}}},{label:r("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):H(o?.memoryUsage||0)}}},{label:r("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):`${(o?.cpuUsage||0).toFixed(1)}%`}}},{label:r("analytics.runtime"),name:"runtimeInfo.runtime",options:{customBodyRenderLite(n){const{runtimeInfo:o}=s[n];return o?.uptime?t.jsxs(m,{sx:{display:"flex",alignItems:"center"},children:[t.jsx(L,{icon:o?.runningDocker?"catppuccin:docker-ignore":"logos:nodejs-icon"}),t.jsx(m,{sx:{ml:1},children:o?.runningDocker?"Docker":"Nodejs"})]}):null}}},{label:r("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):o?.pid}}},{label:r("blocklet.runtimeInfo.port"),name:"runtimeInfo.port",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):o?.port}}}];return t.jsxs(O,{component:"div",children:[t.jsxs(m,{sx:{display:"flex",justifyContent:"space-between",flexDirection:"row",mb:2},children:[t.jsx(l,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},sx:{mb:2},children:r("analytics.trend")}),t.jsx(w,{size:"small",exclusive:!0,value:u,onChange:(n,o)=>{M(o)&&g(o)},children:[1,3,6,12,24].map(n=>t.jsxs(G,{value:n,children:[n,"H"]},n))})]}),t.jsx(m,{children:t.jsx(R,{blocklet:i})}),t.jsx(m,{sx:{mt:3},children:t.jsx(U,{title:r("analytics.detail"),className:"monitor-table",locale:x,data:s,columns:j,options:{search:!1,download:!1,filter:!1,print:!1,viewColumns:!1,pagination:!1,rowsPerPage:100}})})]})}const O=v(l)``;export{pe as default};
1
+ import{m as k,bn as C,r as p,j as t,T as l,G as c,s as v,o as a,J as I,N as m,bt as D,az as f,i as H,aE as L,d4 as M,k as z,l as N}from"./index-OdvXHPqT.js";import{H as U}from"./index-Y2ocg0We.js";import{u as B}from"./blocklet-BwXw89V1.js";import{y as S}from"./index-BShBVqEp.js";import{x as T}from"./index-DRYJ0xIl.js";import{C as E,M as $}from"./memory-BPr31Oys.js";import{B as P}from"./status-tQggAyS9.js";import{T as w,a as G}from"./ToggleButtonGroup-CAU8g76h.js";import"./FilterList-BnK3OcNB.js";import"./CSSTransition-CgU-qJG1.js";import"./emotion-cache.browser.esm-DKCrrwkN.js";import"./index-2hrGtHmX.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-BxsaWGVI.js";import"./TableSearch-BfqBG8KC.js";import"./Search-2a28Zd0Q.js";import"./Clear-D0eiF7LM.js";import"./MoreVert-Bg7SRP_I.js";import"./base-chart-CPd4vePQ.js";import"./index-DDIG3-mk.js";import"./url-evaluation-DgbmtLnr.js";import"./getValidReactChildren-UBZRExQI.js";function R({blocklet:r,cpuHistory:x=[],memoryHistory:u=[],...g}){const{t:i}=k(),{info:d}=C(),{runtimeHistory:s}=B(),[y,j]=p.useState(null),n=p.useCallback(e=>r.status!=="running"?t.jsx(l,{children:i("blocklet.runtimeInfo.noRunning")}):e.length?null:t.jsx(S,{children:i("common.empty")}),[r.status,i]),o=p.useCallback(e=>{j(e)},[]);return s.length===0?t.jsx(l,{children:i("blocklet.runtimeInfo.noRunning")}):t.jsxs(W,{component:"div",...g,memoryHistory:u,cpuHistory:x,children:[t.jsxs(c,{className:"page-metrics",container:!0,spacing:5,children:[t.jsx(c,{sx:{pt:"16px !important"},size:12,children:t.jsx(l,{sx:{fontSize:"16px",fontWeight:"bold"},children:"CPU"})}),s?.map(e=>t.jsx(c,{sx:{pt:"16px !important"},size:{lg:4,md:6,sm:6,xs:12},children:t.jsx(E,{title:`${e.name} CPU`,empty:n(e.cpu),currentLoad:e.appRuntimeInfo?.cpuUsage||0,cpus:e.appRuntimeInfo?.cpus||[],history:e.cpu,onHover:o,hoverIndex:y,style:{height:150}})},`${e.key}-cpu`))]}),t.jsxs(c,{className:"page-metrics",container:!0,spacing:5,sx:{mt:1},children:[t.jsx(c,{sx:{pt:"16px !important"},size:12,children:t.jsx(l,{sx:{fontSize:"16px",fontWeight:"bold"},children:"Memory"})}),s?.map(e=>t.jsx(c,{sx:{pt:"16px !important"},size:{lg:4,md:6,sm:6,xs:12},children:t.jsx($,{title:`${e.name} Memory`,empty:n(e.memory),total:d.runtimeConfig?.blockletMaxMemoryLimit?T.parseSize(`${d.runtimeConfig.blockletMaxMemoryLimit*(e.key===r?.meta?.did?s.length-1:1)}MiB`):0,used:e.appRuntimeInfo?.memoryUsage||0,history:e.memory,onHover:o,hoverIndex:y,style:{height:150}})},`${e.key}-memory`))]})]})}R.propTypes={blocklet:a.object.isRequired,cpuHistory:a.arrayOf(a.shape({date:a.number,value:a.number})),memoryHistory:a.arrayOf(a.shape({date:a.number,value:a.number}))};const W=v(l)``;function pe(){const{t:r,locale:x}=k(),[u,g]=p.useState(6),{blocklet:i,actions:{refreshBlocklet:d}}=B(),s=p.useMemo(()=>{const n=[];return I.forEachBlockletSync(i,(o,{ancestors:e,id:b,level:h})=>{o?.meta?.did&&o.meta.did!==i.meta.did&&n.push({type:"blocklet",groupId:i.meta.did,groupName:I.getDisplayName(i),id:b,name:I.getDisplayName(o,!0),blocklet:i,component:o,level:h-1>=0?h-1:0,runtimeInfo:o.runtimeInfo,ancestors:e})}),n},[i]);p.useEffect(()=>{d({hours:u});const n=setInterval(()=>{d({hours:u})},1e3*10);return()=>{clearInterval(n)}},[u]);const y=n=>z(Number(n||0),{locale:N(x)}),j=[{label:r("common.name"),name:"name",options:{customBodyRenderLite(n){const{name:o,component:e,level:b,ancestors:h}=s[n];return t.jsxs(m,{sx:{display:"flex",alignItems:"center",pl:b*2},children:[t.jsx(D,{size:20,blocklet:e,ancestors:h}),t.jsx(m,{sx:{ml:1},children:o}),t.jsx(P,{variant:"pin",style:{marginLeft:8},status:e.status,source:e.source,progress:e.progress})]})}}},{label:r("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):y(o?.uptime)}}},{label:r("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):H(o?.memoryUsage||0)}}},{label:r("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):`${(o?.cpuUsage||0).toFixed(1)}%`}}},{label:r("analytics.runtime"),name:"runtimeInfo.runtime",options:{customBodyRenderLite(n){const{runtimeInfo:o}=s[n];return o?.uptime?t.jsxs(m,{sx:{display:"flex",alignItems:"center"},children:[t.jsx(L,{icon:o?.runningDocker?"catppuccin:docker-ignore":"logos:nodejs-icon"}),t.jsx(m,{sx:{ml:1},children:o?.runningDocker?"Docker":"Nodejs"})]}):null}}},{label:r("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):o?.pid}}},{label:r("blocklet.runtimeInfo.port"),name:"runtimeInfo.port",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):o?.port}}}];return t.jsxs(O,{component:"div",children:[t.jsxs(m,{sx:{display:"flex",justifyContent:"space-between",flexDirection:"row",mb:2},children:[t.jsx(l,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},sx:{mb:2},children:r("analytics.trend")}),t.jsx(w,{size:"small",exclusive:!0,value:u,onChange:(n,o)=>{M(o)&&g(o)},children:[1,3,6,12,24].map(n=>t.jsxs(G,{value:n,children:[n,"H"]},n))})]}),t.jsx(m,{children:t.jsx(R,{blocklet:i})}),t.jsx(m,{sx:{mt:3},children:t.jsx(U,{title:r("analytics.detail"),className:"monitor-table",locale:x,data:s,columns:j,options:{search:!1,download:!1,filter:!1,print:!1,viewColumns:!1,pagination:!1,rowsPerPage:100}})})]})}const O=v(l)``;export{pe as default};
@@ -0,0 +1 @@
1
+ import{r}from"./without-wallet-DfzBh9gC.js";var e=r();export{e as s};
@@ -0,0 +1 @@
1
+ import{go as o}from"./index-OdvXHPqT.js";const e=o();export{e as b};
@@ -1 +1 @@
1
- import{r as s,g as p,J as a,j as o,o as m}from"./index-Cp668Jsm.js";import{T as c,M as n,t as u}from"./table-icons-jOs3s3dQ.js";import"./FilterList-C7CgIPm8.js";import"./CSSTransition-D9w1WbTD.js";import"./emotion-cache.browser.esm-B-0g7s2E.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./raf-schd.esm-le4x5qzb.js";import"./redux-DfszZyTl.js";import"./useThemeProps-CEesX7e5.js";import"./html-title-HtPlSvGf.js";import"./Add-B2ZDVqat.js";import"./url-evaluation-ZlHZwvb8.js";import"./Clear-CY2XI9UL.js";import"./Edit-CQvdC-gs.js";import"./ChevronRight-BHex1y5g.js";import"./ChevronLeft-C1WpAw9J.js";import"./Search-CviyP5PC.js";import"./ArrowDropDown-DTUdke6O.js";function d({blocklet:i,...r}){const{t}=s.useContext(p),e=a.getBlockletServices(i);if(e.length===0)return o.jsx("div",{children:t("blocklet.noService")});const l=[{title:t("common.name"),field:"name"},{title:t("common.protocol"),field:"protocol"},{title:t("common.port"),field:"port"},{title:t("blocklet.upstreamPort"),field:"upstreamPort"}];return o.jsx(c,{...r,children:o.jsx(n,{columns:l,icons:{...u},options:{sorting:!1,emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",search:!1,pageSize:1e3,pageSizeOptions:[1e3]},localization:{body:{emptyDataSourceMessage:t("blocklet.noService")}},data:e})})}d.propTypes={blocklet:m.object.isRequired};export{d as default};
1
+ import{r as s,g as p,J as a,j as o,o as m}from"./index-OdvXHPqT.js";import{T as c,M as n,t as u}from"./table-icons-LUDdTh3T.js";import"./FilterList-BnK3OcNB.js";import"./CSSTransition-CgU-qJG1.js";import"./emotion-cache.browser.esm-DKCrrwkN.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./raf-schd.esm-DUMXV33K.js";import"./redux-DfszZyTl.js";import"./useThemeProps-B8kKGfuj.js";import"./html-title-F0NEfYXw.js";import"./Add-CTkKWsbA.js";import"./url-evaluation-DgbmtLnr.js";import"./Clear-D0eiF7LM.js";import"./Edit-BDZJlnuz.js";import"./ChevronRight-CgNj8oK3.js";import"./ChevronLeft-Mrf8wNcO.js";import"./Search-2a28Zd0Q.js";import"./ArrowDropDown-CPMzkOwU.js";function d({blocklet:i,...r}){const{t}=s.useContext(p),e=a.getBlockletServices(i);if(e.length===0)return o.jsx("div",{children:t("blocklet.noService")});const l=[{title:t("common.name"),field:"name"},{title:t("common.protocol"),field:"protocol"},{title:t("common.port"),field:"port"},{title:t("blocklet.upstreamPort"),field:"upstreamPort"}];return o.jsx(c,{...r,children:o.jsx(n,{columns:l,icons:{...u},options:{sorting:!1,emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",search:!1,pageSize:1e3,pageSizeOptions:[1e3]},localization:{body:{emptyDataSourceMessage:t("blocklet.noService")}},data:e})})}d.propTypes={blocklet:m.object.isRequired};export{d as default};
@@ -1 +1 @@
1
- import{j as r,T as o,az as p,o as i}from"./index-Cp668Jsm.js";function s(e,n=10){return typeof e=="string"&&e?.length>n?`${e.slice(0,n-1)}...${e.slice(-2)}`:e}function u({children:e,maxLength:n=10,sx:t=null,hiddenTip:l=!1}){return e?.length<=n?r.jsx(o,{sx:t,children:e}):l?r.jsx(o,{sx:t,children:s(e,n)}):r.jsx(p,{title:e,placement:"top",children:r.jsx(o,{sx:t,children:s(e,n)})})}u.propTypes={children:i.string.isRequired,maxLength:i.number,sx:i.object,hiddenTip:i.bool};export{u as S};
1
+ import{j as r,T as o,az as p,o as i}from"./index-OdvXHPqT.js";function s(e,n=10){return typeof e=="string"&&e?.length>n?`${e.slice(0,n-1)}...${e.slice(-2)}`:e}function u({children:e,maxLength:n=10,sx:t=null,hiddenTip:l=!1}){return e?.length<=n?r.jsx(o,{sx:t,children:e}):l?r.jsx(o,{sx:t,children:s(e,n)}):r.jsx(p,{title:e,placement:"top",children:r.jsx(o,{sx:t,children:s(e,n)})})}u.propTypes={children:i.string.isRequired,maxLength:i.number,sx:i.object,hiddenTip:i.bool};export{u as S};
@@ -1 +1 @@
1
- import{j as e,Q as T,R as I,S as w,U as c,a9 as O,T as x,N as h,eN as W,fd as z,bi as C,o as r}from"./index-Cp668Jsm.js";function L({fullWidth:m=!1,multiple:a=!1,required:i=!1,label:d="",placeholer:j="",options:t=[],helperText:b="",error:g=!1,margin:u="",textDirection:v="row",size:p,...f}){const y=t.find(l=>l.value===f.value)?.title;return e.jsxs(T,{margin:u,fullWidth:m,error:g,children:[e.jsx(I,{size:p,children:`${d}${i?"*":""}`}),e.jsxs(w,{multiple:a,input:e.jsx(z,{defaultValue:y,sx:{flex:1},required:i,label:d,inputProps:{margin:u},size:p}),renderValue:l=>{if(a)return e.jsx(h,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:l.map(n=>{const o=t.find(S=>S.value===n);return o&&o.title&&e.jsx(W,{size:"small",label:o.title},n)})});const s=t.find(n=>n.value===l);return s&&s.title&&e.jsxs(h,{children:[e.jsx(x,{component:"span",children:s.title}),e.jsx(x,{component:"span",variant:"body2",sx:{marginLeft:1,color:"text.secondary"},children:s.description})]})},...f,children:[e.jsx(c,{disabled:!0,children:e.jsx("em",{children:j})}),!i&&!a&&e.jsx(c,{value:"",children:"None"}),t.map(l=>l&&l.value&&e.jsxs(c,{sx:[{justifyContent:"center"},v==="column"?{flexDirection:"column",alignItems:"flex-start"}:{}],value:l.value,children:[e.jsx(O,{children:l.title}),l.description&&e.jsx(x,{variant:"body2",sx:{color:"text.secondary",maxWidth:"100%",whiteSpace:"normal"},children:l.description})]},l.value))]}),e.jsx(C,{children:b})]})}L.propTypes={error:r.bool,required:r.bool,multiple:r.bool,fullWidth:r.bool,label:r.string,placeholer:r.string,options:r.array,helperText:r.string,margin:r.string,size:r.string,textDirection:r.oneOf("row","column")};export{L as S};
1
+ import{j as e,Q as T,R as I,S as w,U as c,a9 as O,T as x,N as h,eN as W,fd as z,bi as C,o as r}from"./index-OdvXHPqT.js";function L({fullWidth:m=!1,multiple:a=!1,required:i=!1,label:d="",placeholer:j="",options:t=[],helperText:b="",error:g=!1,margin:u="",textDirection:v="row",size:p,...f}){const y=t.find(l=>l.value===f.value)?.title;return e.jsxs(T,{margin:u,fullWidth:m,error:g,children:[e.jsx(I,{size:p,children:`${d}${i?"*":""}`}),e.jsxs(w,{multiple:a,input:e.jsx(z,{defaultValue:y,sx:{flex:1},required:i,label:d,inputProps:{margin:u},size:p}),renderValue:l=>{if(a)return e.jsx(h,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:l.map(n=>{const o=t.find(S=>S.value===n);return o&&o.title&&e.jsx(W,{size:"small",label:o.title},n)})});const s=t.find(n=>n.value===l);return s&&s.title&&e.jsxs(h,{children:[e.jsx(x,{component:"span",children:s.title}),e.jsx(x,{component:"span",variant:"body2",sx:{marginLeft:1,color:"text.secondary"},children:s.description})]})},...f,children:[e.jsx(c,{disabled:!0,children:e.jsx("em",{children:j})}),!i&&!a&&e.jsx(c,{value:"",children:"None"}),t.map(l=>l&&l.value&&e.jsxs(c,{sx:[{justifyContent:"center"},v==="column"?{flexDirection:"column",alignItems:"flex-start"}:{}],value:l.value,children:[e.jsx(O,{children:l.title}),l.description&&e.jsx(x,{variant:"body2",sx:{color:"text.secondary",maxWidth:"100%",whiteSpace:"normal"},children:l.description})]},l.value))]}),e.jsx(C,{children:b})]})}L.propTypes={error:r.bool,required:r.bool,multiple:r.bool,fullWidth:r.bool,label:r.string,placeholer:r.string,options:r.array,helperText:r.string,margin:r.string,size:r.string,textDirection:r.oneOf("row","column")};export{L as S};
@@ -1 +1 @@
1
- import{b as u,f5 as l,y as s,z as f,b9 as i,dB as m}from"./index-Cp668Jsm.js";import{a as c}from"./api-BDClPnhH.js";function P(t){const e=t.replace(/\/api\/space\/.+/,""),a=t.replace(/\/$/,"").split("/"),r=a.at(-4),n=a.at(-2);return s(e,"space",r,"apps",n,`explorer?key=/apps/${n}/.did-objects/${n}/`)}function U(t){const e=t.replace(/\/api\/space\/.+/,""),r=t.replace(/\/$/,"").split("/").at(-4);return s(e,"space",r)}function h(t){return t.replace(/\/$/,"").split("/").at(-4)}async function C(t){try{if(!i(t))return!1;const{headers:e}=await c.head(t,{timeout:5e3});return e["x-listable"]==="true"&&e["x-readable"]==="true"&&e["x-writeable"]==="true"}catch(e){return console.error(e),!1}}function L(t){return t?.find(e=>e.key===u.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT)?.value||""}function y(t){return t?.replace(/\/api\/space\/.+/,"")}function E(t){const e=new URL(t);return s(e.origin,e.pathname)}async function _(t){try{if(!i(t))return!1;const e=E(t),a=s(e,"space/api/did/one-click-authorization/token"),{status:r,data:n}=await c.get(a,{timeout:5e3});return r===200&&m(n)}catch(e){return console.error(e),!1}}async function w(t,{timeout:e}={timeout:3e3}){try{if(!i(t))return"";const{headers:a}=await c.head(t,{timeout:e}),r=a["x-space-name"];return r?decodeURIComponent(r):""}catch(a){return console.error(a),""}}const A=t=>t?.configs?.find(e=>e.key===u.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT)?.value||null;async function b(t){const e={};return e.did=h(t),e.name=await w(t),e.url=y(t),e.endpoint=t,e}async function B(t,e={timeout:3e4,withSearchParams:!0}){if(!l(t))throw new Error(`url(${t}) must be a string`);const a=t.startsWith("http")?t:`https://${t}`,r=new URL(a),{data:n}=await c.get(s(r.origin,"/__blocklet__.js?type=json"),{timeout:e.timeout}),o=n.componentMountPoints.findLast(d=>d.did==="z8iZnaYxnkMD5AKRjTKiCb8pQr1ut8UantAcf")?.mountPoint;if(!o)throw new Error(`MountPoint(${o}) not found`);const p=s(r.origin,o);return e.withSearchParams&&r.searchParams.get("spaceDid")?f(p,{spaceDid:r.searchParams.get("spaceDid")}):p}export{L as a,A as b,b as c,w as d,h as e,U as f,B as g,P as h,_ as i,C as j};
1
+ import{b as u,f5 as l,y as s,z as f,b9 as i,dB as m}from"./index-OdvXHPqT.js";import{a as c}from"./api-DHdVnqwS.js";function P(t){const e=t.replace(/\/api\/space\/.+/,""),a=t.replace(/\/$/,"").split("/"),r=a.at(-4),n=a.at(-2);return s(e,"space",r,"apps",n,`explorer?key=/apps/${n}/.did-objects/${n}/`)}function U(t){const e=t.replace(/\/api\/space\/.+/,""),r=t.replace(/\/$/,"").split("/").at(-4);return s(e,"space",r)}function h(t){return t.replace(/\/$/,"").split("/").at(-4)}async function C(t){try{if(!i(t))return!1;const{headers:e}=await c.head(t,{timeout:5e3});return e["x-listable"]==="true"&&e["x-readable"]==="true"&&e["x-writeable"]==="true"}catch(e){return console.error(e),!1}}function L(t){return t?.find(e=>e.key===u.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT)?.value||""}function y(t){return t?.replace(/\/api\/space\/.+/,"")}function E(t){const e=new URL(t);return s(e.origin,e.pathname)}async function _(t){try{if(!i(t))return!1;const e=E(t),a=s(e,"space/api/did/one-click-authorization/token"),{status:r,data:n}=await c.get(a,{timeout:5e3});return r===200&&m(n)}catch(e){return console.error(e),!1}}async function w(t,{timeout:e}={timeout:3e3}){try{if(!i(t))return"";const{headers:a}=await c.head(t,{timeout:e}),r=a["x-space-name"];return r?decodeURIComponent(r):""}catch(a){return console.error(a),""}}const A=t=>t?.configs?.find(e=>e.key===u.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT)?.value||null;async function b(t){const e={};return e.did=h(t),e.name=await w(t),e.url=y(t),e.endpoint=t,e}async function B(t,e={timeout:3e4,withSearchParams:!0}){if(!l(t))throw new Error(`url(${t}) must be a string`);const a=t.startsWith("http")?t:`https://${t}`,r=new URL(a),{data:n}=await c.get(s(r.origin,"/__blocklet__.js?type=json"),{timeout:e.timeout}),o=n.componentMountPoints.findLast(d=>d.did==="z8iZnaYxnkMD5AKRjTKiCb8pQr1ut8UantAcf")?.mountPoint;if(!o)throw new Error(`MountPoint(${o}) not found`);const p=s(r.origin,o);return e.withSearchParams&&r.searchParams.get("spaceDid")?f(p,{spaceDid:r.searchParams.get("spaceDid")}):p}export{L as a,A as b,b as c,w as d,h as e,U as f,B as g,P as h,_ as i,C as j};
@@ -1 +1 @@
1
- import{aG as _,j as u,gL as b,g3 as P,eB as j,cE as p,m as x,r as k,C as V,az as h,o as w}from"./index-Cp668Jsm.js";import{u as E}from"./index-DWCHUGMU.js";import{E as R}from"./ErrorOutline-3x65gte5.js";import{r as T}from"./omit-kqOgzbK4.js";const z=_(u.jsx("path",{d:"M12 2 4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5zm-1.06 13.54L7.4 12l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"})),B={width:24,height:24,body:'<path fill="currentColor" d="M12 14.975q-.2 0-.375-.062T11.3 14.7l-4.6-4.6q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Z"/>'};var a={},$;function C(){if($)return a;$=1;var l=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.signResponse=c,a.verifyResponse=q,a.verifyVault=S;const g=l(T),v=l(b()),n=P(),s=j();function c(e,d){const o=(0,v.default)(e),y=d.sign(o);return{...e,$signature:y}}function q(e,d){return e.$signature?Promise.resolve(d.verify((0,v.default)((0,g.default)(e,"$signature")),e.$signature)):Promise.resolve(!1)}async function S(e,d,o=!1){if(!Array.isArray(e)||e.length===0){if(o)throw new Error("vaults list is empty");return""}for(let t=1;t<e.length;t++)if(e[t].at<=e[t-1].at){if(o)throw new Error("vaults are not in ascending order");return""}if(new Set(e.map(t=>t.did)).size!==e.length){if(o)throw new Error("vaults list has duplicate vaults");return""}for(let t=0;t<e.length;t++){const r=e[t];if(!(0,s.isFromPublicKey)(r.did,r.pk)){if(o)throw new Error(`vault did and pk mismatch: ${r.did}(${r.pk})`);return""}let f=p.from(`vault:${d}`);for(let i=0;i<=t;i++)f=p.concat([f,p.from(`:${e[i].did}`)]);if(!r.approverSig){if(o)throw new Error(`vault approve signature missing for ${r.did}`);return""}try{let i;if(t>0){const m=e[t-1];i=(0,n.fromPublicKey)(m.pk,(0,s.toTypeInfo)(m.did))}else{if(!r.approverPk||!r.approverDid||!(0,s.isFromPublicKey)(r.approverDid,r.approverPk)){if(o)throw new Error(`approver config missing for ${r.did}`);return""}i=(0,n.fromPublicKey)(r.approverPk,(0,s.toTypeInfo)(r.approverDid))}if(await i.verify(f,r.approverSig)===!1){if(o)throw new Error(`signature verify failed for ${r.did}`);return""}}catch(i){if(console.error(i),o)throw new Error(`vault approve verify failed: ${i.message}`);return""}if(!r.sig){if(o)throw new Error(`vault commit signature missing for ${r.did}`);return""}try{const i=(0,n.fromPublicKey)(r.pk,(0,s.toTypeInfo)(r.did));if(r.approverSig&&(f=p.concat([f,p.from(`:${r.approverSig}`)])),await i.verify(f,r.sig)===!1){if(o)throw new Error(`commit signature verify failed for ${r.did}`);return""}}catch(i){if(console.error(i),o)throw new Error(`vault commit verify failed: ${i.message}`);return""}}return e[e.length-1].did}return a}var D=C();function I({vaults:l,appPid:g}){const{t:v}=x(),[n,s]=E({verified:!1,verifying:!0,error:""});return k.useEffect(()=>{D.verifyVault(l,g,!0).then(c=>{s({verified:!!c,verifying:!1})}).catch(c=>{s({verified:!1,verifying:!1,error:c.message})})},[l,g,s]),n.verifying?u.jsx(V,{}):n.verified?u.jsx(h,{title:v("blocklet.config.vault.verified"),children:u.jsx(z,{fontSize:"small",color:"success"})}):u.jsx(h,{title:n.error,children:u.jsx(R,{color:"error"})})}I.propTypes={vaults:w.array.isRequired,appPid:w.string.isRequired};export{I as V,B as d};
1
+ import{aG as _,j as u,gL as b,g3 as P,eB as j,cE as p,m as x,r as k,C as V,az as h,o as w}from"./index-OdvXHPqT.js";import{u as E}from"./index-B_D_eWlx.js";import{E as R}from"./ErrorOutline-DM8Q-uGO.js";import{r as T}from"./omit-BPHBFoDu.js";const z=_(u.jsx("path",{d:"M12 2 4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5zm-1.06 13.54L7.4 12l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"})),B={width:24,height:24,body:'<path fill="currentColor" d="M12 14.975q-.2 0-.375-.062T11.3 14.7l-4.6-4.6q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Z"/>'};var a={},$;function C(){if($)return a;$=1;var l=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.signResponse=c,a.verifyResponse=q,a.verifyVault=S;const g=l(T),v=l(b()),n=P(),s=j();function c(e,d){const o=(0,v.default)(e),y=d.sign(o);return{...e,$signature:y}}function q(e,d){return e.$signature?Promise.resolve(d.verify((0,v.default)((0,g.default)(e,"$signature")),e.$signature)):Promise.resolve(!1)}async function S(e,d,o=!1){if(!Array.isArray(e)||e.length===0){if(o)throw new Error("vaults list is empty");return""}for(let t=1;t<e.length;t++)if(e[t].at<=e[t-1].at){if(o)throw new Error("vaults are not in ascending order");return""}if(new Set(e.map(t=>t.did)).size!==e.length){if(o)throw new Error("vaults list has duplicate vaults");return""}for(let t=0;t<e.length;t++){const r=e[t];if(!(0,s.isFromPublicKey)(r.did,r.pk)){if(o)throw new Error(`vault did and pk mismatch: ${r.did}(${r.pk})`);return""}let f=p.from(`vault:${d}`);for(let i=0;i<=t;i++)f=p.concat([f,p.from(`:${e[i].did}`)]);if(!r.approverSig){if(o)throw new Error(`vault approve signature missing for ${r.did}`);return""}try{let i;if(t>0){const m=e[t-1];i=(0,n.fromPublicKey)(m.pk,(0,s.toTypeInfo)(m.did))}else{if(!r.approverPk||!r.approverDid||!(0,s.isFromPublicKey)(r.approverDid,r.approverPk)){if(o)throw new Error(`approver config missing for ${r.did}`);return""}i=(0,n.fromPublicKey)(r.approverPk,(0,s.toTypeInfo)(r.approverDid))}if(await i.verify(f,r.approverSig)===!1){if(o)throw new Error(`signature verify failed for ${r.did}`);return""}}catch(i){if(console.error(i),o)throw new Error(`vault approve verify failed: ${i.message}`);return""}if(!r.sig){if(o)throw new Error(`vault commit signature missing for ${r.did}`);return""}try{const i=(0,n.fromPublicKey)(r.pk,(0,s.toTypeInfo)(r.did));if(r.approverSig&&(f=p.concat([f,p.from(`:${r.approverSig}`)])),await i.verify(f,r.sig)===!1){if(o)throw new Error(`commit signature verify failed for ${r.did}`);return""}}catch(i){if(console.error(i),o)throw new Error(`vault commit verify failed: ${i.message}`);return""}}return e[e.length-1].did}return a}var D=C();function I({vaults:l,appPid:g}){const{t:v}=x(),[n,s]=E({verified:!1,verifying:!0,error:""});return k.useEffect(()=>{D.verifyVault(l,g,!0).then(c=>{s({verified:!!c,verifying:!1})}).catch(c=>{s({verified:!1,verifying:!1,error:c.message})})},[l,g,s]),n.verifying?u.jsx(V,{}):n.verified?u.jsx(h,{title:v("blocklet.config.vault.verified"),children:u.jsx(z,{fontSize:"small",color:"success"})}):u.jsx(h,{title:n.error,children:u.jsx(R,{color:"error"})})}I.propTypes={vaults:w.array.isRequired,appPid:w.string.isRequired};export{I as V,B as d};
@@ -1,4 +1,4 @@
1
- import{s as m,r as f,g as h,J as b,j as o,az as u,N as d,C as j,o as t}from"./index-Cp668Jsm.js";import{W as C}from"./url-evaluation-ZlHZwvb8.js";const y={success:"#3ab39d",error:"#D0021B"},x="10px",k=m.div`
1
+ import{s as m,r as f,g as h,J as b,j as o,az as u,N as d,C as j,o as t}from"./index-OdvXHPqT.js";import{W as C}from"./url-evaluation-DgbmtLnr.js";const y={success:"#3ab39d",error:"#D0021B"},x="10px",k=m.div`
2
2
  display: inline-block;
3
3
  min-width: ${e=>e.size||x};
4
4
  min-height: ${e=>e.size||x};
@@ -1,4 +1,4 @@
1
- import{j as e,aU as n,dd as c,o as d,s as p}from"./index-Cp668Jsm.js";import{S as u}from"./Switch-C_vix7qp.js";const o=c(t=>e.jsx(u,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:t.palette.primary.main,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:t.palette.primary.main,border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:t.palette.grey[200],opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}));function a({labelProps:t=null,...i}){return t?e.jsx(n,{control:e.jsx(o,{...i}),...t}):e.jsx(o,{...i})}a.propTypes={labelProps:d.object};function m({labelProps:t,className:i,style:r,...l}){const s={...t,labelPlacement:t?.labelPlacement||"start"};return e.jsx(b,{className:i,style:r,labelPlacement:t?.labelPlacement,children:e.jsx(a,{labelProps:s,...l})})}m.propTypes=a.propTypes;const b=p.div`
1
+ import{j as e,aU as n,dd as c,o as d,s as p}from"./index-OdvXHPqT.js";import{S as u}from"./Switch-iXfQHCNE.js";const o=c(t=>e.jsx(u,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:t.palette.primary.main,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:t.palette.primary.main,border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:t.palette.grey[200],opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}));function a({labelProps:t=null,...i}){return t?e.jsx(n,{control:e.jsx(o,{...i}),...t}):e.jsx(o,{...i})}a.propTypes={labelProps:d.object};function m({labelProps:t,className:i,style:r,...l}){const s={...t,labelPlacement:t?.labelPlacement||"start"};return e.jsx(b,{className:i,style:r,labelPlacement:t?.labelPlacement,children:e.jsx(a,{labelProps:s,...l})})}m.propTypes=a.propTypes;const b=p.div`
2
2
  max-width: ${({labelPlacement:t})=>t==="end"?"100%":"300px"};
3
3
  > label {
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{aG as lt,j as A,hF as ne,dg as ve,dz as Be,bd as ki,be as ke,dw as zt,dy as rt,iq as hh,bW as Fe,bX as Ne,dN as we,r as O,d5 as mh,b8 as ae,eZ as q,b$ as $e,T as _t,av as Un,ir as gh,ce as Ri,db as na,gB as yd,dO as Cd,cf as ar,bT as bh,f as aa,a4 as ur,cb as vh,cg as Dd,dn as yh,o as Fl,G as Ch,dH as Vr,gD as Dh,fj as wh,gC as Ph,dc as Ea,dK as Th,dI as xh,fl as Sh,fc as kh,gE as Nl,gF as Rh,F as Ei,eH as $l,hG as Mi,dM as Eh,s as Mh,_ as Oh}from"./index-Cp668Jsm.js";import{b as re,S as wd,a as Wt,T as At,c as pt,h as nn,i as oa,j as ze,U as ia,W as la,X as Oi,Y as sa,Z as Pd,_ as ua,g as ca,B as _h,M as Ih,A as Ah,C as Lh,I as jh,F as Bh,$ as Fh,a0 as Nh,a1 as $h,l as Vh,k as Dt,J as Ct,w as da,n as Ut,t as Td,v as _i,q as xd,a2 as qh,o as zh,p as Wh,E as cr,z as Ht,a3 as Uh,a4 as Hh,a5 as Gh,a6 as Yh,a7 as Kh,a8 as Qh,m as an,x as Xh,s as Zh,a9 as Jh,aa as em,D as Sd,R as tm,L as rm,N as nm,y as am,ab as om,ac as im,P as lm,ad as sm,ae as um,O as cm,G as dm,V as fm}from"./FilterList-C7CgIPm8.js";import{r as Pe,A as Ii,B as nt,C as Hn,D as fi,t as Ce,E as kd,F as Rd,c as pi,o as pm,G as St,H as hm,I as mm,J as hi,K as Ed,L as gm,M as bm,N as Md,O as Ai,P as Vl,Q as vm,R as ql,S as ym,T as Cm,p as Dm,a as zl,b as wm,j as Ma,h as Wl,m as Pm,k as hn,u as Kt,i as Tm,n as xm,g as mn,f as Oa,d as gn,s as _a,e as Ia,x as Sm,z as km,q as Rm,l as Em,v as Mm,w as Om,U as _m,y as Im,V as Am,W as Lm}from"./index-DBii9-f-.js";import{_ as jm}from"./typeof-QjJsDpFa.js";import{f as Bm,d as Ul,c as Fm,b as Re,_ as xe,a as Se,u as Te,g as le,r as Yr,w as Gn,h as Od,i as Gt,j as _d,k as Nm,l as $m,o as mi}from"./raf-schd.esm-le4x5qzb.js";import{_ as te,b as Hl,c as Vm,a as qm,d as zm}from"./redux-DfszZyTl.js";import{u as Le}from"./useThemeProps-CEesX7e5.js";import{C as Wm}from"./CSSTransition-D9w1WbTD.js";import{a as Gl,b as Um,t as Hm}from"./html-title-HtPlSvGf.js";import{A as Gm}from"./Add-B2ZDVqat.js";import{D as Ym}from"./url-evaluation-ZlHZwvb8.js";import{C as Yl}from"./Clear-CY2XI9UL.js";import{E as Km}from"./Edit-CQvdC-gs.js";import{N as Kl}from"./ChevronRight-BHex1y5g.js";import{P as Qm}from"./ChevronLeft-C1WpAw9J.js";import{S as Xm}from"./Search-CviyP5PC.js";import{A as Zm}from"./ArrowDropDown-DTUdke6O.js";const Jm=lt(A.jsx("path",{d:"m15.96 10.29-2.75 3.54-1.96-2.36L8.5 15h11zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2m0 16H7V3h14z"})),eg=lt(A.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),tg=lt(A.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),rg=lt(A.jsx("path",{d:"M19 13H5v-2h14z"})),ng=lt(A.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}));var ag=36e5;function og(e,t){Pe(2,arguments);var r=nt(t);return Ii(e,r*ag)}var ig=864e5;function lg(e,t){Pe(2,arguments);var r=Hn(e),a=Hn(t),n=r.getTime()-fi(r),o=a.getTime()-fi(a);return Math.round((n-o)/ig)}var sg=6e4;function ug(e,t){Pe(2,arguments);var r=nt(t);return Ii(e,r*sg)}function cg(e,t){Pe(2,arguments);var r=nt(t);return Ii(e,r*1e3)}function Wr(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t),n=r.getTime()-a.getTime();return n<0?-1:n>0?1:n}function dg(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t);return r.getFullYear()-a.getFullYear()}function Ql(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function Id(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t),n=Ql(r,a),o=Math.abs(lg(r,a));r.setDate(r.getDate()-n*o);var i=+(Ql(r,a)===-n),l=n*(o-i);return l===0?0:l}function fa(e,t){return Pe(2,arguments),Ce(e).getTime()-Ce(t).getTime()}var Xl={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},fg="trunc";function on(e){return e?Xl[e]:Xl[fg]}function pg(e,t,r){Pe(2,arguments);var a=fa(e,t)/kd;return on(void 0)(a)}function hg(e,t,r){Pe(2,arguments);var a=fa(e,t)/Rd;return on(void 0)(a)}function gi(e){Pe(1,arguments);var t=Ce(e);return t.setHours(23,59,59,999),t}function mg(e){Pe(1,arguments);var t=Ce(e);return gi(t).getTime()===pi(t).getTime()}function Ad(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t),n=Wr(r,a),o=Math.abs(pm(r,a)),i;if(o<1)i=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-n*o);var l=Wr(r,a)===-n;mg(Ce(e))&&o===1&&Wr(e,a)===1&&(l=!1),i=n*(o-Number(l))}return i===0?0:i}function gg(e,t,r){Pe(2,arguments);var a=Ad(e,t)/3;return on(void 0)(a)}function bg(e,t,r){Pe(2,arguments);var a=fa(e,t)/1e3;return on(void 0)(a)}function vg(e,t,r){Pe(2,arguments);var a=Id(e,t)/7;return on(void 0)(a)}function yg(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t),n=Wr(r,a),o=Math.abs(dg(r,a));r.setFullYear(1584),a.setFullYear(1584);var i=Wr(r,a)===-n,l=n*(o-Number(i));return l===0?0:l}function Cg(e,t){var r;Pe(1,arguments);var a=e||{},n=Ce(a.start),o=Ce(a.end),i=o.getTime();if(!(n.getTime()<=i))throw new RangeError("Invalid interval");var l=[],u=n;u.setHours(0,0,0,0);var s=Number((r=void 0)!==null&&r!==void 0?r:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=i;)l.push(Ce(u)),u.setDate(u.getDate()+s),u.setHours(0,0,0,0);return l}function Dg(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function wg(e,t){var r,a;Pe(1,arguments);var n=Ce(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");var o=String((r=t?.format)!==null&&r!==void 0?r:"extended"),i=String((a=t?.representation)!==null&&a!==void 0?a:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(i!=="date"&&i!=="time"&&i!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var l="",u="",s=o==="extended"?"-":"",f=o==="extended"?":":"";if(i!=="time"){var d=St(n.getDate(),2),c=St(n.getMonth()+1,2),b=St(n.getFullYear(),4);l="".concat(b).concat(s).concat(c).concat(s).concat(d)}if(i!=="date"){var C=n.getTimezoneOffset();if(C!==0){var g=Math.abs(C),y=St(Math.floor(g/60),2),m=St(g%60,2),p=C<0?"+":"-";u="".concat(p).concat(y,":").concat(m)}else u="Z";var h=St(n.getHours(),2),v=St(n.getMinutes(),2),S=St(n.getSeconds(),2),w=l===""?"":"T",P=[h,v,S].join(f);l="".concat(l).concat(w).concat(P).concat(u)}return l}function Pg(e){Pe(1,arguments);var t=Ce(e),r=t.getDay();return r}function Tg(e){Pe(1,arguments);var t=Ce(e),r=t.getHours();return r}function xg(e){Pe(1,arguments);var t=Ce(e),r=t.getMinutes();return r}function Sg(e){Pe(1,arguments);var t=Ce(e),r=t.getSeconds();return r}function kg(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t);return r.getTime()===a.getTime()}function Zl(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Bm(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(s){throw s},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ import{aG as lt,j as A,hF as ne,dg as ve,dz as Be,bd as ki,be as ke,dw as zt,dy as rt,iq as hh,bW as Fe,bX as Ne,dN as we,r as O,d5 as mh,b8 as ae,eZ as q,b$ as $e,T as _t,av as Un,ir as gh,ce as Ri,db as na,gB as yd,dO as Cd,cf as ar,bT as bh,f as aa,a4 as ur,cb as vh,cg as Dd,dn as yh,o as Fl,G as Ch,dH as Vr,gD as Dh,fj as wh,gC as Ph,dc as Ea,dK as Th,dI as xh,fl as Sh,fc as kh,gE as Nl,gF as Rh,F as Ei,eH as $l,hG as Mi,dM as Eh,s as Mh,_ as Oh}from"./index-OdvXHPqT.js";import{b as re,S as wd,a as Wt,T as At,c as pt,h as nn,i as oa,j as ze,U as ia,W as la,X as Oi,Y as sa,Z as Pd,_ as ua,g as ca,B as _h,M as Ih,A as Ah,C as Lh,I as jh,F as Bh,$ as Fh,a0 as Nh,a1 as $h,l as Vh,k as Dt,J as Ct,w as da,n as Ut,t as Td,v as _i,q as xd,a2 as qh,o as zh,p as Wh,E as cr,z as Ht,a3 as Uh,a4 as Hh,a5 as Gh,a6 as Yh,a7 as Kh,a8 as Qh,m as an,x as Xh,s as Zh,a9 as Jh,aa as em,D as Sd,R as tm,L as rm,N as nm,y as am,ab as om,ac as im,P as lm,ad as sm,ae as um,O as cm,G as dm,V as fm}from"./FilterList-BnK3OcNB.js";import{r as Pe,A as Ii,B as nt,C as Hn,D as fi,t as Ce,E as kd,F as Rd,c as pi,o as pm,G as St,H as hm,I as mm,J as hi,K as Ed,L as gm,M as bm,N as Md,O as Ai,P as Vl,Q as vm,R as ql,S as ym,T as Cm,p as Dm,a as zl,b as wm,j as Ma,h as Wl,m as Pm,k as hn,u as Kt,i as Tm,n as xm,g as mn,f as Oa,d as gn,s as _a,e as Ia,x as Sm,z as km,q as Rm,l as Em,v as Mm,w as Om,U as _m,y as Im,V as Am,W as Lm}from"./index-DBii9-f-.js";import{_ as jm}from"./typeof-QjJsDpFa.js";import{f as Bm,d as Ul,c as Fm,b as Re,_ as xe,a as Se,u as Te,g as le,r as Yr,w as Gn,h as Od,i as Gt,j as _d,k as Nm,l as $m,o as mi}from"./raf-schd.esm-DUMXV33K.js";import{_ as te,b as Hl,c as Vm,a as qm,d as zm}from"./redux-DfszZyTl.js";import{u as Le}from"./useThemeProps-B8kKGfuj.js";import{C as Wm}from"./CSSTransition-CgU-qJG1.js";import{a as Gl,b as Um,t as Hm}from"./html-title-F0NEfYXw.js";import{A as Gm}from"./Add-CTkKWsbA.js";import{D as Ym}from"./url-evaluation-DgbmtLnr.js";import{C as Yl}from"./Clear-D0eiF7LM.js";import{E as Km}from"./Edit-BDZJlnuz.js";import{N as Kl}from"./ChevronRight-CgNj8oK3.js";import{P as Qm}from"./ChevronLeft-Mrf8wNcO.js";import{S as Xm}from"./Search-2a28Zd0Q.js";import{A as Zm}from"./ArrowDropDown-CPMzkOwU.js";const Jm=lt(A.jsx("path",{d:"m15.96 10.29-2.75 3.54-1.96-2.36L8.5 15h11zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2m0 16H7V3h14z"})),eg=lt(A.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),tg=lt(A.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),rg=lt(A.jsx("path",{d:"M19 13H5v-2h14z"})),ng=lt(A.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}));var ag=36e5;function og(e,t){Pe(2,arguments);var r=nt(t);return Ii(e,r*ag)}var ig=864e5;function lg(e,t){Pe(2,arguments);var r=Hn(e),a=Hn(t),n=r.getTime()-fi(r),o=a.getTime()-fi(a);return Math.round((n-o)/ig)}var sg=6e4;function ug(e,t){Pe(2,arguments);var r=nt(t);return Ii(e,r*sg)}function cg(e,t){Pe(2,arguments);var r=nt(t);return Ii(e,r*1e3)}function Wr(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t),n=r.getTime()-a.getTime();return n<0?-1:n>0?1:n}function dg(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t);return r.getFullYear()-a.getFullYear()}function Ql(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function Id(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t),n=Ql(r,a),o=Math.abs(lg(r,a));r.setDate(r.getDate()-n*o);var i=+(Ql(r,a)===-n),l=n*(o-i);return l===0?0:l}function fa(e,t){return Pe(2,arguments),Ce(e).getTime()-Ce(t).getTime()}var Xl={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},fg="trunc";function on(e){return e?Xl[e]:Xl[fg]}function pg(e,t,r){Pe(2,arguments);var a=fa(e,t)/kd;return on(void 0)(a)}function hg(e,t,r){Pe(2,arguments);var a=fa(e,t)/Rd;return on(void 0)(a)}function gi(e){Pe(1,arguments);var t=Ce(e);return t.setHours(23,59,59,999),t}function mg(e){Pe(1,arguments);var t=Ce(e);return gi(t).getTime()===pi(t).getTime()}function Ad(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t),n=Wr(r,a),o=Math.abs(pm(r,a)),i;if(o<1)i=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-n*o);var l=Wr(r,a)===-n;mg(Ce(e))&&o===1&&Wr(e,a)===1&&(l=!1),i=n*(o-Number(l))}return i===0?0:i}function gg(e,t,r){Pe(2,arguments);var a=Ad(e,t)/3;return on(void 0)(a)}function bg(e,t,r){Pe(2,arguments);var a=fa(e,t)/1e3;return on(void 0)(a)}function vg(e,t,r){Pe(2,arguments);var a=Id(e,t)/7;return on(void 0)(a)}function yg(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t),n=Wr(r,a),o=Math.abs(dg(r,a));r.setFullYear(1584),a.setFullYear(1584);var i=Wr(r,a)===-n,l=n*(o-Number(i));return l===0?0:l}function Cg(e,t){var r;Pe(1,arguments);var a=e||{},n=Ce(a.start),o=Ce(a.end),i=o.getTime();if(!(n.getTime()<=i))throw new RangeError("Invalid interval");var l=[],u=n;u.setHours(0,0,0,0);var s=Number((r=void 0)!==null&&r!==void 0?r:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=i;)l.push(Ce(u)),u.setDate(u.getDate()+s),u.setHours(0,0,0,0);return l}function Dg(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function wg(e,t){var r,a;Pe(1,arguments);var n=Ce(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");var o=String((r=t?.format)!==null&&r!==void 0?r:"extended"),i=String((a=t?.representation)!==null&&a!==void 0?a:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(i!=="date"&&i!=="time"&&i!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var l="",u="",s=o==="extended"?"-":"",f=o==="extended"?":":"";if(i!=="time"){var d=St(n.getDate(),2),c=St(n.getMonth()+1,2),b=St(n.getFullYear(),4);l="".concat(b).concat(s).concat(c).concat(s).concat(d)}if(i!=="date"){var C=n.getTimezoneOffset();if(C!==0){var g=Math.abs(C),y=St(Math.floor(g/60),2),m=St(g%60,2),p=C<0?"+":"-";u="".concat(p).concat(y,":").concat(m)}else u="Z";var h=St(n.getHours(),2),v=St(n.getMinutes(),2),S=St(n.getSeconds(),2),w=l===""?"":"T",P=[h,v,S].join(f);l="".concat(l).concat(w).concat(P).concat(u)}return l}function Pg(e){Pe(1,arguments);var t=Ce(e),r=t.getDay();return r}function Tg(e){Pe(1,arguments);var t=Ce(e),r=t.getHours();return r}function xg(e){Pe(1,arguments);var t=Ce(e),r=t.getMinutes();return r}function Sg(e){Pe(1,arguments);var t=Ce(e),r=t.getSeconds();return r}function kg(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t);return r.getTime()===a.getTime()}function Zl(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Bm(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(s){throw s},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var s=r.next();return i=s.done,s},e:function(s){l=!0,o=s},f:function(){try{i||r.return==null||r.return()}finally{if(l)throw o}}}}function Ld(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ld=function(){return!!e})()}function Ee(e){var t=Ld();return function(){var r,a=Ul(e);if(t){var n=Ul(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return Fm(this,r)}}var Rg=10,jd=function(){function e(){Se(this,e),te(this,"priority",void 0),te(this,"subPriority",0)}return xe(e,[{key:"validate",value:function(r,a){return!0}}]),e}(),Eg=function(e){Re(r,e);var t=Ee(r);function r(a,n,o,i,l){var u;return Se(this,r),u=t.call(this),u.value=a,u.validateValue=n,u.setValue=o,u.priority=i,l&&(u.subPriority=l),u}return xe(r,[{key:"validate",value:function(n,o){return this.validateValue(n,this.value,o)}},{key:"set",value:function(n,o,i){return this.setValue(n,o,this.value,i)}}]),r}(jd),Mg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",Rg),te(ne(a),"subPriority",-1),a}return xe(r,[{key:"set",value:function(n,o){if(o.timestampIsSet)return n;var i=new Date(0);return i.setFullYear(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()),i.setHours(n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()),i}}]),r}(jd),_e=function(){function e(){Se(this,e),te(this,"incompatibleTokens",void 0),te(this,"priority",void 0),te(this,"subPriority",void 0)}return xe(e,[{key:"run",value:function(r,a,n,o){var i=this.parse(r,a,n,o);return i?{setter:new Eg(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(r,a,n){return!0}}]),e}(),Og=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",140),te(ne(a),"incompatibleTokens",["R","u","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}},{key:"set",value:function(n,o,i){return o.era=i,n.setUTCFullYear(i,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Ge={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},bt={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Ye(e,t){return e&&{value:t(e.value),rest:e.rest}}function qe(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function vt(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var a=r[1]==="+"?1:-1,n=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,i=r[5]?parseInt(r[5],10):0;return{value:a*(n*kd+o*Rd+i*hm),rest:t.slice(r[0].length)}}function Bd(e){return qe(Ge.anyDigitsSigned,e)}function He(e,t){switch(e){case 1:return qe(Ge.singleDigit,t);case 2:return qe(Ge.twoDigits,t);case 3:return qe(Ge.threeDigits,t);case 4:return qe(Ge.fourDigits,t);default:return qe(new RegExp("^\\d{1,"+e+"}"),t)}}function Yn(e,t){switch(e){case 1:return qe(Ge.singleDigitSigned,t);case 2:return qe(Ge.twoDigitsSigned,t);case 3:return qe(Ge.threeDigitsSigned,t);case 4:return qe(Ge.fourDigitsSigned,t);default:return qe(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Li(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Fd(e,t){var r=t>0,a=r?t:1-t,n;if(a<=50)n=e||100;else{var o=a+50,i=Math.floor(o/100)*100,l=e>=o%100;n=e+i-(l?100:0)}return r?n:1-n}function Nd(e){return e%400===0||e%4===0&&e%100!==0}var _g=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",130),te(ne(a),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){var l=function(s){return{year:s,isTwoDigitYear:o==="yy"}};switch(o){case"y":return Ye(He(4,n),l);case"yo":return Ye(i.ordinalNumber(n,{unit:"year"}),l);default:return Ye(He(o.length,n),l)}}},{key:"validate",value:function(n,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(n,o,i){var l=n.getUTCFullYear();if(i.isTwoDigitYear){var u=Fd(i.year,l);return n.setUTCFullYear(u,0,1),n.setUTCHours(0,0,0,0),n}var s=!("era"in o)||o.era===1?i.year:1-i.year;return n.setUTCFullYear(s,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Ig=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",130),te(ne(a),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){var l=function(s){return{year:s,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return Ye(He(4,n),l);case"Yo":return Ye(i.ordinalNumber(n,{unit:"year"}),l);default:return Ye(He(o.length,n),l)}}},{key:"validate",value:function(n,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(n,o,i,l){var u=mm(n,l);if(i.isTwoDigitYear){var s=Fd(i.year,u);return n.setUTCFullYear(s,0,l.firstWeekContainsDate),n.setUTCHours(0,0,0,0),hi(n,l)}var f=!("era"in o)||o.era===1?i.year:1-i.year;return n.setUTCFullYear(f,0,l.firstWeekContainsDate),n.setUTCHours(0,0,0,0),hi(n,l)}}]),r}(_e),Ag=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",130),te(ne(a),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o){return Yn(o==="R"?4:o.length,n)}},{key:"set",value:function(n,o,i){var l=new Date(0);return l.setUTCFullYear(i,0,4),l.setUTCHours(0,0,0,0),Ed(l)}}]),r}(_e),Lg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",130),te(ne(a),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o){return Yn(o==="u"?4:o.length,n)}},{key:"set",value:function(n,o,i){return n.setUTCFullYear(i,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(_e),jg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",120),te(ne(a),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"Q":case"QQ":return He(o.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,o){return o>=1&&o<=4}},{key:"set",value:function(n,o,i){return n.setUTCMonth((i-1)*3,1),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Bg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",120),te(ne(a),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"q":case"qq":return He(o.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,o){return o>=1&&o<=4}},{key:"set",value:function(n,o,i){return n.setUTCMonth((i-1)*3,1),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Fg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),te(ne(a),"priority",110),a}return xe(r,[{key:"parse",value:function(n,o,i){var l=function(s){return s-1};switch(o){case"M":return Ye(qe(Ge.month,n),l);case"MM":return Ye(He(2,n),l);case"Mo":return Ye(i.ordinalNumber(n,{unit:"month"}),l);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,o){return o>=0&&o<=11}},{key:"set",value:function(n,o,i){return n.setUTCMonth(i,1),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Ng=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",110),te(ne(a),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){var l=function(s){return s-1};switch(o){case"L":return Ye(qe(Ge.month,n),l);case"LL":return Ye(He(2,n),l);case"Lo":return Ye(i.ordinalNumber(n,{unit:"month"}),l);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,o){return o>=0&&o<=11}},{key:"set",value:function(n,o,i){return n.setUTCMonth(i,1),n.setUTCHours(0,0,0,0),n}}]),r}(_e);function $g(e,t,r){Pe(2,arguments);var a=Ce(e),n=nt(t),o=gm(a,r)-n;return a.setUTCDate(a.getUTCDate()-o*7),a}var Vg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",100),te(ne(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"w":return qe(Ge.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){return o>=1&&o<=53}},{key:"set",value:function(n,o,i,l){return hi($g(n,i,l),l)}}]),r}(_e);function qg(e,t){Pe(2,arguments);var r=Ce(e),a=nt(t),n=bm(r)-a;return r.setUTCDate(r.getUTCDate()-n*7),r}var zg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",100),te(ne(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"I":return qe(Ge.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){return o>=1&&o<=53}},{key:"set",value:function(n,o,i){return Ed(qg(n,i))}}]),r}(_e),Wg=[31,28,31,30,31,30,31,31,30,31,30,31],Ug=[31,29,31,30,31,30,31,31,30,31,30,31],Hg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",90),te(ne(a),"subPriority",1),te(ne(a),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"d":return qe(Ge.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){var i=n.getUTCFullYear(),l=Nd(i),u=n.getUTCMonth();return l?o>=1&&o<=Ug[u]:o>=1&&o<=Wg[u]}},{key:"set",value:function(n,o,i){return n.setUTCDate(i),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Gg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",90),te(ne(a),"subpriority",1),te(ne(a),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"D":case"DD":return qe(Ge.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){var i=n.getUTCFullYear(),l=Nd(i);return l?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(n,o,i){return n.setUTCMonth(0,i),n.setUTCHours(0,0,0,0),n}}]),r}(_e);function ji(e,t,r){var a,n,o,i,l,u,s,f;Pe(2,arguments);var d=Md(),c=nt((a=(n=(o=(i=r?.weekStartsOn)!==null&&i!==void 0?i:r==null||(l=r.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&n!==void 0?n:(s=d.locale)===null||s===void 0||(f=s.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&a!==void 0?a:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var b=Ce(e),C=nt(t),g=b.getUTCDay(),y=C%7,m=(y+7)%7,p=(m<c?7:0)+C-g;return b.setUTCDate(b.getUTCDate()+p),b}var Yg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",90),te(ne(a),"incompatibleTokens",["D","i","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,o){return o>=0&&o<=6}},{key:"set",value:function(n,o,i,l){return n=ji(n,i,l),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Kg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",90),te(ne(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i,l){var u=function(f){var d=Math.floor((f-1)/7)*7;return(f+l.weekStartsOn+6)%7+d};switch(o){case"e":case"ee":return Ye(He(o.length,n),u);case"eo":return Ye(i.ordinalNumber(n,{unit:"day"}),u);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,o){return o>=0&&o<=6}},{key:"set",value:function(n,o,i,l){return n=ji(n,i,l),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Qg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",90),te(ne(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i,l){var u=function(f){var d=Math.floor((f-1)/7)*7;return(f+l.weekStartsOn+6)%7+d};switch(o){case"c":case"cc":return Ye(He(o.length,n),u);case"co":return Ye(i.ordinalNumber(n,{unit:"day"}),u);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,o){return o>=0&&o<=6}},{key:"set",value:function(n,o,i,l){return n=ji(n,i,l),n.setUTCHours(0,0,0,0),n}}]),r}(_e);function Xg(e,t){Pe(2,arguments);var r=nt(t);r%7===0&&(r=r-7);var a=1,n=Ce(e),o=n.getUTCDay(),i=r%7,l=(i+7)%7,u=(l<a?7:0)+r-o;return n.setUTCDate(n.getUTCDate()+u),n}var Zg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",90),te(ne(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){var l=function(s){return s===0?7:s};switch(o){case"i":case"ii":return He(o.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return Ye(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),l);case"iiiii":return Ye(i.day(n,{width:"narrow",context:"formatting"}),l);case"iiiiii":return Ye(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),l);case"iiii":default:return Ye(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),l)}}},{key:"validate",value:function(n,o){return o>=1&&o<=7}},{key:"set",value:function(n,o,i){return n=Xg(n,i),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Jg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",80),te(ne(a),"incompatibleTokens",["b","B","H","k","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,o,i){return n.setUTCHours(Li(i),0,0,0),n}}]),r}(_e),eb=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",80),te(ne(a),"incompatibleTokens",["a","B","H","k","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,o,i){return n.setUTCHours(Li(i),0,0,0),n}}]),r}(_e),tb=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",80),te(ne(a),"incompatibleTokens",["a","b","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,o,i){return n.setUTCHours(Li(i),0,0,0),n}}]),r}(_e),rb=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",70),te(ne(a),"incompatibleTokens",["H","K","k","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"h":return qe(Ge.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){return o>=1&&o<=12}},{key:"set",value:function(n,o,i){var l=n.getUTCHours()>=12;return l&&i<12?n.setUTCHours(i+12,0,0,0):!l&&i===12?n.setUTCHours(0,0,0,0):n.setUTCHours(i,0,0,0),n}}]),r}(_e),nb=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",70),te(ne(a),"incompatibleTokens",["a","b","h","K","k","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"H":return qe(Ge.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){return o>=0&&o<=23}},{key:"set",value:function(n,o,i){return n.setUTCHours(i,0,0,0),n}}]),r}(_e),ab=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",70),te(ne(a),"incompatibleTokens",["h","H","k","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"K":return qe(Ge.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){return o>=0&&o<=11}},{key:"set",value:function(n,o,i){var l=n.getUTCHours()>=12;return l&&i<12?n.setUTCHours(i+12,0,0,0):n.setUTCHours(i,0,0,0),n}}]),r}(_e),ob=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",70),te(ne(a),"incompatibleTokens",["a","b","h","H","K","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"k":return qe(Ge.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){return o>=1&&o<=24}},{key:"set",value:function(n,o,i){var l=i<=24?i%24:i;return n.setUTCHours(l,0,0,0),n}}]),r}(_e),ib=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",60),te(ne(a),"incompatibleTokens",["t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"m":return qe(Ge.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){return o>=0&&o<=59}},{key:"set",value:function(n,o,i){return n.setUTCMinutes(i,0,0),n}}]),r}(_e),lb=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",50),te(ne(a),"incompatibleTokens",["t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"s":return qe(Ge.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){return o>=0&&o<=59}},{key:"set",value:function(n,o,i){return n.setUTCSeconds(i,0),n}}]),r}(_e),sb=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",30),te(ne(a),"incompatibleTokens",["t","T"]),a}return xe(r,[{key:"parse",value:function(n,o){var i=function(u){return Math.floor(u*Math.pow(10,-o.length+3))};return Ye(He(o.length,n),i)}},{key:"set",value:function(n,o,i){return n.setUTCMilliseconds(i),n}}]),r}(_e),ub=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",10),te(ne(a),"incompatibleTokens",["t","T","x"]),a}return xe(r,[{key:"parse",value:function(n,o){switch(o){case"X":return vt(bt.basicOptionalMinutes,n);case"XX":return vt(bt.basic,n);case"XXXX":return vt(bt.basicOptionalSeconds,n);case"XXXXX":return vt(bt.extendedOptionalSeconds,n);case"XXX":default:return vt(bt.extended,n)}}},{key:"set",value:function(n,o,i){return o.timestampIsSet?n:new Date(n.getTime()-i)}}]),r}(_e),cb=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",10),te(ne(a),"incompatibleTokens",["t","T","X"]),a}return xe(r,[{key:"parse",value:function(n,o){switch(o){case"x":return vt(bt.basicOptionalMinutes,n);case"xx":return vt(bt.basic,n);case"xxxx":return vt(bt.basicOptionalSeconds,n);case"xxxxx":return vt(bt.extendedOptionalSeconds,n);case"xxx":default:return vt(bt.extended,n)}}},{key:"set",value:function(n,o,i){return o.timestampIsSet?n:new Date(n.getTime()-i)}}]),r}(_e),db=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",40),te(ne(a),"incompatibleTokens","*"),a}return xe(r,[{key:"parse",value:function(n){return Bd(n)}},{key:"set",value:function(n,o,i){return[new Date(i*1e3),{timestampIsSet:!0}]}}]),r}(_e),fb=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",20),te(ne(a),"incompatibleTokens","*"),a}return xe(r,[{key:"parse",value:function(n){return Bd(n)}},{key:"set",value:function(n,o,i){return[new Date(i),{timestampIsSet:!0}]}}]),r}(_e),pb={G:new Og,y:new _g,Y:new Ig,R:new Ag,u:new Lg,Q:new jg,q:new Bg,M:new Fg,L:new Ng,w:new Vg,I:new zg,d:new Hg,D:new Gg,E:new Yg,e:new Kg,c:new Qg,i:new Zg,a:new Jg,b:new eb,B:new tb,h:new rb,H:new nb,K:new ab,k:new ob,m:new ib,s:new lb,S:new sb,X:new ub,x:new cb,t:new db,T:new fb},hb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gb=/^'([^]*?)'?$/,bb=/''/g,vb=/\S/,yb=/[a-zA-Z]/;function Cb(e,t,r,a){var n,o,i,l,u,s,f,d,c,b,C,g,y,m,p,h,v,S;Pe(3,arguments);var w=String(e),P=String(t),D=Md(),x=(n=(o=a?.locale)!==null&&o!==void 0?o:D.locale)!==null&&n!==void 0?n:Ai;if(!x.match)throw new RangeError("locale must contain match property");var k=nt((i=(l=(u=(s=a?.firstWeekContainsDate)!==null&&s!==void 0?s:a==null||(f=a.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&u!==void 0?u:D.firstWeekContainsDate)!==null&&l!==void 0?l:(c=D.locale)===null||c===void 0||(b=c.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=nt((C=(g=(y=(m=a?.weekStartsOn)!==null&&m!==void 0?m:a==null||(p=a.locale)===null||p===void 0||(h=p.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&y!==void 0?y:D.weekStartsOn)!==null&&g!==void 0?g:(v=D.locale)===null||v===void 0||(S=v.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&C!==void 0?C:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(P==="")return w===""?Ce(r):new Date(NaN);var M={firstWeekContainsDate:k,weekStartsOn:R,locale:x},E=[new Mg],_=P.match(mb).map(function(W){var G=W[0];if(G in Vl){var J=Vl[G];return J(W,x.formatLong)}return W}).join("").match(hb),j=[],V=Zl(_),U;try{var z=function(){var G=U.value;!(a!=null&&a.useAdditionalWeekYearTokens)&&vm(G)&&ql(G,P,e),!(a!=null&&a.useAdditionalDayOfYearTokens)&&ym(G)&&ql(G,P,e);var J=G[0],he=pb[J];if(he){var Q=he.incompatibleTokens;if(Array.isArray(Q)){var X=j.find(function(De){return Q.includes(De.token)||De.token===J});if(X)throw new RangeError("The format string mustn't contain `".concat(X.fullToken,"` and `").concat(G,"` at the same time"))}else if(he.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(G,"` and any other token at the same time"));j.push({token:J,fullToken:G});var pe=he.run(w,G,x.match,M);if(!pe)return{v:new Date(NaN)};E.push(pe.setter),w=pe.rest}else{if(J.match(yb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+J+"`");if(G==="''"?G="'":J==="'"&&(G=Db(G)),w.indexOf(G)===0)w=w.slice(G.length);else return{v:new Date(NaN)}}};for(V.s();!(U=V.n()).done;){var Y=z();if(jm(Y)==="object")return Y.v}}catch(W){V.e(W)}finally{V.f()}if(w.length>0&&vb.test(w))return new Date(NaN);var H=E.map(function(W){return W.priority}).sort(function(W,G){return G-W}).filter(function(W,G,J){return J.indexOf(W)===G}).map(function(W){return E.filter(function(G){return G.priority===W}).sort(function(G,J){return J.subPriority-G.subPriority})}).map(function(W){return W[0]}),T=Ce(r);if(isNaN(T.getTime()))return new Date(NaN);var F=Cm(T,fi(T)),N={},I=Zl(H),L;try{for(I.s();!(L=I.n()).done;){var B=L.value;if(!B.validate(F,M))return new Date(NaN);var $=B.set(F,N,M);Array.isArray($)?(F=$[0],Dg(N,$[1])):F=$}}catch(W){I.e(W)}finally{I.f()}return F}function Db(e){return e.match(gb)[1].replace(bb,"'")}function Jl(e){Pe(1,arguments);var t=Ce(e);return t.setMinutes(0,0,0),t}function wb(e,t){Pe(2,arguments);var r=Jl(e),a=Jl(t);return r.getTime()===a.getTime()}function Pb(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t);return r.getFullYear()===a.getFullYear()}function Tb(e,t){Pe(2,arguments);var r=Ce(e),a=nt(t);return r.setDate(a),r}function xb(e,t){Pe(2,arguments);var r=Ce(e),a=nt(t);return r.setHours(a),r}function Sb(e,t){Pe(2,arguments);var r=Ce(e),a=nt(t);return r.setMinutes(a),r}function kb(e,t){Pe(2,arguments);var r=Ce(e),a=nt(t);return r.setSeconds(a),r}var Aa={},La={exports:{}},es;function Ve(){return es||(es=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var a=1;a<arguments.length;a++){var n=arguments[a];for(var o in n)({}).hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(La)),La.exports}var vr={},ja={},Ba={},Fa={},ts;function Rb(){return ts||(ts=1,function(e){var t=re();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ve()),a=t(wd()),n=t(ve()),o=t(Be()),i=Wt();function l(s){var f=(0,i.useTheme)();return n.default.createElement("div",{ref:s.forwardedRef,style:{display:"table",width:"100%",height:"100%",backgroundColor:f.palette.background.paper,opacity:.7}},n.default.createElement("div",{style:{display:"table-cell",width:"100%",height:"100%",verticalAlign:"middle",textAlign:"center"}},n.default.createElement(a.default,null)))}l.propTypes={theme:o.default.any};var u=n.default.forwardRef(function(f,d){return n.default.createElement(l,(0,r.default)({},f,{forwardedRef:d}))});e.default=u}(Fa)),Fa}var Na={},$a={},ft={},Va={exports:{}},qa={exports:{}},za={exports:{}},rs;function Eb(){return rs||(rs=1,function(e){var t=At().default;function r(a,n){if(t(a)!="object"||!a)return a;var o=a[Symbol.toPrimitive];if(o!==void 0){var i=o.call(a,n||"default");if(t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(a)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(za)),za.exports}var ns;function $d(){return ns||(ns=1,function(e){var t=At().default,r=Eb();function a(n){var o=r(n,"string");return t(o)=="symbol"?o:o+""}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}(qa)),qa.exports}var as;function Qe(){return as||(as=1,function(e){var t=$d();function r(a,n,o){return(n=t(n))in a?Object.defineProperty(a,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[n]=o,a}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Va)),Va.exports}const Mb={},os=e=>{let t;const r=new Set,a=(f,d)=>{const c=typeof f=="function"?f(t):f;if(!Object.is(c,t)){const b=t;t=d??(typeof c!="object"||c===null)?c:Object.assign({},t,c),r.forEach(C=>C(t,b))}},n=()=>t,u={setState:a,getState:n,getInitialState:()=>s,subscribe:f=>(r.add(f),()=>r.delete(f)),destroy:()=>{(Mb?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},s=t=e(a,n,u);return u},Vd=e=>e?os(e):os;var Wa={exports:{}},Ua={},Ha={exports:{}},Ga={};/**
3
3
  * @license React
4
4
  * use-sync-external-store-shim.production.js