@abtnode/webapp 1.16.45-beta-20250618-073451-6e48fb62 → 1.16.45-beta-20250624-134945-a23c15fc

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 (232) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-Cf6af3xk.js → AdapterDayjs-cf9EXlHB.js} +1 -1
  4. package/dist/assets/{Add-BFsFN1Gy.js → Add-ClzfE4cH.js} +1 -1
  5. package/dist/assets/{ArrowDropDown-CejcJzkX.js → ArrowDropDown-CJ2MJgn5.js} +1 -1
  6. package/dist/assets/{Autocomplete-PeF181FR.js → Autocomplete-CayznxGz.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-B6YSRzTf.js → Breadcrumbs-C9QQGBOd.js} +1 -1
  8. package/dist/assets/{ButtonGroup-BzAT8pGA.js → ButtonGroup-B3J8Qdyl.js} +1 -1
  9. package/dist/assets/{CSSTransition-Byi2ne4y.js → CSSTransition-Cz8SmnJv.js} +1 -1
  10. package/dist/assets/{CallMerge-CaTZFXVq.js → CallMerge-B6RVJ3nX.js} +1 -1
  11. package/dist/assets/{CardContent-Dk0Md6L4.js → CardContent-Cg4RjHpv.js} +1 -1
  12. package/dist/assets/{ChevronLeft-CDs40tmH.js → ChevronLeft-BNmKlc1J.js} +1 -1
  13. package/dist/assets/{ChevronRight-CFfmouwT.js → ChevronRight-DRPUyxAK.js} +1 -1
  14. package/dist/assets/{Clear-CmPKgcDo.js → Clear-C1AC1AtD.js} +1 -1
  15. package/dist/assets/{Close-C8GsrnLa.js → Close-DRWGcKKl.js} +1 -1
  16. package/dist/assets/{Community-D1NMDj2P.js → Community-BPBk9hGT.js} +1 -1
  17. package/dist/assets/{Delete-CiU1bEBu.js → Delete-CcdfJXTL.js} +1 -1
  18. package/dist/assets/{DeleteOutline-reI_idEa.js → DeleteOutline-US18RBQ-.js} +1 -1
  19. package/dist/assets/{Done-BFMi5HXU.js → Done-DoaEDHCG.js} +1 -1
  20. package/dist/assets/{Edit-BvogU5l2.js → Edit-CJQK4atN.js} +1 -1
  21. package/dist/assets/{ErrorOutline-CLZmnhnI.js → ErrorOutline-CR7yRjZc.js} +1 -1
  22. package/dist/assets/{HelpOutline-hZN36iob.js → HelpOutline-DIMDDIpO.js} +1 -1
  23. package/dist/assets/{Holiday-CVr2LMMz.js → Holiday-DwuuABxa.js} +1 -1
  24. package/dist/assets/{Launch-BVKqak_-.js → Launch-CSu1nrjk.js} +1 -1
  25. package/dist/assets/{Link-C4o8Tfyg.js → Link-CBIXUB_y.js} +1 -1
  26. package/dist/assets/{ListItemButton-D2V2qgeT.js → ListItemButton-FKXnIc0i.js} +1 -1
  27. package/dist/assets/{ListSubheader-BSK-B-Hs.js → ListSubheader-Cawr8223.js} +1 -1
  28. package/dist/assets/{LoadingButton-VMcNYQ8q.js → LoadingButton-CRKt-OT1.js} +1 -1
  29. package/dist/assets/{LockIcon-C58tNgx9.js → LockIcon-CnYrREef.js} +1 -1
  30. package/dist/assets/{Meeting-ocx742Wk.js → Meeting-COxcunCf.js} +1 -1
  31. package/dist/assets/{MoreHoriz-CPdB-acW.js → MoreHoriz-JIt9gEw_.js} +1 -1
  32. package/dist/assets/{MoreVert-BZT8paNd.js → MoreVert-CjjkmApl.js} +1 -1
  33. package/dist/assets/{OffSick-a8D-sUdt.js → OffSick-Dlf0wRCP.js} +1 -1
  34. package/dist/assets/{OpenInNew-DJsi1NWq.js → OpenInNew-D-RnzHyt.js} +1 -1
  35. package/dist/assets/{Public-DSbGTo8s.js → Public-DQrPVGw9.js} +1 -1
  36. package/dist/assets/{Refresh-BK_aBn8t.js → Refresh-g_ze8RC-.js} +1 -1
  37. package/dist/assets/{SchemaReference.es-BYITplvj.js → SchemaReference.es-Bs4TGph_.js} +1 -1
  38. package/dist/assets/{Search-DGRuo7t-.js → Search-DmfQzntI.js} +1 -1
  39. package/dist/assets/{Slider-CS-gjd3v.js → Slider-C7KUHAl4.js} +1 -1
  40. package/dist/assets/{Stepper-ZCO4EB3o.js → Stepper-ECw_WCHI.js} +1 -1
  41. package/dist/assets/{Switch-CG3jQlg3.js → Switch-D1aSf0Rk.js} +1 -1
  42. package/dist/assets/{TableRow-Cyof88VP.js → TableRow-CL8yhyVQ.js} +1 -1
  43. package/dist/assets/{TableSearch-CxutcmoF.js → TableSearch-CxUE73Wm.js} +1 -1
  44. package/dist/assets/{ToggleButtonGroup-Dldk8U9s.js → ToggleButtonGroup-BADZ1hmi.js} +1 -1
  45. package/dist/assets/{Verified-DVQjMky2.js → Verified-CoaucJDJ.js} +1 -1
  46. package/dist/assets/{VerifiedUser-350MitWy.js → VerifiedUser-CGiTKpYb.js} +1 -1
  47. package/dist/assets/{ViewColumn-BSxTQVZ-.js → ViewColumn-DVO6c2uh.js} +1 -1
  48. package/dist/assets/{ViewList-BEu0UPsS.js → ViewList-CaLfZh_J.js} +1 -1
  49. package/dist/assets/{WorkingRemotely-BEw6X98n.js → WorkingRemotely-CIlCJe_n.js} +1 -1
  50. package/dist/assets/{_createAggregator-Djv2-ovu.js → _createAggregator-DKh4oPcE.js} +1 -1
  51. package/dist/assets/{actions-LyrEo_Cb.js → actions-D0cYymRM.js} +1 -1
  52. package/dist/assets/{actions-DNqu-9QQ.js → actions-DMblPsrA.js} +1 -1
  53. package/dist/assets/{agreement-Cc4wdZqi.js → agreement-CmpcKfmG.js} +1 -1
  54. package/dist/assets/api-D8CXYVbD.js +1 -0
  55. package/dist/assets/{appearance-BkddHlmf.js → appearance-CC06pu2W.js} +1 -1
  56. package/dist/assets/ar-BN95HEFs.js +7 -0
  57. package/dist/assets/{audit-logs-EkgBhSvA.js → audit-logs-D9nHuKQm.js} +1 -1
  58. package/dist/assets/{base-chart-C63mtC4Z.js → base-chart-DHzZnb2L.js} +1 -1
  59. package/dist/assets/{blocklet-BzkaFDNW.js → blocklet-C56CLqfn.js} +1 -1
  60. package/dist/assets/{brace-fold.es-CyCMNzH4.js → brace-fold.es-WYquVZ0Q.js} +1 -1
  61. package/dist/assets/{chain-DJhIX7OW.js → chain-DKfcWWlC.js} +1 -1
  62. package/dist/assets/{click-to-copy-CYaDSQoy.js → click-to-copy-CiS9u8Lz.js} +1 -1
  63. package/dist/assets/cloneDeep-fDhnQcTQ.js +1 -0
  64. package/dist/assets/{closebrackets.es-DvIy3kAL.js → closebrackets.es-BTFbO_zS.js} +1 -1
  65. package/dist/assets/{codemirror.es-BtJVhvPq.js → codemirror.es-bTfvwT0x.js} +1 -1
  66. package/dist/assets/{collapse-BhbkfN99.js → collapse-De1M4hZU.js} +1 -1
  67. package/dist/assets/{comment.es-BWJma_ss.js → comment.es-CfIJpCF-.js} +1 -1
  68. package/dist/assets/{config-navigation-DfmuKS6F.js → config-navigation-NKWvqO8O.js} +3 -3
  69. package/dist/assets/{connect-to-CorUs381.js → connect-to-B4CwZqBJ.js} +1 -1
  70. package/dist/assets/de-BmXl3Jnb.js +7 -0
  71. package/dist/assets/{delete-confirm-D2071wW2.js → delete-confirm-Ca6B5KxO.js} +1 -1
  72. package/dist/assets/{detail-BgptcQe2.js → detail-B0kwpZJg.js} +3 -3
  73. package/dist/assets/{dialog.es-DNRuZxpL.js → dialog.es-b4YsH3yO.js} +1 -1
  74. package/dist/assets/{domains-Dw6WVrfK.js → domains-DfM0llnu.js} +1 -1
  75. package/dist/assets/{download-mU0RETFZ.js → download-D2RXPhXc.js} +1 -1
  76. package/dist/assets/emotion-react.browser.esm-CyqIkV2y.js +1 -0
  77. package/dist/assets/es-C0fHeuzj.js +9 -0
  78. package/dist/assets/{foldgutter.es-BfaddajE.js → foldgutter.es-Bmzc1lAn.js} +1 -1
  79. package/dist/assets/fr-CO0NFjy0.js +7 -0
  80. package/dist/assets/{get-safe-url-COP_ZxQz.js → get-safe-url-Dsy-huUv.js} +1 -1
  81. package/dist/assets/{get-safe-url-DS1bGOO2.js → get-safe-url-DuYpuHQJ.js} +1 -1
  82. package/dist/assets/getValidReactChildren-BhCPp8PX.js +1 -0
  83. package/dist/assets/hi-Cms3dwY-.js +5 -0
  84. package/dist/assets/{hint.es-DhVyUt1d.js → hint.es-D3enHBIe.js} +1 -1
  85. package/dist/assets/{hint.es2-uDqXrloM.js → hint.es2-D_8pEhNZ.js} +1 -1
  86. package/dist/assets/id-Bo8dj7EE.js +7 -0
  87. package/dist/assets/{iframe-D-LcA3MK.js → iframe-JzwQis4I.js} +1 -1
  88. package/dist/assets/{index-CdU6oLkY.js → index--aogETCe.js} +1 -1
  89. package/dist/assets/{index-DOsDgrew.js → index-1fDaH0GR.js} +3 -3
  90. package/dist/assets/{index-oBJqRsld.js → index-8TfE60DJ.js} +1 -1
  91. package/dist/assets/{index-qfTOhIhQ.js → index-B8Ac-C82.js} +1 -1
  92. package/dist/assets/{index-C0dOEsU4.js → index-BOaWHm3y.js} +1 -1
  93. package/dist/assets/{index-B0UMNJnN.js → index-BR_N19sK.js} +1 -1
  94. package/dist/assets/{index-BhAPLn1b.js → index-BVHtC5Hk.js} +1 -1
  95. package/dist/assets/{index-DbTX57bM.js → index-BcLnPbZ_.js} +1 -1
  96. package/dist/assets/index-Bmgy-F8w.js +550 -0
  97. package/dist/assets/{index-CeNoqA4g.js → index-Bp85PVE7.js} +1 -1
  98. package/dist/assets/{index-DU-OQYbG.js → index-Br9fC4wn.js} +1 -1
  99. package/dist/assets/{index-B8IA5mbU.js → index-BsTEuRio.js} +6 -6
  100. package/dist/assets/{index-QU1qCf8F.js → index-Bv0UYgtN.js} +1 -1
  101. package/dist/assets/{index-B-SlNWYL.js → index-BwtBZueg.js} +1 -1
  102. package/dist/assets/{index-CZ5-hnEn.js → index-C-gpDEaK.js} +1 -1
  103. package/dist/assets/{index-BIgkt_q9.js → index-C-wwh49Y.js} +1 -1
  104. package/dist/assets/{index-BZMWcUCX.js → index-C40_ZUH_.js} +1 -1
  105. package/dist/assets/{index-Cb3Huyfb.js → index-CEkzM2Hy.js} +1 -1
  106. package/dist/assets/{index-DUIS5TWY.js → index-CEwaV1Oe.js} +1 -1
  107. package/dist/assets/{index-oc5ucOuy.js → index-CHr_TiKg.js} +1 -1
  108. package/dist/assets/{index-DVrUurys.js → index-CPkjKWDT.js} +1 -1
  109. package/dist/assets/{index-C9oR1oH6.js → index-CUf9smnR.js} +1 -1
  110. package/dist/assets/{index-czhxiIDF.js → index-CbpkZm_D.js} +1 -1
  111. package/dist/assets/{index-BcbNijWK.js → index-Ci6qo3N4.js} +1 -1
  112. package/dist/assets/{index-CCINW9gm.js → index-CuCDUbks.js} +3 -3
  113. package/dist/assets/{index-C9buY914.js → index-D651LXXD.js} +1 -1
  114. package/dist/assets/{index-CFkoE5Gw.js → index-DJfwuANq.js} +1 -1
  115. package/dist/assets/{index-C5ZlPR3p.js → index-DPPR0A8j.js} +5 -5
  116. package/dist/assets/{index-Cy666DOY.js → index-DdKwcnDa.js} +1 -1
  117. package/dist/assets/{index-P1DlwKGv.js → index-Diry1rOC.js} +1 -1
  118. package/dist/assets/{index-fHnSssqp.js → index-DmqHgbIB.js} +1 -1
  119. package/dist/assets/index-DqZUR6e0.js +120 -0
  120. package/dist/assets/index-DtQb3yWv.js +1 -0
  121. package/dist/assets/{index-rZ1SBrH_.js → index-DuyB74pI.js} +1 -1
  122. package/dist/assets/{index-zsz18EZU.js → index-Dy6Ndspk.js} +1 -1
  123. package/dist/assets/{index-4aFZazff.js → index-DzIW7WPn.js} +1 -1
  124. package/dist/assets/{index-BRvaeUvs.js → index-QAr8nKeC.js} +3 -3
  125. package/dist/assets/{index-BblGFvvF.js → index-Xeh4Hy1K.js} +1 -1
  126. package/dist/assets/{index-BJQjXoNM.js → index-YHRJ5Z9D.js} +1 -1
  127. package/dist/assets/{index-LcQ1y9fq.js → index-f3wryxsZ.js} +1 -1
  128. package/dist/assets/{index-5OOYkflw.js → index-hpqdONWL.js} +1 -1
  129. package/dist/assets/{index-CW7SH6ZA.js → index-mJjX2o0I.js} +1 -1
  130. package/dist/assets/{index-CHPEHw0Y.js → index-mWC0dxsG.js} +1 -1
  131. package/dist/assets/{index-BOH-YtOs.js → index-p0Tn5q9W.js} +1 -1
  132. package/dist/assets/{index-BkRO05--.js → index-pLwCyBIW.js} +1 -1
  133. package/dist/assets/{index-D6ARqm6f.js → index-qPfSbb8F.js} +1 -1
  134. package/dist/assets/{index-DNITJyFR.js → index-uhXfBcTY.js} +1 -1
  135. package/dist/assets/{index.esm-F8b32K2k.js → index.esm-BeKnx9US.js} +1 -1
  136. package/dist/assets/{info-addon.es-CPDzNYQ-.js → info-addon.es-DcDBZCZ9.js} +1 -1
  137. package/dist/assets/{info.es-B-z85utp.js → info.es-CMDl0oHG.js} +1 -1
  138. package/dist/assets/{install-from-url-BNqF6NV-.js → install-from-url-T6jdS-sd.js} +1 -1
  139. package/dist/assets/{invitation-qmFlHZV_.js → invitation-BQpAoUra.js} +1 -1
  140. package/dist/assets/is-path-prefix-equal-DAINokq6.js +1 -0
  141. package/dist/assets/{item-DuGkpxdL.js → item-zzpJhUAv.js} +1 -1
  142. package/dist/assets/ja-zaAhH8mE.js +9 -0
  143. package/dist/assets/{javascript.es-DwEw3iuE.js → javascript.es-rVaecCeY.js} +1 -1
  144. package/dist/assets/{jump-to-line.es-BaO-Qct6.js → jump-to-line.es-fZd9SPeK.js} +1 -1
  145. package/dist/assets/{jump.es-DEVhkMqg.js → jump.es-C2i0yVn0.js} +1 -1
  146. package/dist/assets/ko-CoZQ7a7T.js +9 -0
  147. package/dist/assets/{lint.es-DNf7-y3f.js → lint.es-T7Eyo8Ee.js} +1 -1
  148. package/dist/assets/{lint.es2-CkGacl6V.js → lint.es2-D9w-DqTv.js} +1 -1
  149. package/dist/assets/{lint.es3-ddr9rdgz.js → lint.es3-BR3fJTRU.js} +1 -1
  150. package/dist/assets/{list-header-DL9A5VcR.js → list-header-BHP30ooa.js} +1 -1
  151. package/dist/assets/{log-JH4lXNVE.js → log-BPS1ovHk.js} +1 -1
  152. package/dist/assets/{lottie-react.esm-Dr-WheMr.js → lottie-react.esm-BHwF6ttF.js} +1 -1
  153. package/dist/assets/{matchbrackets.es-XuVMbpLz.js → matchbrackets.es-B45wj5E9.js} +1 -1
  154. package/dist/assets/{memory-C_p3X92I.js → memory-CNHjW2ab.js} +1 -1
  155. package/dist/assets/{metric-CB_GPXBA.js → metric-BcRet1lX.js} +1 -1
  156. package/dist/assets/{mode.es-Dqrxjy1v.js → mode.es-BLJK3yl5.js} +1 -1
  157. package/dist/assets/{mode.es2-VNAXkQps.js → mode.es2-hlIytxg7.js} +1 -1
  158. package/dist/assets/{mode.es3-BN6h3Bus.js → mode.es3-CVTYL_Rp.js} +1 -1
  159. package/dist/assets/omit-Difyap46.js +1 -0
  160. package/dist/assets/{onlineParser.es-D4el_PBT.js → onlineParser.es-D7LXCAe9.js} +1 -1
  161. package/dist/assets/{overview-BXzzQmbs.js → overview-Dl1-aEub.js} +1 -1
  162. package/dist/assets/{permission-JEjDz9i9.js → permission-syQYMJDU.js} +1 -1
  163. package/dist/assets/{preference-QWJp9UJS.js → preference-Bjp0l-rP.js} +3 -3
  164. package/dist/assets/pt-D4wJ-rZD.js +5 -0
  165. package/dist/assets/{raf-schd.esm-D-4-98oh.js → raf-schd.esm-D4X3rkFT.js} +1 -1
  166. package/dist/assets/refType-Bi7lNIS6.js +1 -0
  167. package/dist/assets/{resource-dialog-BSxf3l0v.js → resource-dialog-Bj4Rm8z8.js} +4 -4
  168. package/dist/assets/ru-CmWrzb7M.js +5 -0
  169. package/dist/assets/{runtime-DFh8uNkc.js → runtime-DHGpU07w.js} +1 -1
  170. package/dist/assets/sdk--zV5g1Ng.js +1 -0
  171. package/dist/assets/{search.es-CvgIaw00.js → search.es-DEh8WYav.js} +1 -1
  172. package/dist/assets/{searchcursor.es-OCU4Stl-.js → searchcursor.es-BHK3Udfj.js} +1 -1
  173. package/dist/assets/{service-C2aUE-9d.js → service-BLsXGeBF.js} +1 -1
  174. package/dist/assets/{shorten-label-DEXH98Sk.js → shorten-label-rkbgI37z.js} +1 -1
  175. package/dist/assets/{show-hint.es-Ddp99Kzq.js → show-hint.es-TLn5XERt.js} +1 -1
  176. package/dist/assets/{simple-select-DtUilbs1.js → simple-select-CqR13Ja_.js} +1 -1
  177. package/dist/assets/{spaces-C01mORkW.js → spaces-DLzKX3Ra.js} +1 -1
  178. package/dist/assets/{status-DaQfjPiw.js → status-CtyoZCac.js} +1 -1
  179. package/dist/assets/{status-DwmHBBa8.js → status-CyZk73aw.js} +1 -1
  180. package/dist/assets/{sublime.es-D01aXBye.js → sublime.es-B7ROfjSt.js} +1 -1
  181. package/dist/assets/{switch-control-BUF_yGeD.js → switch-control-DRItWC8V.js} +1 -1
  182. package/dist/assets/{table-icons-C5qrNAvA.js → table-icons-CN1Rmj7L.js} +1 -1
  183. package/dist/assets/{team-BcbX_cMl.js → team-7oU1sdtL.js} +1 -1
  184. package/dist/assets/th-DkqBkRH_.js +5 -0
  185. package/dist/assets/{toLower-GSZ9DJJ3.js → toLower-BetQNSka.js} +1 -1
  186. package/dist/assets/toUpper-CnLEnHph.js +1 -0
  187. package/dist/assets/{traffic-CTPgH40k.js → traffic-BXrg_wx7.js} +1 -1
  188. package/dist/assets/{url-evaluation-DmRIkzYe.js → url-evaluation-PNUzVXFG.js} +1 -1
  189. package/dist/assets/{url-join-BSWLYThb.js → url-join-BT4uwgMW.js} +1 -1
  190. package/dist/assets/{use-mobile-DU80Jj4U.js → use-mobile-DaylDy56.js} +1 -1
  191. package/dist/assets/{use-mobile-DxY5BxAJ.js → use-mobile-zJMHEWPE.js} +1 -1
  192. package/dist/assets/{useAsync-Ct1xKput.js → useAsync-8QQYXZ2o.js} +1 -1
  193. package/dist/assets/{useAsyncRetry-Bis_hMS7.js → useAsyncRetry-CGk8Cu9u.js} +1 -1
  194. package/dist/assets/{useLocalStorage-CRy7LFYG.js → useLocalStorage-DdJoK4w7.js} +1 -1
  195. package/dist/assets/{useThemeProps-C3mE_-3Z.js → useThemeProps-Rte_NmVE.js} +1 -1
  196. package/dist/assets/{util-Ctz_J-u1.js → util-DlhHM2MK.js} +1 -1
  197. package/dist/assets/vi-D4Y0EZ10.js +5 -0
  198. package/dist/assets/{wait-container-Der-CqPb.js → wait-container-BPSvZhQ4.js} +1 -1
  199. package/dist/assets/{withStyles-DWhl0Lx-.js → withStyles-D2YScWal.js} +1 -1
  200. package/dist/assets/{without-wallet-Bmmbgqin.js → without-wallet-CXyXy2KB.js} +1 -1
  201. package/dist/assets/wrap-locale-kaXbWMUB.js +1 -0
  202. package/dist/assets/{zh-DJTjvgj8.js → zh-CXbCDXZ8.js} +1 -1
  203. package/dist/assets/zh-tw-DaTNZcVC.js +9 -0
  204. package/dist/index.html +1 -1
  205. package/dist/service-worker.js +1 -1
  206. package/package.json +1 -1
  207. package/dist/assets/api-CSrxJE-w.js +0 -1
  208. package/dist/assets/ar-DLXKKOGO.js +0 -7
  209. package/dist/assets/cloneDeep-C6XYSA9m.js +0 -1
  210. package/dist/assets/de-CnbmrteH.js +0 -7
  211. package/dist/assets/emotion-react.browser.esm-CSjORkdU.js +0 -1
  212. package/dist/assets/es-C7oXJBWv.js +0 -9
  213. package/dist/assets/fr-DzleTcLj.js +0 -7
  214. package/dist/assets/getValidReactChildren-CxwCdnNW.js +0 -1
  215. package/dist/assets/hi-B24wH0bs.js +0 -5
  216. package/dist/assets/id-BIjW1vW9.js +0 -7
  217. package/dist/assets/index-DCo8_mUx.js +0 -1
  218. package/dist/assets/index-DrxRISPM.js +0 -120
  219. package/dist/assets/index-Dyvb9fH4.js +0 -521
  220. package/dist/assets/is-path-prefix-equal-lgGkNkcR.js +0 -1
  221. package/dist/assets/ja-mu0bc5Fx.js +0 -9
  222. package/dist/assets/ko-CSWdQF8q.js +0 -9
  223. package/dist/assets/omit-Bc4_KMtF.js +0 -1
  224. package/dist/assets/pt-Odg8daEV.js +0 -5
  225. package/dist/assets/refType-Dqlqmha-.js +0 -1
  226. package/dist/assets/ru-OkiNIvy3.js +0 -5
  227. package/dist/assets/sdk-DtMj7H7_.js +0 -1
  228. package/dist/assets/th-esLoaeiE.js +0 -5
  229. package/dist/assets/toUpper-BPMwwnP-.js +0 -1
  230. package/dist/assets/vi-BF6u6-98.js +0 -5
  231. package/dist/assets/wrap-locale-rE7v3anU.js +0 -1
  232. package/dist/assets/zh-tw-B7cFexwg.js +0 -9
@@ -1 +1 @@
1
- import{a as ct}from"./codemirror.es-BtJVhvPq.js";import"./index-C5ZlPR3p.js";import"./index-B8IA5mbU.js";var lt=Object.defineProperty,p=(w,S)=>lt(w,"name",{value:S,configurable:!0});function tt(w,S){return S.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(y){if(y!=="default"&&!(y in w)){var b=Object.getOwnPropertyDescriptor(r,y);Object.defineProperty(w,y,b.get?b:{enumerable:!0,get:function(){return r[y]}})}})}),Object.freeze(w)}p(tt,"_mergeNamespaces");var et={exports:{}};(function(w,S){(function(r){r(ct.exports)})(function(r){var y="CodeMirror-hint",b="CodeMirror-hint-active";r.showHint=function(t,e,i){if(!e)return t.showHint(i);i&&i.async&&(e.async=!0);var n={hint:e};if(i)for(var s in i)n[s]=i[s];return t.showHint(n)},r.defineExtension("showHint",function(t){t=j(this,this.getCursor("start"),t);var e=this.listSelections();if(!(e.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<e.length;i++)if(e[i].head.line!=e[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var n=this.state.completionActive=new C(this,t);n.options.hint&&(r.signal(this,"startCompletion",this),n.update(!0))}}),r.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function C(t,e){if(this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var i=this;t.on("cursorActivity",this.activityFunc=function(){i.cursorActivity()})}}p(C,"Completion");var it=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},nt=window.cancelAnimationFrame||clearTimeout;C.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&r.signal(this.data,"close"),this.widget&&this.widget.close(),r.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,e){var i=t.list[e],n=this;this.cm.operation(function(){i.hint?i.hint(n.cm,t,i):n.cm.replaceRange(W(i),i.from||t.from,i.to||t.to,"complete"),r.signal(t,"pick",i),n.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(nt(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),i=this.cm.getLine(e.line);if(e.line!=this.startPos.line||i.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(i.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=it(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(t){if(this.tick!=null){var e=this,i=++this.tick;L(this.options.hint,this.cm,this.options,function(n){e.tick==i&&e.finishUpdate(n,t)})}},finishUpdate:function(t,e){this.data&&r.signal(this.data,"update");var i=this.widget&&this.widget.picked||e&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(i&&t.list.length==1?this.pick(t,0):(this.widget=new P(this,t),r.signal(t,"shown")))}};function j(t,e,i){var n=t.options.hintOptions,s={};for(var c in V)s[c]=V[c];if(n)for(var c in n)n[c]!==void 0&&(s[c]=n[c]);if(i)for(var c in i)i[c]!==void 0&&(s[c]=i[c]);return s.hint.resolve&&(s.hint=s.hint.resolve(t,e)),s}p(j,"parseOptions");function W(t){return typeof t=="string"?t:t.text}p(W,"getText");function D(t,e){var i={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(-e.menuSize()+1,!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close},n=/Mac/.test(navigator.platform);n&&(i["Ctrl-P"]=function(){e.moveFocus(-1)},i["Ctrl-N"]=function(){e.moveFocus(1)});var s=t.options.customKeys,c=s?{}:i;function o(h,l){var f;typeof l!="string"?f=p(function(H){return l(H,e)},"bound"):i.hasOwnProperty(l)?f=i[l]:f=l,c[h]=f}if(p(o,"addBinding"),s)for(var u in s)s.hasOwnProperty(u)&&o(u,s[u]);var a=t.options.extraKeys;if(a)for(var u in a)a.hasOwnProperty(u)&&o(u,a[u]);return c}p(D,"buildKeyMap");function _(t,e){for(;e&&e!=t;){if(e.nodeName.toUpperCase()==="LI"&&e.parentNode==t)return e;e=e.parentNode}}p(_,"getHintElement");function P(t,e){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=t,this.data=e,this.picked=!1;var i=this,n=t.cm,s=n.getInputField().ownerDocument,c=s.defaultView||s.parentWindow,o=this.hints=s.createElement("ul");o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.id=this.id;var u=t.cm.options.theme;o.className="CodeMirror-hints "+u,this.selectedHint=e.selectedHint||0;for(var a=e.list,h=0;h<a.length;++h){var l=o.appendChild(s.createElement("li")),f=a[h],H=y+(h!=this.selectedHint?"":" "+b);f.className!=null&&(H=f.className+" "+H),l.className=H,h==this.selectedHint&&l.setAttribute("aria-selected","true"),l.id=this.id+"-"+h,l.setAttribute("role","option"),f.render?f.render(l,e,f):l.appendChild(s.createTextNode(f.displayText||W(f))),l.hintId=h}var A=t.options.container||s.body,v=n.cursorCoords(t.options.alignWithWord?e.from:null),T=v.left,O=v.bottom,$=!0,k=0,F=0;if(A!==s.body){var st=["absolute","relative","fixed"].indexOf(c.getComputedStyle(A).position)!==-1,R=st?A:A.offsetParent,q=R.getBoundingClientRect(),Y=s.body.getBoundingClientRect();k=q.left-Y.left-R.scrollLeft,F=q.top-Y.top-R.scrollTop}o.style.left=T-k+"px",o.style.top=O-F+"px";var E=c.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),B=c.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);A.appendChild(o),n.getInputField().setAttribute("aria-autocomplete","list"),n.getInputField().setAttribute("aria-owns",this.id),n.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var m=t.options.moveOnOverlap?o.getBoundingClientRect():new DOMRect,X=t.options.paddingForScrollbar?o.scrollHeight>o.clientHeight+1:!1,x;setTimeout(function(){x=n.getScrollInfo()});var ot=m.bottom-B;if(ot>0){var K=m.bottom-m.top,rt=v.top-(v.bottom-m.top);if(rt-K>0)o.style.top=(O=v.top-K-F)+"px",$=!1;else if(K>B){o.style.height=B-5+"px",o.style.top=(O=v.bottom-m.top-F)+"px";var G=n.getCursor();e.from.ch!=G.ch&&(v=n.cursorCoords(G),o.style.left=(T=v.left-k)+"px",m=o.getBoundingClientRect())}}var N=m.right-E;if(X&&(N+=n.display.nativeBarWidth),N>0&&(m.right-m.left>E&&(o.style.width=E-5+"px",N-=m.right-m.left-E),o.style.left=(T=v.left-N-k)+"px"),X)for(var I=o.firstChild;I;I=I.nextSibling)I.style.paddingRight=n.display.nativeBarWidth+"px";if(n.addKeyMap(this.keyMap=D(t,{moveFocus:function(d,g){i.changeActive(i.selectedHint+d,g)},setFocus:function(d){i.changeActive(d)},menuSize:function(){return i.screenAmount()},length:a.length,close:function(){t.close()},pick:function(){i.pick()},data:e})),t.options.closeOnUnfocus){var J;n.on("blur",this.onBlur=function(){J=setTimeout(function(){t.close()},100)}),n.on("focus",this.onFocus=function(){clearTimeout(J)})}n.on("scroll",this.onScroll=function(){var d=n.getScrollInfo(),g=n.getWrapperElement().getBoundingClientRect();x||(x=n.getScrollInfo());var Z=O+x.top-d.top,U=Z-(c.pageYOffset||(s.documentElement||s.body).scrollTop);if($||(U+=o.offsetHeight),U<=g.top||U>=g.bottom)return t.close();o.style.top=Z+"px",o.style.left=T+x.left-d.left+"px"}),r.on(o,"dblclick",function(d){var g=_(o,d.target||d.srcElement);g&&g.hintId!=null&&(i.changeActive(g.hintId),i.pick())}),r.on(o,"click",function(d){var g=_(o,d.target||d.srcElement);g&&g.hintId!=null&&(i.changeActive(g.hintId),t.options.completeOnSingleClick&&i.pick())}),r.on(o,"mousedown",function(){setTimeout(function(){n.focus()},20)});var Q=this.getSelectedHintRange();return(Q.from!==0||Q.to!==0)&&this.scrollToActive(),r.signal(e,"select",a[this.selectedHint],o.childNodes[this.selectedHint]),!0}p(P,"Widget"),P.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm.getInputField();t.removeAttribute("aria-activedescendant"),t.removeAttribute("aria-owns");var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,e){if(t>=this.data.list.length?t=e?this.data.list.length-1:0:t<0&&(t=e?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+b,""),i.removeAttribute("aria-selected")),i=this.hints.childNodes[this.selectedHint=t],i.className+=" "+b,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),r.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var t=this.getSelectedHintRange(),e=this.hints.childNodes[t.from],i=this.hints.childNodes[t.to],n=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-n.offsetTop:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var t=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-t),to:Math.min(this.data.list.length-1,this.selectedHint+t)}}};function M(t,e){if(!t.somethingSelected())return e;for(var i=[],n=0;n<e.length;n++)e[n].supportsSelection&&i.push(e[n]);return i}p(M,"applicableHelpers");function L(t,e,i,n){if(t.async)t(e,n,i);else{var s=t(e,i);s&&s.then?s.then(n):n(s)}}p(L,"fetchHints");function z(t,e){var i=t.getHelpers(e,"hint"),n;if(i.length){var s=p(function(c,o,u){var a=M(c,i);function h(l){if(l==a.length)return o(null);L(a[l],c,u,function(f){f&&f.list.length>0?o(f):h(l+1)})}p(h,"run"),h(0)},"resolved");return s.async=!0,s.supportsSelection=!0,s}else return(n=t.getHelper(t.getCursor(),"hintWords"))?function(c){return r.hint.fromList(c,{words:n})}:r.hint.anyword?function(c,o){return r.hint.anyword(c,o)}:function(){}}p(z,"resolveAutoHints"),r.registerHelper("hint","auto",{resolve:z}),r.registerHelper("hint","fromList",function(t,e){var i=t.getCursor(),n=t.getTokenAt(i),s,c=r.Pos(i.line,n.start),o=i;n.start<i.ch&&/\w/.test(n.string.charAt(i.ch-n.start-1))?s=n.string.substr(0,i.ch-n.start):(s="",c=i);for(var u=[],a=0;a<e.words.length;a++){var h=e.words[a];h.slice(0,s.length)==s&&u.push(h)}if(u.length)return{list:u,from:c,to:o}}),r.commands.autocomplete=r.showHint;var V={hint:r.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};r.defineOption("hintOptions",null)})})();var at=et.exports,pt=Object.freeze(tt({__proto__:null,[Symbol.toStringTag]:"Module",default:at},[et.exports]));export{pt as s};
1
+ import{a as ct}from"./codemirror.es-bTfvwT0x.js";import"./index-DPPR0A8j.js";import"./index-BsTEuRio.js";var lt=Object.defineProperty,p=(w,S)=>lt(w,"name",{value:S,configurable:!0});function tt(w,S){return S.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(y){if(y!=="default"&&!(y in w)){var b=Object.getOwnPropertyDescriptor(r,y);Object.defineProperty(w,y,b.get?b:{enumerable:!0,get:function(){return r[y]}})}})}),Object.freeze(w)}p(tt,"_mergeNamespaces");var et={exports:{}};(function(w,S){(function(r){r(ct.exports)})(function(r){var y="CodeMirror-hint",b="CodeMirror-hint-active";r.showHint=function(t,e,i){if(!e)return t.showHint(i);i&&i.async&&(e.async=!0);var n={hint:e};if(i)for(var s in i)n[s]=i[s];return t.showHint(n)},r.defineExtension("showHint",function(t){t=j(this,this.getCursor("start"),t);var e=this.listSelections();if(!(e.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<e.length;i++)if(e[i].head.line!=e[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var n=this.state.completionActive=new C(this,t);n.options.hint&&(r.signal(this,"startCompletion",this),n.update(!0))}}),r.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function C(t,e){if(this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var i=this;t.on("cursorActivity",this.activityFunc=function(){i.cursorActivity()})}}p(C,"Completion");var it=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},nt=window.cancelAnimationFrame||clearTimeout;C.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&r.signal(this.data,"close"),this.widget&&this.widget.close(),r.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,e){var i=t.list[e],n=this;this.cm.operation(function(){i.hint?i.hint(n.cm,t,i):n.cm.replaceRange(W(i),i.from||t.from,i.to||t.to,"complete"),r.signal(t,"pick",i),n.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(nt(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),i=this.cm.getLine(e.line);if(e.line!=this.startPos.line||i.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(i.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=it(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(t){if(this.tick!=null){var e=this,i=++this.tick;L(this.options.hint,this.cm,this.options,function(n){e.tick==i&&e.finishUpdate(n,t)})}},finishUpdate:function(t,e){this.data&&r.signal(this.data,"update");var i=this.widget&&this.widget.picked||e&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(i&&t.list.length==1?this.pick(t,0):(this.widget=new P(this,t),r.signal(t,"shown")))}};function j(t,e,i){var n=t.options.hintOptions,s={};for(var c in V)s[c]=V[c];if(n)for(var c in n)n[c]!==void 0&&(s[c]=n[c]);if(i)for(var c in i)i[c]!==void 0&&(s[c]=i[c]);return s.hint.resolve&&(s.hint=s.hint.resolve(t,e)),s}p(j,"parseOptions");function W(t){return typeof t=="string"?t:t.text}p(W,"getText");function D(t,e){var i={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(-e.menuSize()+1,!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close},n=/Mac/.test(navigator.platform);n&&(i["Ctrl-P"]=function(){e.moveFocus(-1)},i["Ctrl-N"]=function(){e.moveFocus(1)});var s=t.options.customKeys,c=s?{}:i;function o(h,l){var f;typeof l!="string"?f=p(function(H){return l(H,e)},"bound"):i.hasOwnProperty(l)?f=i[l]:f=l,c[h]=f}if(p(o,"addBinding"),s)for(var u in s)s.hasOwnProperty(u)&&o(u,s[u]);var a=t.options.extraKeys;if(a)for(var u in a)a.hasOwnProperty(u)&&o(u,a[u]);return c}p(D,"buildKeyMap");function _(t,e){for(;e&&e!=t;){if(e.nodeName.toUpperCase()==="LI"&&e.parentNode==t)return e;e=e.parentNode}}p(_,"getHintElement");function P(t,e){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=t,this.data=e,this.picked=!1;var i=this,n=t.cm,s=n.getInputField().ownerDocument,c=s.defaultView||s.parentWindow,o=this.hints=s.createElement("ul");o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.id=this.id;var u=t.cm.options.theme;o.className="CodeMirror-hints "+u,this.selectedHint=e.selectedHint||0;for(var a=e.list,h=0;h<a.length;++h){var l=o.appendChild(s.createElement("li")),f=a[h],H=y+(h!=this.selectedHint?"":" "+b);f.className!=null&&(H=f.className+" "+H),l.className=H,h==this.selectedHint&&l.setAttribute("aria-selected","true"),l.id=this.id+"-"+h,l.setAttribute("role","option"),f.render?f.render(l,e,f):l.appendChild(s.createTextNode(f.displayText||W(f))),l.hintId=h}var A=t.options.container||s.body,v=n.cursorCoords(t.options.alignWithWord?e.from:null),T=v.left,O=v.bottom,$=!0,k=0,F=0;if(A!==s.body){var st=["absolute","relative","fixed"].indexOf(c.getComputedStyle(A).position)!==-1,R=st?A:A.offsetParent,q=R.getBoundingClientRect(),Y=s.body.getBoundingClientRect();k=q.left-Y.left-R.scrollLeft,F=q.top-Y.top-R.scrollTop}o.style.left=T-k+"px",o.style.top=O-F+"px";var E=c.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),B=c.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);A.appendChild(o),n.getInputField().setAttribute("aria-autocomplete","list"),n.getInputField().setAttribute("aria-owns",this.id),n.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var m=t.options.moveOnOverlap?o.getBoundingClientRect():new DOMRect,X=t.options.paddingForScrollbar?o.scrollHeight>o.clientHeight+1:!1,x;setTimeout(function(){x=n.getScrollInfo()});var ot=m.bottom-B;if(ot>0){var K=m.bottom-m.top,rt=v.top-(v.bottom-m.top);if(rt-K>0)o.style.top=(O=v.top-K-F)+"px",$=!1;else if(K>B){o.style.height=B-5+"px",o.style.top=(O=v.bottom-m.top-F)+"px";var G=n.getCursor();e.from.ch!=G.ch&&(v=n.cursorCoords(G),o.style.left=(T=v.left-k)+"px",m=o.getBoundingClientRect())}}var N=m.right-E;if(X&&(N+=n.display.nativeBarWidth),N>0&&(m.right-m.left>E&&(o.style.width=E-5+"px",N-=m.right-m.left-E),o.style.left=(T=v.left-N-k)+"px"),X)for(var I=o.firstChild;I;I=I.nextSibling)I.style.paddingRight=n.display.nativeBarWidth+"px";if(n.addKeyMap(this.keyMap=D(t,{moveFocus:function(d,g){i.changeActive(i.selectedHint+d,g)},setFocus:function(d){i.changeActive(d)},menuSize:function(){return i.screenAmount()},length:a.length,close:function(){t.close()},pick:function(){i.pick()},data:e})),t.options.closeOnUnfocus){var J;n.on("blur",this.onBlur=function(){J=setTimeout(function(){t.close()},100)}),n.on("focus",this.onFocus=function(){clearTimeout(J)})}n.on("scroll",this.onScroll=function(){var d=n.getScrollInfo(),g=n.getWrapperElement().getBoundingClientRect();x||(x=n.getScrollInfo());var Z=O+x.top-d.top,U=Z-(c.pageYOffset||(s.documentElement||s.body).scrollTop);if($||(U+=o.offsetHeight),U<=g.top||U>=g.bottom)return t.close();o.style.top=Z+"px",o.style.left=T+x.left-d.left+"px"}),r.on(o,"dblclick",function(d){var g=_(o,d.target||d.srcElement);g&&g.hintId!=null&&(i.changeActive(g.hintId),i.pick())}),r.on(o,"click",function(d){var g=_(o,d.target||d.srcElement);g&&g.hintId!=null&&(i.changeActive(g.hintId),t.options.completeOnSingleClick&&i.pick())}),r.on(o,"mousedown",function(){setTimeout(function(){n.focus()},20)});var Q=this.getSelectedHintRange();return(Q.from!==0||Q.to!==0)&&this.scrollToActive(),r.signal(e,"select",a[this.selectedHint],o.childNodes[this.selectedHint]),!0}p(P,"Widget"),P.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm.getInputField();t.removeAttribute("aria-activedescendant"),t.removeAttribute("aria-owns");var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,e){if(t>=this.data.list.length?t=e?this.data.list.length-1:0:t<0&&(t=e?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+b,""),i.removeAttribute("aria-selected")),i=this.hints.childNodes[this.selectedHint=t],i.className+=" "+b,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),r.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var t=this.getSelectedHintRange(),e=this.hints.childNodes[t.from],i=this.hints.childNodes[t.to],n=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-n.offsetTop:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var t=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-t),to:Math.min(this.data.list.length-1,this.selectedHint+t)}}};function M(t,e){if(!t.somethingSelected())return e;for(var i=[],n=0;n<e.length;n++)e[n].supportsSelection&&i.push(e[n]);return i}p(M,"applicableHelpers");function L(t,e,i,n){if(t.async)t(e,n,i);else{var s=t(e,i);s&&s.then?s.then(n):n(s)}}p(L,"fetchHints");function z(t,e){var i=t.getHelpers(e,"hint"),n;if(i.length){var s=p(function(c,o,u){var a=M(c,i);function h(l){if(l==a.length)return o(null);L(a[l],c,u,function(f){f&&f.list.length>0?o(f):h(l+1)})}p(h,"run"),h(0)},"resolved");return s.async=!0,s.supportsSelection=!0,s}else return(n=t.getHelper(t.getCursor(),"hintWords"))?function(c){return r.hint.fromList(c,{words:n})}:r.hint.anyword?function(c,o){return r.hint.anyword(c,o)}:function(){}}p(z,"resolveAutoHints"),r.registerHelper("hint","auto",{resolve:z}),r.registerHelper("hint","fromList",function(t,e){var i=t.getCursor(),n=t.getTokenAt(i),s,c=r.Pos(i.line,n.start),o=i;n.start<i.ch&&/\w/.test(n.string.charAt(i.ch-n.start-1))?s=n.string.substr(0,i.ch-n.start):(s="",c=i);for(var u=[],a=0;a<e.words.length;a++){var h=e.words[a];h.slice(0,s.length)==s&&u.push(h)}if(u.length)return{list:u,from:c,to:o}}),r.commands.autocomplete=r.showHint;var V={hint:r.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};r.defineOption("hintOptions",null)})})();var at=et.exports,pt=Object.freeze(tt({__proto__:null,[Symbol.toStringTag]:"Module",default:at},[et.exports]));export{pt as s};
@@ -1 +1 @@
1
- import{P as r,j as e,Q as I,S as w,U as V,fR as W,N as m,ej as z,k as x,V as d,ab as C,bn as L}from"./index-B8IA5mbU.js";function P({fullWidth:j=!1,multiple:a=!1,required:i=!1,label:u="",placeholer:b="",options:s=[],helperText:y="",error:g=!1,margin:p="",textDirection:v="row",size:f,...h}){const o=s.find(l=>l.value===h.value),S=o==null?void 0:o.title;return e.jsxs(I,{margin:p,fullWidth:j,error:g,children:[e.jsx(w,{size:f,children:`${u}${i?"*":""}`}),e.jsxs(V,{multiple:a,input:e.jsx(W,{defaultValue:S,sx:{flex:1},required:i,label:u,inputProps:{margin:p},size:f}),renderValue:l=>{if(a)return e.jsx(m,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:l.map(n=>{const c=s.find(T=>T.value===n);return c&&c.title&&e.jsx(z,{size:"small",label:c.title},n)})});const t=s.find(n=>n.value===l);return t&&t.title&&e.jsxs(m,{children:[e.jsx(x,{component:"span",children:t.title}),e.jsx(x,{marginLeft:1,component:"span",variant:"body2",color:"text.secondary",children:t.description})]})},...h,children:[e.jsx(d,{disabled:!0,children:e.jsx("em",{children:b})}),!i&&!a&&e.jsx(d,{value:"",children:"None"}),s.map(l=>l&&l.value&&e.jsxs(d,{sx:[{justifyContent:"center"},v==="column"?{flexDirection:"column",alignItems:"flex-start"}:{}],value:l.value,children:[e.jsx(C,{children:l.title}),l.description&&e.jsx(x,{variant:"body2",color:"text.secondary",sx:{maxWidth:"100%",whiteSpace:"normal"},children:l.description})]},l.value))]}),e.jsx(L,{children:y})]})}P.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{P as S};
1
+ import{P as r,j as e,Q as I,S as w,U as V,fR as W,N as m,ej as z,k as x,V as d,ab as C,bn as L}from"./index-BsTEuRio.js";function P({fullWidth:j=!1,multiple:a=!1,required:i=!1,label:u="",placeholer:b="",options:s=[],helperText:y="",error:g=!1,margin:p="",textDirection:v="row",size:f,...h}){const o=s.find(l=>l.value===h.value),S=o==null?void 0:o.title;return e.jsxs(I,{margin:p,fullWidth:j,error:g,children:[e.jsx(w,{size:f,children:`${u}${i?"*":""}`}),e.jsxs(V,{multiple:a,input:e.jsx(W,{defaultValue:S,sx:{flex:1},required:i,label:u,inputProps:{margin:p},size:f}),renderValue:l=>{if(a)return e.jsx(m,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:l.map(n=>{const c=s.find(T=>T.value===n);return c&&c.title&&e.jsx(z,{size:"small",label:c.title},n)})});const t=s.find(n=>n.value===l);return t&&t.title&&e.jsxs(m,{children:[e.jsx(x,{component:"span",children:t.title}),e.jsx(x,{marginLeft:1,component:"span",variant:"body2",color:"text.secondary",children:t.description})]})},...h,children:[e.jsx(d,{disabled:!0,children:e.jsx("em",{children:b})}),!i&&!a&&e.jsx(d,{value:"",children:"None"}),s.map(l=>l&&l.value&&e.jsxs(d,{sx:[{justifyContent:"center"},v==="column"?{flexDirection:"column",alignItems:"flex-start"}:{}],value:l.value,children:[e.jsx(C,{children:l.title}),l.description&&e.jsx(x,{variant:"body2",color:"text.secondary",sx:{maxWidth:"100%",whiteSpace:"normal"},children:l.description})]},l.value))]}),e.jsx(L,{children:y})]})}P.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{P as S};
@@ -1 +1 @@
1
- import{b as d,be as i,x as c,ff as f,fL as m,y as h}from"./index-B8IA5mbU.js";import{a as n}from"./api-CSrxJE-w.js";function U(t){const a=t.replace(/\/api\/space\/.+/,""),e=t.replace(/\/$/,"").split("/"),r=e.at(-4),s=e.at(-2);return c(a,"space",r,"apps",s,`explorer?key=/apps/${s}/.did-objects/${s}/`)}function C(t){const a=t.replace(/\/api\/space\/.+/,""),r=t.replace(/\/$/,"").split("/").at(-4);return c(a,"space",r)}function y(t){return t.replace(/\/$/,"").split("/").at(-4)}async function L(t){try{if(!i(t))return!1;const{headers:a}=await n.head(t,{timeout:5e3});return a["x-listable"]==="true"&&a["x-readable"]==="true"&&a["x-writeable"]==="true"}catch(a){return console.error(a),!1}}function _(t){var a;return((a=t==null?void 0:t.find(e=>e.key===d.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT))==null?void 0:a.value)||""}function w(t){return t==null?void 0:t.replace(/\/api\/space\/.+/,"")}function E(t){const a=new URL(t);return c(a.origin,a.pathname)}async function A(t){try{if(!i(t))return!1;const a=E(t),e=c(a,"space/api/did/one-click-authorization/token"),{status:r,data:s}=await n.get(e,{timeout:5e3});return r===200&&f(s)}catch(a){return console.error(a),!1}}async function g(t,{timeout:a}={timeout:3e3}){try{if(!i(t))return"";const{headers:e}=await n.head(t,{timeout:a}),r=e["x-space-name"];return r?decodeURIComponent(r):""}catch(e){return console.error(e),""}}const x=t=>{var a,e;return((e=(a=t==null?void 0:t.configs)==null?void 0:a.find(r=>r.key===d.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT))==null?void 0:e.value)||null};async function B(t){const a={};return a.did=y(t),a.name=await g(t),a.url=w(t),a.endpoint=t,a}async function I(t,a={timeout:3e4,withSearchParams:!0}){var u;if(!m(t))throw new Error(`url(${t}) must be a string`);const e=t.startsWith("http")?t:`https://${t}`,r=new URL(e),{data:s}=await n.get(c(r.origin,"/__blocklet__.js?type=json"),{timeout:a.timeout}),o=(u=s.componentMountPoints.findLast(l=>l.did==="z8iZnaYxnkMD5AKRjTKiCb8pQr1ut8UantAcf"))==null?void 0:u.mountPoint;if(!o)throw new Error(`MountPoint(${o}) not found`);const p=c(r.origin,o);return a.withSearchParams&&r.searchParams.get("spaceDid")?h(p,{spaceDid:r.searchParams.get("spaceDid")}):p}export{_ as a,x as b,B as c,g as d,y as e,C as f,I as g,U as h,A as i,L as j};
1
+ import{b as d,be as i,x as c,ff as f,fL as m,y as h}from"./index-BsTEuRio.js";import{a as n}from"./api-D8CXYVbD.js";function U(t){const a=t.replace(/\/api\/space\/.+/,""),e=t.replace(/\/$/,"").split("/"),r=e.at(-4),s=e.at(-2);return c(a,"space",r,"apps",s,`explorer?key=/apps/${s}/.did-objects/${s}/`)}function C(t){const a=t.replace(/\/api\/space\/.+/,""),r=t.replace(/\/$/,"").split("/").at(-4);return c(a,"space",r)}function y(t){return t.replace(/\/$/,"").split("/").at(-4)}async function L(t){try{if(!i(t))return!1;const{headers:a}=await n.head(t,{timeout:5e3});return a["x-listable"]==="true"&&a["x-readable"]==="true"&&a["x-writeable"]==="true"}catch(a){return console.error(a),!1}}function _(t){var a;return((a=t==null?void 0:t.find(e=>e.key===d.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT))==null?void 0:a.value)||""}function w(t){return t==null?void 0:t.replace(/\/api\/space\/.+/,"")}function E(t){const a=new URL(t);return c(a.origin,a.pathname)}async function A(t){try{if(!i(t))return!1;const a=E(t),e=c(a,"space/api/did/one-click-authorization/token"),{status:r,data:s}=await n.get(e,{timeout:5e3});return r===200&&f(s)}catch(a){return console.error(a),!1}}async function g(t,{timeout:a}={timeout:3e3}){try{if(!i(t))return"";const{headers:e}=await n.head(t,{timeout:a}),r=e["x-space-name"];return r?decodeURIComponent(r):""}catch(e){return console.error(e),""}}const x=t=>{var a,e;return((e=(a=t==null?void 0:t.configs)==null?void 0:a.find(r=>r.key===d.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT))==null?void 0:e.value)||null};async function B(t){const a={};return a.did=y(t),a.name=await g(t),a.url=w(t),a.endpoint=t,a}async function I(t,a={timeout:3e4,withSearchParams:!0}){var u;if(!m(t))throw new Error(`url(${t}) must be a string`);const e=t.startsWith("http")?t:`https://${t}`,r=new URL(e),{data:s}=await n.get(c(r.origin,"/__blocklet__.js?type=json"),{timeout:a.timeout}),o=(u=s.componentMountPoints.findLast(l=>l.did==="z8iZnaYxnkMD5AKRjTKiCb8pQr1ut8UantAcf"))==null?void 0:u.mountPoint;if(!o)throw new Error(`MountPoint(${o}) not found`);const p=c(r.origin,o);return a.withSearchParams&&r.searchParams.get("spaceDid")?h(p,{spaceDid:r.searchParams.get("spaceDid")}):p}export{_ as a,x as b,B as c,g as d,y as e,C as f,I as g,U as h,A as i,L as j};
@@ -1 +1 @@
1
- import{aQ as $,aR as b,j as f,d8 as g,hT as j,cG as l,gB as P,I as q,m as S,r as x,C as R,aC as m,P as y}from"./index-B8IA5mbU.js";import{u as k}from"./index-DCo8_mUx.js";import{d as V}from"./ErrorOutline-CLZmnhnI.js";import{r as D}from"./omit-Bc4_KMtF.js";const T={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"/>'},H=T;var c={},I=b;Object.defineProperty(c,"__esModule",{value:!0});var _=c.default=void 0,K=I($()),C=f;_=c.default=(0,K.default)((0,C.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"}),"GppGood");var d={},w=g&&g.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(d,"__esModule",{value:!0});d.signResponse=M;d.verifyResponse=z;var G=d.verifyVault=A;const E=w(D),h=w(j),p=P,u=q;function M(e,a){const t=(0,h.default)(e),s=a.sign(t);return{...e,$signature:s}}function z(e,a){return e.$signature?Promise.resolve(a.verify((0,h.default)((0,E.default)(e,"$signature")),e.$signature)):Promise.resolve(!1)}async function A(e,a,t=!1){if(!Array.isArray(e)||e.length===0){if(t)throw new Error("vaults list is empty");return""}for(let i=1;i<e.length;i++)if(e[i].at<=e[i-1].at){if(t)throw new Error("vaults are not in ascending order");return""}if(new Set(e.map(i=>i.did)).size!==e.length){if(t)throw new Error("vaults list has duplicate vaults");return""}for(let i=0;i<e.length;i++){const r=e[i];if(!(0,u.isFromPublicKey)(r.did,r.pk)){if(t)throw new Error(`vault did and pk mismatch: ${r.did}(${r.pk})`);return""}let n=l.from(`vault:${a}`);for(let o=0;o<=i;o++)n=l.concat([n,l.from(`:${e[o].did}`)]);if(!r.approverSig){if(t)throw new Error(`vault approve signature missing for ${r.did}`);return""}try{let o;if(i>0){const v=e[i-1];o=(0,p.fromPublicKey)(v.pk,(0,u.toTypeInfo)(v.did))}else{if(!r.approverPk||!r.approverDid||!(0,u.isFromPublicKey)(r.approverDid,r.approverPk)){if(t)throw new Error(`approver config missing for ${r.did}`);return""}o=(0,p.fromPublicKey)(r.approverPk,(0,u.toTypeInfo)(r.approverDid))}if(await o.verify(n,r.approverSig)===!1){if(t)throw new Error(`signature verify failed for ${r.did}`);return""}}catch(o){if(console.error(o),t)throw new Error(`vault approve verify failed: ${o.message}`);return""}if(!r.sig){if(t)throw new Error(`vault commit signature missing for ${r.did}`);return""}try{const o=(0,p.fromPublicKey)(r.pk,(0,u.toTypeInfo)(r.did));if(r.approverSig&&(n=l.concat([n,l.from(`:${r.approverSig}`)])),await o.verify(n,r.sig)===!1){if(t)throw new Error(`commit signature verify failed for ${r.did}`);return""}}catch(o){if(console.error(o),t)throw new Error(`vault commit verify failed: ${o.message}`);return""}}return e[e.length-1].did}function B({vaults:e,appPid:a}){const{t}=S(),[s,i]=k({verified:!1,verifying:!0,error:""});return x.useEffect(()=>{G(e,a,!0).then(r=>{i({verified:!!r,verifying:!1})}).catch(r=>{i({verified:!1,verifying:!1,error:r.message})})},[e,a,i]),s.verifying?f.jsx(R,{}):s.verified?f.jsx(m,{title:t("blocklet.config.vault.verified"),children:f.jsx(_,{fontSize:"small",color:"success"})}):f.jsx(m,{title:s.error,children:f.jsx(V,{color:"error"})})}B.propTypes={vaults:y.array.isRequired,appPid:y.string.isRequired};export{H as K,B as V};
1
+ import{aQ as $,aR as b,j as f,d8 as g,hT as j,cG as l,gB as P,I as q,m as S,r as x,C as R,aC as m,P as y}from"./index-BsTEuRio.js";import{u as k}from"./index-DtQb3yWv.js";import{d as V}from"./ErrorOutline-CR7yRjZc.js";import{r as D}from"./omit-Difyap46.js";const T={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"/>'},H=T;var c={},I=b;Object.defineProperty(c,"__esModule",{value:!0});var _=c.default=void 0,K=I($()),C=f;_=c.default=(0,K.default)((0,C.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"}),"GppGood");var d={},w=g&&g.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(d,"__esModule",{value:!0});d.signResponse=M;d.verifyResponse=z;var G=d.verifyVault=A;const E=w(D),h=w(j),p=P,u=q;function M(e,a){const t=(0,h.default)(e),s=a.sign(t);return{...e,$signature:s}}function z(e,a){return e.$signature?Promise.resolve(a.verify((0,h.default)((0,E.default)(e,"$signature")),e.$signature)):Promise.resolve(!1)}async function A(e,a,t=!1){if(!Array.isArray(e)||e.length===0){if(t)throw new Error("vaults list is empty");return""}for(let i=1;i<e.length;i++)if(e[i].at<=e[i-1].at){if(t)throw new Error("vaults are not in ascending order");return""}if(new Set(e.map(i=>i.did)).size!==e.length){if(t)throw new Error("vaults list has duplicate vaults");return""}for(let i=0;i<e.length;i++){const r=e[i];if(!(0,u.isFromPublicKey)(r.did,r.pk)){if(t)throw new Error(`vault did and pk mismatch: ${r.did}(${r.pk})`);return""}let n=l.from(`vault:${a}`);for(let o=0;o<=i;o++)n=l.concat([n,l.from(`:${e[o].did}`)]);if(!r.approverSig){if(t)throw new Error(`vault approve signature missing for ${r.did}`);return""}try{let o;if(i>0){const v=e[i-1];o=(0,p.fromPublicKey)(v.pk,(0,u.toTypeInfo)(v.did))}else{if(!r.approverPk||!r.approverDid||!(0,u.isFromPublicKey)(r.approverDid,r.approverPk)){if(t)throw new Error(`approver config missing for ${r.did}`);return""}o=(0,p.fromPublicKey)(r.approverPk,(0,u.toTypeInfo)(r.approverDid))}if(await o.verify(n,r.approverSig)===!1){if(t)throw new Error(`signature verify failed for ${r.did}`);return""}}catch(o){if(console.error(o),t)throw new Error(`vault approve verify failed: ${o.message}`);return""}if(!r.sig){if(t)throw new Error(`vault commit signature missing for ${r.did}`);return""}try{const o=(0,p.fromPublicKey)(r.pk,(0,u.toTypeInfo)(r.did));if(r.approverSig&&(n=l.concat([n,l.from(`:${r.approverSig}`)])),await o.verify(n,r.sig)===!1){if(t)throw new Error(`commit signature verify failed for ${r.did}`);return""}}catch(o){if(console.error(o),t)throw new Error(`vault commit verify failed: ${o.message}`);return""}}return e[e.length-1].did}function B({vaults:e,appPid:a}){const{t}=S(),[s,i]=k({verified:!1,verifying:!0,error:""});return x.useEffect(()=>{G(e,a,!0).then(r=>{i({verified:!!r,verifying:!1})}).catch(r=>{i({verified:!1,verifying:!1,error:r.message})})},[e,a,i]),s.verifying?f.jsx(R,{}):s.verified?f.jsx(m,{title:t("blocklet.config.vault.verified"),children:f.jsx(_,{fontSize:"small",color:"success"})}):f.jsx(m,{title:s.error,children:f.jsx(V,{color:"error"})})}B.propTypes={vaults:y.array.isRequired,appPid:y.string.isRequired};export{H as K,B as V};
@@ -1,4 +1,4 @@
1
- import{n as f,P as t,r as h,e as b,J as j,j as e,aC as u,N as c,C}from"./index-B8IA5mbU.js";import{W as v}from"./url-evaluation-DmRIkzYe.js";const y={success:"#3ab39d",error:"#D0021B"},w="10px",R=f.div`
1
+ import{n as f,P as t,r as h,e as b,J as j,j as e,aC as u,N as c,C}from"./index-BsTEuRio.js";import{W as v}from"./url-evaluation-PNUzVXFG.js";const y={success:"#3ab39d",error:"#D0021B"},w="10px",R=f.div`
2
2
  display: inline-block;
3
3
  min-width: ${o=>o.size||w};
4
4
  min-height: ${o=>o.size||w};
@@ -1,4 +1,4 @@
1
- import{a as z}from"./codemirror.es-BtJVhvPq.js";import{a as Y}from"./searchcursor.es-OCU4Stl-.js";import{a as $}from"./matchbrackets.es-XuVMbpLz.js";import"./index-C5ZlPR3p.js";import"./index-B8IA5mbU.js";var G=Object.defineProperty,v=(m,A)=>G(m,"name",{value:A,configurable:!0});function E(m,A){return A.forEach(function(h){h&&typeof h!="string"&&!Array.isArray(h)&&Object.keys(h).forEach(function(a){if(a!=="default"&&!(a in m)){var f=Object.getOwnPropertyDescriptor(h,a);Object.defineProperty(m,a,f.get?f:{enumerable:!0,get:function(){return h[a]}})}})}),Object.freeze(m)}v(E,"_mergeNamespaces");var H={exports:{}};(function(m,A){(function(h){h(z.exports,Y.exports,$.exports)})(function(h){var a=h.commands,f=h.Pos;function O(e,t,n){if(n<0&&t.ch==0)return e.clipPos(f(t.line-1));var r=e.getLine(t.line);if(n>0&&t.ch>=r.length)return e.clipPos(f(t.line+1,0));for(var l="start",i,o=t.ch,s=o,u=n<0?0:r.length,d=0;s!=u;s+=n,d++){var p=r.charAt(n<0?s-1:s),c=p!="_"&&h.isWordChar(p)?"w":"o";if(c=="w"&&p.toUpperCase()==p&&(c="W"),l=="start")c!="o"?(l="in",i=c):o=s+n;else if(l=="in"&&i!=c){if(i=="w"&&c=="W"&&n<0&&s--,i=="W"&&c=="w"&&n>0)if(s==o+1){i="w";continue}else s--;break}}return f(t.line,s)}v(O,"findPosSubword");function T(e,t){e.extendSelectionsBy(function(n){return e.display.shift||e.doc.extend||n.empty()?O(e.doc,n.head,t):t<0?n.from():n.to()})}v(T,"moveSubword"),a.goSubwordLeft=function(e){T(e,-1)},a.goSubwordRight=function(e){T(e,1)},a.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},a.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},a.splitSelectionByLine=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)for(var l=t[r].from(),i=t[r].to(),o=l.line;o<=i.line;++o)i.line>l.line&&o==i.line&&i.ch==0||n.push({anchor:o==l.line?l:f(o,0),head:o==i.line?i:f(o)});e.setSelections(n,0)},a.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},a.selectLine=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var l=t[r];n.push({anchor:f(l.from().line,0),head:f(l.to().line+1,0)})}e.setSelections(n)};function x(e,t){if(e.isReadOnly())return h.Pass;e.operation(function(){for(var n=e.listSelections().length,r=[],l=-1,i=0;i<n;i++){var o=e.listSelections()[i].head;if(!(o.line<=l)){var s=f(o.line+(t?0:1),0);e.replaceRange(`
1
+ import{a as z}from"./codemirror.es-bTfvwT0x.js";import{a as Y}from"./searchcursor.es-BHK3Udfj.js";import{a as $}from"./matchbrackets.es-B45wj5E9.js";import"./index-DPPR0A8j.js";import"./index-BsTEuRio.js";var G=Object.defineProperty,v=(m,A)=>G(m,"name",{value:A,configurable:!0});function E(m,A){return A.forEach(function(h){h&&typeof h!="string"&&!Array.isArray(h)&&Object.keys(h).forEach(function(a){if(a!=="default"&&!(a in m)){var f=Object.getOwnPropertyDescriptor(h,a);Object.defineProperty(m,a,f.get?f:{enumerable:!0,get:function(){return h[a]}})}})}),Object.freeze(m)}v(E,"_mergeNamespaces");var H={exports:{}};(function(m,A){(function(h){h(z.exports,Y.exports,$.exports)})(function(h){var a=h.commands,f=h.Pos;function O(e,t,n){if(n<0&&t.ch==0)return e.clipPos(f(t.line-1));var r=e.getLine(t.line);if(n>0&&t.ch>=r.length)return e.clipPos(f(t.line+1,0));for(var l="start",i,o=t.ch,s=o,u=n<0?0:r.length,d=0;s!=u;s+=n,d++){var p=r.charAt(n<0?s-1:s),c=p!="_"&&h.isWordChar(p)?"w":"o";if(c=="w"&&p.toUpperCase()==p&&(c="W"),l=="start")c!="o"?(l="in",i=c):o=s+n;else if(l=="in"&&i!=c){if(i=="w"&&c=="W"&&n<0&&s--,i=="W"&&c=="w"&&n>0)if(s==o+1){i="w";continue}else s--;break}}return f(t.line,s)}v(O,"findPosSubword");function T(e,t){e.extendSelectionsBy(function(n){return e.display.shift||e.doc.extend||n.empty()?O(e.doc,n.head,t):t<0?n.from():n.to()})}v(T,"moveSubword"),a.goSubwordLeft=function(e){T(e,-1)},a.goSubwordRight=function(e){T(e,1)},a.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},a.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},a.splitSelectionByLine=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)for(var l=t[r].from(),i=t[r].to(),o=l.line;o<=i.line;++o)i.line>l.line&&o==i.line&&i.ch==0||n.push({anchor:o==l.line?l:f(o,0),head:o==i.line?i:f(o)});e.setSelections(n,0)},a.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},a.selectLine=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var l=t[r];n.push({anchor:f(l.from().line,0),head:f(l.to().line+1,0)})}e.setSelections(n)};function x(e,t){if(e.isReadOnly())return h.Pass;e.operation(function(){for(var n=e.listSelections().length,r=[],l=-1,i=0;i<n;i++){var o=e.listSelections()[i].head;if(!(o.line<=l)){var s=f(o.line+(t?0:1),0);e.replaceRange(`
2
2
  `,s,null,"+insertLine"),e.indentLine(s.line,null,!0),r.push({head:s,anchor:s}),l=o.line+1}}e.setSelections(r)}),e.execCommand("indentAuto")}v(x,"insertLine"),a.insertLineAfter=function(e){return x(e,!1)},a.insertLineBefore=function(e){return x(e,!0)};function R(e,t){for(var n=t.ch,r=n,l=e.getLine(t.line);n&&h.isWordChar(l.charAt(n-1));)--n;for(;r<l.length&&h.isWordChar(l.charAt(r));)++r;return{from:f(t.line,n),to:f(t.line,r),word:l.slice(n,r)}}v(R,"wordAt"),a.selectNextOccurrence=function(e){var t=e.getCursor("from"),n=e.getCursor("to"),r=e.state.sublimeFindFullWord==e.doc.sel;if(h.cmpPos(t,n)==0){var l=R(e,t);if(!l.word)return;e.setSelection(l.from,l.to),r=!0}else{var i=e.getRange(t,n),o=r?new RegExp("\\b"+i+"\\b"):i,s=e.getSearchCursor(o,n),u=s.findNext();if(u||(s=e.getSearchCursor(o,f(e.firstLine(),0)),u=s.findNext()),!u||N(e.listSelections(),s.from(),s.to()))return;e.addSelection(s.from(),s.to())}r&&(e.state.sublimeFindFullWord=e.doc.sel)},a.skipAndSelectNextOccurrence=function(e){var t=e.getCursor("anchor"),n=e.getCursor("head");a.selectNextOccurrence(e),h.cmpPos(t,n)!=0&&e.doc.setSelections(e.doc.listSelections().filter(function(r){return r.anchor!=t||r.head!=n}))};function y(e,t){for(var n=e.listSelections(),r=[],l=0;l<n.length;l++){var i=n[l],o=e.findPosV(i.anchor,t,"line",i.anchor.goalColumn),s=e.findPosV(i.head,t,"line",i.head.goalColumn);o.goalColumn=i.anchor.goalColumn!=null?i.anchor.goalColumn:e.cursorCoords(i.anchor,"div").left,s.goalColumn=i.head.goalColumn!=null?i.head.goalColumn:e.cursorCoords(i.head,"div").left;var u={anchor:o,head:s};r.push(i),r.push(u)}e.setSelections(r)}v(y,"addCursorToSelection"),a.addCursorToPrevLine=function(e){y(e,-1)},a.addCursorToNextLine=function(e){y(e,1)};function N(e,t,n){for(var r=0;r<e.length;r++)if(h.cmpPos(e[r].from(),t)==0&&h.cmpPos(e[r].to(),n)==0)return!0;return!1}v(N,"isSelectedRange");var W="(){}[]";function K(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var l=t[r],i=l.head,o=e.scanForBracket(i,-1);if(!o)return!1;for(;;){var s=e.scanForBracket(i,1);if(!s)return!1;if(s.ch==W.charAt(W.indexOf(o.ch)+1)){var u=f(o.pos.line,o.pos.ch+1);if(h.cmpPos(u,l.from())==0&&h.cmpPos(s.pos,l.to())==0){if(o=e.scanForBracket(o.pos,-1),!o)return!1}else{n.push({anchor:u,head:s.pos});break}}i=f(s.pos.line,s.pos.ch+1)}}return e.setSelections(n),!0}v(K,"selectBetweenBrackets"),a.selectScope=function(e){K(e)||e.execCommand("selectAll")},a.selectBetweenBrackets=function(e){if(!K(e))return h.Pass};function P(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}v(P,"puncType"),a.goToBracket=function(e){e.extendSelectionsBy(function(t){var n=e.scanForBracket(t.head,1,P(e.getTokenTypeAt(t.head)));if(n&&h.cmpPos(n.pos,t.head)!=0)return n.pos;var r=e.scanForBracket(t.head,-1,P(e.getTokenTypeAt(f(t.head.line,t.head.ch+1))));return r&&f(r.pos.line,r.pos.ch+1)||t.head})},a.swapLineUp=function(e){if(e.isReadOnly())return h.Pass;for(var t=e.listSelections(),n=[],r=e.firstLine()-1,l=[],i=0;i<t.length;i++){var o=t[i],s=o.from().line-1,u=o.to().line;l.push({anchor:f(o.anchor.line-1,o.anchor.ch),head:f(o.head.line-1,o.head.ch)}),o.to().ch==0&&!o.empty()&&--u,s>r?n.push(s,u):n.length&&(n[n.length-1]=u),r=u}e.operation(function(){for(var d=0;d<n.length;d+=2){var p=n[d],c=n[d+1],b=e.getLine(p);e.replaceRange("",f(p,0),f(p+1,0),"+swapLine"),c>e.lastLine()?e.replaceRange(`
3
3
  `+b,f(e.lastLine()),null,"+swapLine"):e.replaceRange(b+`
4
4
  `,f(c,0),null,"+swapLine")}e.setSelections(l),e.scrollIntoView()})},a.swapLineDown=function(e){if(e.isReadOnly())return h.Pass;for(var t=e.listSelections(),n=[],r=e.lastLine()+1,l=t.length-1;l>=0;l--){var i=t[l],o=i.to().line+1,s=i.from().line;i.to().ch==0&&!i.empty()&&o--,o<r?n.push(o,s):n.length&&(n[n.length-1]=s),r=s}e.operation(function(){for(var u=n.length-2;u>=0;u-=2){var d=n[u],p=n[u+1],c=e.getLine(d);d==e.lastLine()?e.replaceRange("",f(d-1),f(d),"+swapLine"):e.replaceRange("",f(d,0),f(d+1,0),"+swapLine"),e.replaceRange(c+`
@@ -1,4 +1,4 @@
1
- import{n as s,j as n}from"./index-B8IA5mbU.js";import{S as e}from"./index-5OOYkflw.js";function a({labelProps:t,className:i,style:m,...o}){const r={...t,labelPlacement:(t==null?void 0:t.labelPlacement)||"start"};return n.jsx(c,{className:i,style:m,labelPlacement:t==null?void 0:t.labelPlacement,children:n.jsx(e,{labelProps:r,...o})})}a.propTypes=e.propTypes;a.defaultProps=e.defaultProps;const c=s.div`
1
+ import{n as s,j as n}from"./index-BsTEuRio.js";import{S as e}from"./index-hpqdONWL.js";function a({labelProps:t,className:i,style:m,...o}){const r={...t,labelPlacement:(t==null?void 0:t.labelPlacement)||"start"};return n.jsx(c,{className:i,style:m,labelPlacement:t==null?void 0:t.labelPlacement,children:n.jsx(e,{labelProps:r,...o})})}a.propTypes=e.propTypes;a.defaultProps=e.defaultProps;const c=s.div`
2
2
  max-width: ${({labelPlacement:t})=>t==="end"?"100%":"300px"};
3
3
  > label {
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- var ZC=Object.defineProperty;var JC=(e,t,n)=>t in e?ZC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var wo=(e,t,n)=>JC(e,typeof t!="symbol"?t+"":t,n);import{kT as ex,kU as tx,i8 as Ng,kV as we,kW as Ye,j as E,kX as zg,kY as Wg,kZ as nx,ar as Vg,n as Ou,r as w,k_ as xl,k$ as rx,e3 as Wt,i0 as wl,i5 as za,fd as Wa,d3 as Be,av as Ln,k9 as lt,a0 as Rt,aR as Te,bm as Iu,bi as Ze,d8 as qg,b$ as Se,bZ as L,dB as rr,cf as Ue,l0 as ox,gb as Vi,dh as $n,dz as Ta,g4 as ax,ka as ix,l1 as lx,hz as sx,kg as cx,l2 as ux,kb as dx,c1 as je,c0 as Ae,c5 as Le,iD as Ug,cj as zt,g5 as fx,dn as Gt,l3 as Sl,fs as Mf,dp as Yt,l4 as Hg,c3 as wr,l5 as px,dj as Va,g6 as mx,ch as Ef,ck as Au,di as Gg,ci as Pl,P as $f,dg as Of,d5 as hx,aQ as Tl,a1 as gx}from"./index-B8IA5mbU.js";import{s as io,f as Et,g as lo,h as so,r as Dl,a as kl,e as _u,b as Bu,c as Lu,d as Kg,i as cr,j as Ke,u as Re,l as Da,o as bx,w as qi,k as Yg,p as Tr,m as Xg,n as vx,q as qc}from"./raf-schd.esm-D-4-98oh.js";import{r as He,A as ju,B as Vt,C as Ui,D as Uc,t as We,E as Qg,F as Zg,j as Hc,m as yx,G as Hn,H as Cx,I as xx,J as Gc,K as Jg,L as wx,M as Sx,N as eb,O as Fu,P as If,Q as Px,R as Af,S as Tx,T as Dx,p as kx,e as _f,g as Rx,b as Ms,a as Bf,c as Mx,q as ui,o as $r,i as Ex,d as $x,k as di,l as Es,h as fi,s as $s,f as Os,x as Ox,z as Ix,n as Ax,u as _x,v as Bx,w as Lx,U as jx,y as Fx,V as Nx,W as zx}from"./index-B0UMNJnN.js";import{_ as ye,b as Lf,c as Wx,a as Vx,e as qx,f as Ux,d as Hx}from"./ViewColumn-BSxTQVZ-.js";import{C as Gx}from"./CSSTransition-Byi2ne4y.js";import{g as Kx,d as Yx}from"./index-Cy666DOY.js";import{d as Xx}from"./Add-BFsFN1Gy.js";import{d as Qx}from"./Delete-CiU1bEBu.js";import{d as jf}from"./Clear-CmPKgcDo.js";import{d as Zx}from"./Edit-BvogU5l2.js";import{d as Ff}from"./ChevronRight-CFfmouwT.js";import{d as Jx}from"./ChevronLeft-CDs40tmH.js";import{d as ew}from"./Search-DGRuo7t-.js";import{d as tw}from"./ArrowDropDown-CejcJzkX.js";var nw=36e5;function rw(e,t){He(2,arguments);var n=Vt(t);return ju(e,n*nw)}var ow=864e5;function aw(e,t){He(2,arguments);var n=Ui(e),r=Ui(t),o=n.getTime()-Uc(n),a=r.getTime()-Uc(r);return Math.round((o-a)/ow)}var iw=6e4;function lw(e,t){He(2,arguments);var n=Vt(t);return ju(e,n*iw)}function sw(e,t){He(2,arguments);var n=Vt(t);return ju(e,n*1e3)}function ha(e,t){He(2,arguments);var n=We(e),r=We(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function cw(e,t){He(2,arguments);var n=We(e),r=We(t);return n.getFullYear()-r.getFullYear()}function Nf(e,t){var n=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 n<0?-1:n>0?1:n}function tb(e,t){He(2,arguments);var n=We(e),r=We(t),o=Nf(n,r),a=Math.abs(aw(n,r));n.setDate(n.getDate()-o*a);var i=+(Nf(n,r)===-o),l=o*(a-i);return l===0?0:l}function Rl(e,t){return He(2,arguments),We(e).getTime()-We(t).getTime()}var zf={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},uw="trunc";function qa(e){return e?zf[e]:zf[uw]}function dw(e,t,n){He(2,arguments);var r=Rl(e,t)/Qg;return qa(void 0)(r)}function fw(e,t,n){He(2,arguments);var r=Rl(e,t)/Zg;return qa(void 0)(r)}function Kc(e){He(1,arguments);var t=We(e);return t.setHours(23,59,59,999),t}function pw(e){He(1,arguments);var t=We(e);return Kc(t).getTime()===Hc(t).getTime()}function nb(e,t){He(2,arguments);var n=We(e),r=We(t),o=ha(n,r),a=Math.abs(yx(n,r)),i;if(a<1)i=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);var l=ha(n,r)===-o;pw(We(e))&&a===1&&ha(e,r)===1&&(l=!1),i=o*(a-Number(l))}return i===0?0:i}function mw(e,t,n){He(2,arguments);var r=nb(e,t)/3;return qa(void 0)(r)}function hw(e,t,n){He(2,arguments);var r=Rl(e,t)/1e3;return qa(void 0)(r)}function gw(e,t,n){He(2,arguments);var r=tb(e,t)/7;return qa(void 0)(r)}function bw(e,t){He(2,arguments);var n=We(e),r=We(t),o=ha(n,r),a=Math.abs(cw(n,r));n.setFullYear(1584),r.setFullYear(1584);var i=ha(n,r)===-o,l=o*(a-Number(i));return l===0?0:l}function vw(e,t){var n;He(1,arguments);var r=e||{},o=We(r.start),a=We(r.end),i=a.getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var l=[],c=o;c.setHours(0,0,0,0);var s=Number((n=void 0)!==null&&n!==void 0?n:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number greater than 1");for(;c.getTime()<=i;)l.push(We(c)),c.setDate(c.getDate()+s),c.setHours(0,0,0,0);return l}function yw(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Cw(e,t){var n,r;He(1,arguments);var o=We(e);if(isNaN(o.getTime()))throw new RangeError("Invalid time value");var a=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),i=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(a!=="extended"&&a!=="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="",c="",s=a==="extended"?"-":"",u=a==="extended"?":":"";if(i!=="time"){var d=Hn(o.getDate(),2),f=Hn(o.getMonth()+1,2),m=Hn(o.getFullYear(),4);l="".concat(m).concat(s).concat(f).concat(s).concat(d)}if(i!=="date"){var v=o.getTimezoneOffset();if(v!==0){var h=Math.abs(v),x=Hn(Math.floor(h/60),2),g=Hn(h%60,2),b=v<0?"+":"-";c="".concat(b).concat(x,":").concat(g)}else c="Z";var p=Hn(o.getHours(),2),y=Hn(o.getMinutes(),2),D=Hn(o.getSeconds(),2),S=l===""?"":"T",P=[p,y,D].join(u);l="".concat(l).concat(S).concat(P).concat(c)}return l}function xw(e){He(1,arguments);var t=We(e),n=t.getDay();return n}function ww(e){He(1,arguments);var t=We(e),n=t.getHours();return n}function Sw(e){He(1,arguments);var t=We(e),n=t.getMinutes();return n}function Pw(e){He(1,arguments);var t=We(e),n=t.getSeconds();return n}function Tw(e,t){He(2,arguments);var n=We(e),r=We(t);return n.getTime()===r.getTime()}function Wf(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ex(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ var ZC=Object.defineProperty;var JC=(e,t,n)=>t in e?ZC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var wo=(e,t,n)=>JC(e,typeof t!="symbol"?t+"":t,n);import{kT as ex,kU as tx,i8 as Ng,kV as we,kW as Ye,j as E,kX as zg,kY as Wg,kZ as nx,ar as Vg,n as Ou,r as w,k_ as xl,k$ as rx,e3 as Wt,i0 as wl,i5 as za,fd as Wa,d3 as Be,av as Ln,k9 as lt,a0 as Rt,aR as Te,bm as Iu,bi as Ze,d8 as qg,b$ as Se,bZ as L,dB as rr,cf as Ue,l0 as ox,gb as Vi,dh as $n,dz as Ta,g4 as ax,ka as ix,l1 as lx,hz as sx,kg as cx,l2 as ux,kb as dx,c1 as je,c0 as Ae,c5 as Le,iD as Ug,cj as zt,g5 as fx,dn as Gt,l3 as Sl,fs as Mf,dp as Yt,l4 as Hg,c3 as wr,l5 as px,dj as Va,g6 as mx,ch as Ef,ck as Au,di as Gg,ci as Pl,P as $f,dg as Of,d5 as hx,aQ as Tl,a1 as gx}from"./index-BsTEuRio.js";import{s as io,f as Et,g as lo,h as so,r as Dl,a as kl,e as _u,b as Bu,c as Lu,d as Kg,i as cr,j as Ke,u as Re,l as Da,o as bx,w as qi,k as Yg,p as Tr,m as Xg,n as vx,q as qc}from"./raf-schd.esm-D4X3rkFT.js";import{r as He,A as ju,B as Vt,C as Ui,D as Uc,t as We,E as Qg,F as Zg,j as Hc,m as yx,G as Hn,H as Cx,I as xx,J as Gc,K as Jg,L as wx,M as Sx,N as eb,O as Fu,P as If,Q as Px,R as Af,S as Tx,T as Dx,p as kx,e as _f,g as Rx,b as Ms,a as Bf,c as Mx,q as ui,o as $r,i as Ex,d as $x,k as di,l as Es,h as fi,s as $s,f as Os,x as Ox,z as Ix,n as Ax,u as _x,v as Bx,w as Lx,U as jx,y as Fx,V as Nx,W as zx}from"./index-BR_N19sK.js";import{_ as ye,b as Lf,c as Wx,a as Vx,e as qx,f as Ux,d as Hx}from"./ViewColumn-DVO6c2uh.js";import{C as Gx}from"./CSSTransition-Cz8SmnJv.js";import{g as Kx,d as Yx}from"./index-DdKwcnDa.js";import{d as Xx}from"./Add-ClzfE4cH.js";import{d as Qx}from"./Delete-CcdfJXTL.js";import{d as jf}from"./Clear-C1AC1AtD.js";import{d as Zx}from"./Edit-CJQK4atN.js";import{d as Ff}from"./ChevronRight-DRPUyxAK.js";import{d as Jx}from"./ChevronLeft-BNmKlc1J.js";import{d as ew}from"./Search-DmfQzntI.js";import{d as tw}from"./ArrowDropDown-CJ2MJgn5.js";var nw=36e5;function rw(e,t){He(2,arguments);var n=Vt(t);return ju(e,n*nw)}var ow=864e5;function aw(e,t){He(2,arguments);var n=Ui(e),r=Ui(t),o=n.getTime()-Uc(n),a=r.getTime()-Uc(r);return Math.round((o-a)/ow)}var iw=6e4;function lw(e,t){He(2,arguments);var n=Vt(t);return ju(e,n*iw)}function sw(e,t){He(2,arguments);var n=Vt(t);return ju(e,n*1e3)}function ha(e,t){He(2,arguments);var n=We(e),r=We(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function cw(e,t){He(2,arguments);var n=We(e),r=We(t);return n.getFullYear()-r.getFullYear()}function Nf(e,t){var n=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 n<0?-1:n>0?1:n}function tb(e,t){He(2,arguments);var n=We(e),r=We(t),o=Nf(n,r),a=Math.abs(aw(n,r));n.setDate(n.getDate()-o*a);var i=+(Nf(n,r)===-o),l=o*(a-i);return l===0?0:l}function Rl(e,t){return He(2,arguments),We(e).getTime()-We(t).getTime()}var zf={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},uw="trunc";function qa(e){return e?zf[e]:zf[uw]}function dw(e,t,n){He(2,arguments);var r=Rl(e,t)/Qg;return qa(void 0)(r)}function fw(e,t,n){He(2,arguments);var r=Rl(e,t)/Zg;return qa(void 0)(r)}function Kc(e){He(1,arguments);var t=We(e);return t.setHours(23,59,59,999),t}function pw(e){He(1,arguments);var t=We(e);return Kc(t).getTime()===Hc(t).getTime()}function nb(e,t){He(2,arguments);var n=We(e),r=We(t),o=ha(n,r),a=Math.abs(yx(n,r)),i;if(a<1)i=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);var l=ha(n,r)===-o;pw(We(e))&&a===1&&ha(e,r)===1&&(l=!1),i=o*(a-Number(l))}return i===0?0:i}function mw(e,t,n){He(2,arguments);var r=nb(e,t)/3;return qa(void 0)(r)}function hw(e,t,n){He(2,arguments);var r=Rl(e,t)/1e3;return qa(void 0)(r)}function gw(e,t,n){He(2,arguments);var r=tb(e,t)/7;return qa(void 0)(r)}function bw(e,t){He(2,arguments);var n=We(e),r=We(t),o=ha(n,r),a=Math.abs(cw(n,r));n.setFullYear(1584),r.setFullYear(1584);var i=ha(n,r)===-o,l=o*(a-Number(i));return l===0?0:l}function vw(e,t){var n;He(1,arguments);var r=e||{},o=We(r.start),a=We(r.end),i=a.getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var l=[],c=o;c.setHours(0,0,0,0);var s=Number((n=void 0)!==null&&n!==void 0?n:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number greater than 1");for(;c.getTime()<=i;)l.push(We(c)),c.setDate(c.getDate()+s),c.setHours(0,0,0,0);return l}function yw(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Cw(e,t){var n,r;He(1,arguments);var o=We(e);if(isNaN(o.getTime()))throw new RangeError("Invalid time value");var a=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),i=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(a!=="extended"&&a!=="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="",c="",s=a==="extended"?"-":"",u=a==="extended"?":":"";if(i!=="time"){var d=Hn(o.getDate(),2),f=Hn(o.getMonth()+1,2),m=Hn(o.getFullYear(),4);l="".concat(m).concat(s).concat(f).concat(s).concat(d)}if(i!=="date"){var v=o.getTimezoneOffset();if(v!==0){var h=Math.abs(v),x=Hn(Math.floor(h/60),2),g=Hn(h%60,2),b=v<0?"+":"-";c="".concat(b).concat(x,":").concat(g)}else c="Z";var p=Hn(o.getHours(),2),y=Hn(o.getMinutes(),2),D=Hn(o.getSeconds(),2),S=l===""?"":"T",P=[p,y,D].join(u);l="".concat(l).concat(S).concat(P).concat(c)}return l}function xw(e){He(1,arguments);var t=We(e),n=t.getDay();return n}function ww(e){He(1,arguments);var t=We(e),n=t.getHours();return n}function Sw(e){He(1,arguments);var t=We(e),n=t.getMinutes();return n}function Pw(e){He(1,arguments);var t=We(e),n=t.getSeconds();return n}function Tw(e,t){He(2,arguments);var n=We(e),r=We(t);return n.getTime()===r.getTime()}function Wf(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ex(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:o}}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 a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var s=n.next();return i=s.done,s},e:function(s){l=!0,a=s},f:function(){try{i||n.return==null||n.return()}finally{if(l)throw a}}}}function Je(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tx(e,t)}function Hi(e){return Hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hi(e)}function rb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rb=function(){return!!e})()}function Dw(e,t){if(t&&(Ng(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return we(e)}function et(e){var t=rb();return function(){var n,r=Hi(e);if(t){var o=Hi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Dw(this,n)}}function Xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var kw=10,ob=function(){function e(){Xe(this,e),ye(this,"priority",void 0),ye(this,"subPriority",0)}return Ye(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),Rw=function(e){Je(n,e);var t=et(n);function n(r,o,a,i,l){var c;return Xe(this,n),c=t.call(this),c.value=r,c.validateValue=o,c.setValue=a,c.priority=i,l&&(c.subPriority=l),c}return Ye(n,[{key:"validate",value:function(o,a){return this.validateValue(o,this.value,a)}},{key:"set",value:function(o,a,i){return this.setValue(o,a,this.value,i)}}]),n}(ob),Mw=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",kw),ye(we(r),"subPriority",-1),r}return Ye(n,[{key:"set",value:function(o,a){if(a.timestampIsSet)return o;var i=new Date(0);return i.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),i.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),i}}]),n}(ob),tt=function(){function e(){Xe(this,e),ye(this,"incompatibleTokens",void 0),ye(this,"priority",void 0),ye(this,"subPriority",void 0)}return Ye(e,[{key:"run",value:function(n,r,o,a){var i=this.parse(n,r,o,a);return i?{setter:new Rw(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(n,r,o){return!0}}]),e}(),Ew=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",140),ye(we(r),"incompatibleTokens",["R","u","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"})||i.era(o,{width:"narrow"});case"GGGGG":return i.era(o,{width:"narrow"});case"GGGG":default:return i.era(o,{width:"wide"})||i.era(o,{width:"abbreviated"})||i.era(o,{width:"narrow"})}}},{key:"set",value:function(o,a,i){return a.era=i,o.setUTCFullYear(i,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(tt),wt={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}/},Rn={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 St(e,t){return e&&{value:t(e.value),rest:e.rest}}function pt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Mn(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*Qg+a*Zg+i*Cx),rest:t.slice(n[0].length)}}function ab(e){return pt(wt.anyDigitsSigned,e)}function xt(e,t){switch(e){case 1:return pt(wt.singleDigit,t);case 2:return pt(wt.twoDigits,t);case 3:return pt(wt.threeDigits,t);case 4:return pt(wt.fourDigits,t);default:return pt(new RegExp("^\\d{1,"+e+"}"),t)}}function Gi(e,t){switch(e){case 1:return pt(wt.singleDigitSigned,t);case 2:return pt(wt.twoDigitsSigned,t);case 3:return pt(wt.threeDigitsSigned,t);case 4:return pt(wt.fourDigitsSigned,t);default:return pt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Nu(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 ib(e,t){var n=t>0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var a=r+50,i=Math.floor(a/100)*100,l=e>=a%100;o=e+i-(l?100:0)}return n?o:1-o}function lb(e){return e%400===0||e%4===0&&e%100!==0}var $w=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",130),ye(we(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){var l=function(s){return{year:s,isTwoDigitYear:a==="yy"}};switch(a){case"y":return St(xt(4,o),l);case"yo":return St(i.ordinalNumber(o,{unit:"year"}),l);default:return St(xt(a.length,o),l)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,i){var l=o.getUTCFullYear();if(i.isTwoDigitYear){var c=ib(i.year,l);return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}var s=!("era"in a)||a.era===1?i.year:1-i.year;return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(tt),Ow=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",130),ye(we(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){var l=function(s){return{year:s,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return St(xt(4,o),l);case"Yo":return St(i.ordinalNumber(o,{unit:"year"}),l);default:return St(xt(a.length,o),l)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,i,l){var c=xx(o,l);if(i.isTwoDigitYear){var s=ib(i.year,c);return o.setUTCFullYear(s,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Gc(o,l)}var u=!("era"in a)||a.era===1?i.year:1-i.year;return o.setUTCFullYear(u,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Gc(o,l)}}]),n}(tt),Iw=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",130),ye(we(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a){return Gi(a==="R"?4:a.length,o)}},{key:"set",value:function(o,a,i){var l=new Date(0);return l.setUTCFullYear(i,0,4),l.setUTCHours(0,0,0,0),Jg(l)}}]),n}(tt),Aw=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",130),ye(we(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a){return Gi(a==="u"?4:a.length,o)}},{key:"set",value:function(o,a,i){return o.setUTCFullYear(i,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(tt),_w=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",120),ye(we(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"Q":case"QQ":return xt(a.length,o);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"})||i.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(o,{width:"wide",context:"formatting"})||i.quarter(o,{width:"abbreviated",context:"formatting"})||i.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,i){return o.setUTCMonth((i-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(tt),Bw=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",120),ye(we(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"q":case"qq":return xt(a.length,o);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"})||i.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(o,{width:"wide",context:"standalone"})||i.quarter(o,{width:"abbreviated",context:"standalone"})||i.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,i){return o.setUTCMonth((i-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(tt),Lw=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),ye(we(r),"priority",110),r}return Ye(n,[{key:"parse",value:function(o,a,i){var l=function(s){return s-1};switch(a){case"M":return St(pt(wt.month,o),l);case"MM":return St(xt(2,o),l);case"Mo":return St(i.ordinalNumber(o,{unit:"month"}),l);case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"})||i.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(o,{width:"wide",context:"formatting"})||i.month(o,{width:"abbreviated",context:"formatting"})||i.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,i){return o.setUTCMonth(i,1),o.setUTCHours(0,0,0,0),o}}]),n}(tt),jw=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",110),ye(we(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){var l=function(s){return s-1};switch(a){case"L":return St(pt(wt.month,o),l);case"LL":return St(xt(2,o),l);case"Lo":return St(i.ordinalNumber(o,{unit:"month"}),l);case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"})||i.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(o,{width:"wide",context:"standalone"})||i.month(o,{width:"abbreviated",context:"standalone"})||i.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,i){return o.setUTCMonth(i,1),o.setUTCHours(0,0,0,0),o}}]),n}(tt);function Fw(e,t,n){He(2,arguments);var r=We(e),o=Vt(t),a=wx(r,n)-o;return r.setUTCDate(r.getUTCDate()-a*7),r}var Nw=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",100),ye(we(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"w":return pt(wt.week,o);case"wo":return i.ordinalNumber(o,{unit:"week"});default:return xt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,i,l){return Gc(Fw(o,i,l),l)}}]),n}(tt);function zw(e,t){He(2,arguments);var n=We(e),r=Vt(t),o=Sx(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}var Ww=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",100),ye(we(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"I":return pt(wt.week,o);case"Io":return i.ordinalNumber(o,{unit:"week"});default:return xt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,i){return Jg(zw(o,i))}}]),n}(tt),Vw=[31,28,31,30,31,30,31,31,30,31,30,31],qw=[31,29,31,30,31,30,31,31,30,31,30,31],Uw=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",90),ye(we(r),"subPriority",1),ye(we(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"d":return pt(wt.date,o);case"do":return i.ordinalNumber(o,{unit:"date"});default:return xt(a.length,o)}}},{key:"validate",value:function(o,a){var i=o.getUTCFullYear(),l=lb(i),c=o.getUTCMonth();return l?a>=1&&a<=qw[c]:a>=1&&a<=Vw[c]}},{key:"set",value:function(o,a,i){return o.setUTCDate(i),o.setUTCHours(0,0,0,0),o}}]),n}(tt),Hw=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",90),ye(we(r),"subpriority",1),ye(we(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"D":case"DD":return pt(wt.dayOfYear,o);case"Do":return i.ordinalNumber(o,{unit:"date"});default:return xt(a.length,o)}}},{key:"validate",value:function(o,a){var i=o.getUTCFullYear(),l=lb(i);return l?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(o,a,i){return o.setUTCMonth(0,i),o.setUTCHours(0,0,0,0),o}}]),n}(tt);function zu(e,t,n){var r,o,a,i,l,c,s,u;He(2,arguments);var d=eb(),f=Vt((r=(o=(a=(i=n==null?void 0:n.weekStartsOn)!==null&&i!==void 0?i:n==null||(l=n.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&a!==void 0?a:d.weekStartsOn)!==null&&o!==void 0?o:(s=d.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=We(e),v=Vt(t),h=m.getUTCDay(),x=v%7,g=(x+7)%7,b=(g<f?7:0)+v-h;return m.setUTCDate(m.getUTCDate()+b),m}var Gw=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",90),ye(we(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(o,{width:"wide",context:"formatting"})||i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,i,l){return o=zu(o,i,l),o.setUTCHours(0,0,0,0),o}}]),n}(tt),Kw=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",90),ye(we(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i,l){var c=function(u){var d=Math.floor((u-1)/7)*7;return(u+l.weekStartsOn+6)%7+d};switch(a){case"e":case"ee":return St(xt(a.length,o),c);case"eo":return St(i.ordinalNumber(o,{unit:"day"}),c);case"eee":return i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(o,{width:"wide",context:"formatting"})||i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,i,l){return o=zu(o,i,l),o.setUTCHours(0,0,0,0),o}}]),n}(tt),Yw=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",90),ye(we(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i,l){var c=function(u){var d=Math.floor((u-1)/7)*7;return(u+l.weekStartsOn+6)%7+d};switch(a){case"c":case"cc":return St(xt(a.length,o),c);case"co":return St(i.ordinalNumber(o,{unit:"day"}),c);case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"})||i.day(o,{width:"short",context:"standalone"})||i.day(o,{width:"narrow",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"})||i.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(o,{width:"wide",context:"standalone"})||i.day(o,{width:"abbreviated",context:"standalone"})||i.day(o,{width:"short",context:"standalone"})||i.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,i,l){return o=zu(o,i,l),o.setUTCHours(0,0,0,0),o}}]),n}(tt);function Xw(e,t){He(2,arguments);var n=Vt(t);n%7===0&&(n=n-7);var r=1,o=We(e),a=o.getUTCDay(),i=n%7,l=(i+7)%7,c=(l<r?7:0)+n-a;return o.setUTCDate(o.getUTCDate()+c),o}var Qw=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",90),ye(we(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){var l=function(s){return s===0?7:s};switch(a){case"i":case"ii":return xt(a.length,o);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return St(i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"}),l);case"iiiii":return St(i.day(o,{width:"narrow",context:"formatting"}),l);case"iiiiii":return St(i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"}),l);case"iiii":default:return St(i.day(o,{width:"wide",context:"formatting"})||i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"}),l)}}},{key:"validate",value:function(o,a){return a>=1&&a<=7}},{key:"set",value:function(o,a,i){return o=Xw(o,i),o.setUTCHours(0,0,0,0),o}}]),n}(tt),Zw=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",80),ye(we(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"a":case"aa":case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})||i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,i){return o.setUTCHours(Nu(i),0,0,0),o}}]),n}(tt),Jw=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",80),ye(we(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"b":case"bb":case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})||i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,i){return o.setUTCHours(Nu(i),0,0,0),o}}]),n}(tt),eS=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",80),ye(we(r),"incompatibleTokens",["a","b","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})||i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,i){return o.setUTCHours(Nu(i),0,0,0),o}}]),n}(tt),tS=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",70),ye(we(r),"incompatibleTokens",["H","K","k","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"h":return pt(wt.hour12h,o);case"ho":return i.ordinalNumber(o,{unit:"hour"});default:return xt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=12}},{key:"set",value:function(o,a,i){var l=o.getUTCHours()>=12;return l&&i<12?o.setUTCHours(i+12,0,0,0):!l&&i===12?o.setUTCHours(0,0,0,0):o.setUTCHours(i,0,0,0),o}}]),n}(tt),nS=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",70),ye(we(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"H":return pt(wt.hour23h,o);case"Ho":return i.ordinalNumber(o,{unit:"hour"});default:return xt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=23}},{key:"set",value:function(o,a,i){return o.setUTCHours(i,0,0,0),o}}]),n}(tt),rS=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",70),ye(we(r),"incompatibleTokens",["h","H","k","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"K":return pt(wt.hour11h,o);case"Ko":return i.ordinalNumber(o,{unit:"hour"});default:return xt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,i){var l=o.getUTCHours()>=12;return l&&i<12?o.setUTCHours(i+12,0,0,0):o.setUTCHours(i,0,0,0),o}}]),n}(tt),oS=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",70),ye(we(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"k":return pt(wt.hour24h,o);case"ko":return i.ordinalNumber(o,{unit:"hour"});default:return xt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=24}},{key:"set",value:function(o,a,i){var l=i<=24?i%24:i;return o.setUTCHours(l,0,0,0),o}}]),n}(tt),aS=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",60),ye(we(r),"incompatibleTokens",["t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"m":return pt(wt.minute,o);case"mo":return i.ordinalNumber(o,{unit:"minute"});default:return xt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,i){return o.setUTCMinutes(i,0,0),o}}]),n}(tt),iS=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",50),ye(we(r),"incompatibleTokens",["t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a,i){switch(a){case"s":return pt(wt.second,o);case"so":return i.ordinalNumber(o,{unit:"second"});default:return xt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,i){return o.setUTCSeconds(i,0),o}}]),n}(tt),lS=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",30),ye(we(r),"incompatibleTokens",["t","T"]),r}return Ye(n,[{key:"parse",value:function(o,a){var i=function(c){return Math.floor(c*Math.pow(10,-a.length+3))};return St(xt(a.length,o),i)}},{key:"set",value:function(o,a,i){return o.setUTCMilliseconds(i),o}}]),n}(tt),sS=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",10),ye(we(r),"incompatibleTokens",["t","T","x"]),r}return Ye(n,[{key:"parse",value:function(o,a){switch(a){case"X":return Mn(Rn.basicOptionalMinutes,o);case"XX":return Mn(Rn.basic,o);case"XXXX":return Mn(Rn.basicOptionalSeconds,o);case"XXXXX":return Mn(Rn.extendedOptionalSeconds,o);case"XXX":default:return Mn(Rn.extended,o)}}},{key:"set",value:function(o,a,i){return a.timestampIsSet?o:new Date(o.getTime()-i)}}]),n}(tt),cS=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",10),ye(we(r),"incompatibleTokens",["t","T","X"]),r}return Ye(n,[{key:"parse",value:function(o,a){switch(a){case"x":return Mn(Rn.basicOptionalMinutes,o);case"xx":return Mn(Rn.basic,o);case"xxxx":return Mn(Rn.basicOptionalSeconds,o);case"xxxxx":return Mn(Rn.extendedOptionalSeconds,o);case"xxx":default:return Mn(Rn.extended,o)}}},{key:"set",value:function(o,a,i){return a.timestampIsSet?o:new Date(o.getTime()-i)}}]),n}(tt),uS=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",40),ye(we(r),"incompatibleTokens","*"),r}return Ye(n,[{key:"parse",value:function(o){return ab(o)}},{key:"set",value:function(o,a,i){return[new Date(i*1e3),{timestampIsSet:!0}]}}]),n}(tt),dS=function(e){Je(n,e);var t=et(n);function n(){var r;Xe(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),ye(we(r),"priority",20),ye(we(r),"incompatibleTokens","*"),r}return Ye(n,[{key:"parse",value:function(o){return ab(o)}},{key:"set",value:function(o,a,i){return[new Date(i),{timestampIsSet:!0}]}}]),n}(tt),fS={G:new Ew,y:new $w,Y:new Ow,R:new Iw,u:new Aw,Q:new _w,q:new Bw,M:new Lw,L:new jw,w:new Nw,I:new Ww,d:new Uw,D:new Hw,E:new Gw,e:new Kw,c:new Yw,i:new Qw,a:new Zw,b:new Jw,B:new eS,h:new tS,H:new nS,K:new rS,k:new oS,m:new aS,s:new iS,S:new lS,X:new sS,x:new cS,t:new uS,T:new dS},pS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hS=/^'([^]*?)'?$/,gS=/''/g,bS=/\S/,vS=/[a-zA-Z]/;function yS(e,t,n,r){var o,a,i,l,c,s,u,d,f,m,v,h,x,g,b,p,y,D;He(3,arguments);var S=String(e),P=String(t),T=eb(),C=(o=(a=r==null?void 0:r.locale)!==null&&a!==void 0?a:T.locale)!==null&&o!==void 0?o:Fu;if(!C.match)throw new RangeError("locale must contain match property");var k=Vt((i=(l=(c=(s=r==null?void 0:r.firstWeekContainsDate)!==null&&s!==void 0?s:r==null||(u=r.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&c!==void 0?c:T.firstWeekContainsDate)!==null&&l!==void 0?l:(f=T.locale)===null||f===void 0||(m=f.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=Vt((v=(h=(x=(g=r==null?void 0:r.weekStartsOn)!==null&&g!==void 0?g:r==null||(b=r.locale)===null||b===void 0||(p=b.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&x!==void 0?x:T.weekStartsOn)!==null&&h!==void 0?h:(y=T.locale)===null||y===void 0||(D=y.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&v!==void 0?v:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(P==="")return S===""?We(n):new Date(NaN);var O={firstWeekContainsDate:k,weekStartsOn:M,locale:C},$=[new Mw],I=P.match(mS).map(function(H){var K=H[0];if(K in If){var Z=If[K];return Z(H,C.formatLong)}return H}).join("").match(pS),A=[],_=Wf(I),F;try{var j=function(){var K=F.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Px(K)&&Af(K,P,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Tx(K)&&Af(K,P,e);var Z=K[0],se=fS[Z];if(se){var Y=se.incompatibleTokens;if(Array.isArray(Y)){var J=A.find(function(ge){return Y.includes(ge.token)||ge.token===Z});if(J)throw new RangeError("The format string mustn't contain `".concat(J.fullToken,"` and `").concat(K,"` at the same time"))}else if(se.incompatibleTokens==="*"&&A.length>0)throw new RangeError("The format string mustn't contain `".concat(K,"` and any other token at the same time"));A.push({token:Z,fullToken:K});var oe=se.run(S,K,C.match,O);if(!oe)return{v:new Date(NaN)};$.push(oe.setter),S=oe.rest}else{if(Z.match(vS))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Z+"`");if(K==="''"?K="'":Z==="'"&&(K=CS(K)),S.indexOf(K)===0)S=S.slice(K.length);else return{v:new Date(NaN)}}};for(_.s();!(F=_.n()).done;){var W=j();if(Ng(W)==="object")return W.v}}catch(H){_.e(H)}finally{_.f()}if(S.length>0&&bS.test(S))return new Date(NaN);var G=$.map(function(H){return H.priority}).sort(function(H,K){return K-H}).filter(function(H,K,Z){return Z.indexOf(H)===K}).map(function(H){return $.filter(function(K){return K.priority===H}).sort(function(K,Z){return Z.subPriority-K.subPriority})}).map(function(H){return H[0]}),R=We(n);if(isNaN(R.getTime()))return new Date(NaN);var q=Dx(R,Uc(R)),V={},B=Wf(G),z;try{for(B.s();!(z=B.n()).done;){var N=z.value;if(!N.validate(q,O))return new Date(NaN);var U=N.set(q,V,O);Array.isArray(U)?(q=U[0],yw(V,U[1])):q=U}}catch(H){B.e(H)}finally{B.f()}return q}function CS(e){return e.match(hS)[1].replace(gS,"'")}function Vf(e){He(1,arguments);var t=We(e);return t.setMinutes(0,0,0),t}function xS(e,t){He(2,arguments);var n=Vf(e),r=Vf(t);return n.getTime()===r.getTime()}function wS(e,t){He(2,arguments);var n=We(e),r=We(t);return n.getFullYear()===r.getFullYear()}function SS(e,t){He(2,arguments);var n=We(e),r=Vt(t);return n.setDate(r),n}function PS(e,t){He(2,arguments);var n=We(e),r=Vt(t);return n.setHours(r),n}function TS(e,t){He(2,arguments);var n=We(e),r=Vt(t);return n.setMinutes(r),n}function DS(e,t){He(2,arguments);var n=We(e),r=Vt(t);return n.setSeconds(r),n}var sb={},So={},Is={};function cb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=cb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ve(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=cb(e))&&(r&&(r+=" "),r+=t);return r}function _e(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",l=!0;for(let c=0;c<a.length;c+=1){const s=a[c];s&&(i+=(l===!0?"":" ")+t(s),l=!1,n&&n[s]&&(i+=" "+n[s]))}r[o]=i}return r}function Ki(e){return typeof e=="string"}function Yc(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function ub(e){if(typeof e!="string")throw new Error(Yc(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Jn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function db(e){if(!Jn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=db(e[n])}),t}function xr(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Jn(e)&&Jn(t)&&Object.keys(t).forEach(o=>{Jn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Jn(e[o])?r[o]=xr(e[o],t[o],n):n.clone?r[o]=Jn(t[o])?db(t[o]):t[o]:r[o]=t[o]}),r}function ga(e,t){return t?xr(e,t,{clone:!1}):e}function kS(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var i,l;const a=/min-width:\s*([0-9.]+)/;return+(((i=r.match(a))==null?void 0:i[1])||0)-+(((l=o.match(a))==null?void 0:l[1])||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function RS(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function MS(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function ES(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function n(a,i){a.up=(...l)=>t(e.breakpoints.up(...l),i),a.down=(...l)=>t(e.breakpoints.down(...l),i),a.between=(...l)=>t(e.breakpoints.between(...l),i),a.only=(...l)=>t(e.breakpoints.only(...l),i),a.not=(...l)=>{const c=t(e.breakpoints.not(...l),i);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const Ml={xs:0,sm:600,md:900,lg:1200,xl:1536},qf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ml[e]}px)`},$S={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Ml[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function jn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||qf;return t.reduce((i,l,c)=>(i[a.up(a.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const a=r.breakpoints||qf;return Object.keys(t).reduce((i,l)=>{if(RS(a.keys,l)){const c=MS(r.containerQueries?r:$S,l);c&&(i[c]=n(t[l],l))}else if(Object.keys(a.values||Ml).includes(l)){const c=a.up(l);i[c]=n(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return n(t)}function OS(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function IS(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function El(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Yi(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=El(e,n)||r,t&&(o=t(o,r,e)),o}function Tt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,s=El(c,r)||{};return jn(i,l,d=>{let f=Yi(s,o,d);return d===f&&typeof d=="string"&&(f=Yi(s,o,`${t}${d==="default"?"":ub(d)}`,d)),n===!1?f:{[n]:f}})};return a.propTypes={},a.filterProps=[t],a}function AS(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const _S={m:"margin",p:"padding"},BS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Uf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},LS=AS(e=>{if(e.length>2)if(Uf[e])e=Uf[e];else return[e];const[t,n]=e.split(""),r=_S[t],o=BS[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),Wu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Wu,...Vu];function Ua(e,t,n,r){const o=El(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),l=o[i];return a>=0?l:typeof l=="number"?-l:`-${l}`}:typeof o=="function"?o:()=>{}}function qu(e){return Ua(e,"spacing",8)}function Ha(e,t){return typeof t=="string"||t==null?t:e(t)}function jS(e,t){return n=>e.reduce((r,o)=>(r[o]=Ha(t,n),r),{})}function FS(e,t,n,r){if(!t.includes(n))return null;const o=LS(n),a=jS(o,r),i=e[n];return jn(e,i,a)}function fb(e,t){const n=qu(e.theme);return Object.keys(e).map(r=>FS(e,t,r,n)).reduce(ga,{})}function gt(e){return fb(e,Wu)}gt.propTypes={};gt.filterProps=Wu;function bt(e){return fb(e,Vu)}bt.propTypes={};bt.filterProps=Vu;function $l(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?ga(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function rn(e){return typeof e!="number"?e:`${e}px solid`}function mn(e,t){return Tt({prop:e,themeKey:"borders",transform:t})}const NS=mn("border",rn),zS=mn("borderTop",rn),WS=mn("borderRight",rn),VS=mn("borderBottom",rn),qS=mn("borderLeft",rn),US=mn("borderColor"),HS=mn("borderTopColor"),GS=mn("borderRightColor"),KS=mn("borderBottomColor"),YS=mn("borderLeftColor"),XS=mn("outline",rn),QS=mn("outlineColor"),Ol=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ua(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ha(t,r)});return jn(e,e.borderRadius,n)}return null};Ol.propTypes={};Ol.filterProps=["borderRadius"];$l(NS,zS,WS,VS,qS,US,HS,GS,KS,YS,Ol,XS,QS);const Il=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ua(e.theme,"spacing",8),n=r=>({gap:Ha(t,r)});return jn(e,e.gap,n)}return null};Il.propTypes={};Il.filterProps=["gap"];const Al=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ua(e.theme,"spacing",8),n=r=>({columnGap:Ha(t,r)});return jn(e,e.columnGap,n)}return null};Al.propTypes={};Al.filterProps=["columnGap"];const _l=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ua(e.theme,"spacing",8),n=r=>({rowGap:Ha(t,r)});return jn(e,e.rowGap,n)}return null};_l.propTypes={};_l.filterProps=["rowGap"];const ZS=Tt({prop:"gridColumn"}),JS=Tt({prop:"gridRow"}),e1=Tt({prop:"gridAutoFlow"}),t1=Tt({prop:"gridAutoColumns"}),n1=Tt({prop:"gridAutoRows"}),r1=Tt({prop:"gridTemplateColumns"}),o1=Tt({prop:"gridTemplateRows"}),a1=Tt({prop:"gridTemplateAreas"}),i1=Tt({prop:"gridArea"});$l(Il,Al,_l,ZS,JS,e1,t1,n1,r1,o1,a1,i1);function Gr(e,t){return t==="grey"?t:e}const l1=Tt({prop:"color",themeKey:"palette",transform:Gr}),s1=Tt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gr}),c1=Tt({prop:"backgroundColor",themeKey:"palette",transform:Gr});$l(l1,s1,c1);function Ut(e){return e<=1&&e!==0?`${e*100}%`:e}const u1=Tt({prop:"width",transform:Ut}),Uu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,a,i,l,c;const r=((i=(a=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[n])||Ml[n];return r?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ut(n)}};return jn(e,e.maxWidth,t)}return null};Uu.filterProps=["maxWidth"];const d1=Tt({prop:"minWidth",transform:Ut}),f1=Tt({prop:"height",transform:Ut}),p1=Tt({prop:"maxHeight",transform:Ut}),m1=Tt({prop:"minHeight",transform:Ut});Tt({prop:"size",cssProperty:"width",transform:Ut});Tt({prop:"size",cssProperty:"height",transform:Ut});const h1=Tt({prop:"boxSizing"});$l(u1,Uu,d1,f1,p1,m1,h1);const Ga={border:{themeKey:"borders",transform:rn},borderTop:{themeKey:"borders",transform:rn},borderRight:{themeKey:"borders",transform:rn},borderBottom:{themeKey:"borders",transform:rn},borderLeft:{themeKey:"borders",transform:rn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ol},color:{themeKey:"palette",transform:Gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gr},backgroundColor:{themeKey:"palette",transform:Gr},p:{style:bt},pt:{style:bt},pr:{style:bt},pb:{style:bt},pl:{style:bt},px:{style:bt},py:{style:bt},padding:{style:bt},paddingTop:{style:bt},paddingRight:{style:bt},paddingBottom:{style:bt},paddingLeft:{style:bt},paddingX:{style:bt},paddingY:{style:bt},paddingInline:{style:bt},paddingInlineStart:{style:bt},paddingInlineEnd:{style:bt},paddingBlock:{style:bt},paddingBlockStart:{style:bt},paddingBlockEnd:{style:bt},m:{style:gt},mt:{style:gt},mr:{style:gt},mb:{style:gt},ml:{style:gt},mx:{style:gt},my:{style:gt},margin:{style:gt},marginTop:{style:gt},marginRight:{style:gt},marginBottom:{style:gt},marginLeft:{style:gt},marginX:{style:gt},marginY:{style:gt},marginInline:{style:gt},marginInlineStart:{style:gt},marginInlineEnd:{style:gt},marginBlock:{style:gt},marginBlockStart:{style:gt},marginBlockEnd:{style:gt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Il},rowGap:{style:_l},columnGap:{style:Al},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ut},maxWidth:{style:Uu},minWidth:{transform:Ut},height:{transform:Ut},maxHeight:{transform:Ut},minHeight:{transform:Ut},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function g1(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function b1(e,t){return typeof e=="function"?e(t):e}function v1(){function e(n,r,o,a){const i={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:s,transform:u,style:d}=l;if(r==null)return null;if(s==="typography"&&r==="inherit")return{[n]:r};const f=El(o,s)||{};return d?d(i):jn(i,r,v=>{let h=Yi(f,u,v);return v===h&&typeof v=="string"&&(h=Yi(f,u,`${n}${v==="default"?"":ub(v)}`,v)),c===!1?h:{[c]:h}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Ga;function i(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const s=OS(o.breakpoints),u=Object.keys(s);let d=s;return Object.keys(c).forEach(f=>{const m=b1(c[f],o);if(m!=null)if(typeof m=="object")if(a[f])d=ga(d,e(f,m,o,a));else{const v=jn({theme:o},m,h=>({[f]:h}));g1(v,m)?d[f]=t({sx:m,theme:o}):d=ga(d,v)}else d=ga(d,e(f,m,o,a))}),kS(o,IS(u,d))}return Array.isArray(r)?r.map(i):i(r)}return t}const Dr=v1();Dr.filterProps=["sx"];const y1=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Ga;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function pb(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=y1(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return Jn(l)?{...r,...l}:r}:a={...r,...t},{...o,sx:a}}const C1=e=>{const t=Wg(e);class n extends nx{constructor(o){super(o),this.prepend=t.sheet.prepend}}return t.sheet=new n({key:t.key,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy,prepend:t.sheet.prepend,insertionPoint:t.sheet.insertionPoint}),t};let Xc;typeof document=="object"&&(Xc=C1({key:"css",prepend:!0}));function x1(e){const{injectFirst:t,children:n}=e;return t&&Xc?E.jsx(zg,{value:Xc,children:n}):n}function w1(e){return e==null||Object.keys(e).length===0}function mb(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(w1(o)?n:o):t;return E.jsx(Vg,{styles:r})}/**
3
3
  * @mui/styled-engine v6.1.0
4
4
  *
@@ -1 +1 @@
1
- import{c6 as pe,r as m,J as x,b as y,a4 as Le,c7 as we,c8 as me,bV as De,bW as Oe,c9 as fe,A as j,bs as Ue,u as ve,j as he,P as q,aN as _e,m as ye,a as Z,ac as Fe,aP as Me,F as xe,ca as He}from"./index-B8IA5mbU.js";import{B as Se,o as Je}from"./blocklet-BzkaFDNW.js";import{b as We}from"./url-evaluation-DmRIkzYe.js";function je(e,n){var t=pe(m.useState(e),2),o=t[0],c=t[1],u=m.useMemo(function(){var p=!e,g=function(){return c(function(I){return I===e?p:e})},T=function(I){return c(I)},P=function(){return c(e)},B=function(){return c(p)};return{toggle:g,set:T,setLeft:P,setRight:B}},[]);return[o,u]}function qe(e){var n=pe(je(!!e),2),t=n[0],o=n[1],c=o.toggle,u=o.set,p=m.useMemo(function(){var g=function(){return u(!0)},T=function(){return u(!1)};return{toggle:c,set:function(P){return u(!!P)},setTrue:g,setFalse:T}},[]);return[t,p]}const Ie=m.createContext({});function ct(){return m.useContext(Ie)}const Ke=(e,n)=>{const t=typeof n!="number"?Number(n):n;if(Number.isNaN(t)||t<=0)return 0;const o=Math.floor(e/t*100);return Math.min(Math.max(o,0),100)},D="ttl-",ke=(e,n)=>{let t=null;return(...o)=>{clearTimeout(t),t=setTimeout(()=>e(...o),n)}};function $e(e,n,t=0,o=0){if(n==null){localStorage.removeItem(D+e);return}const c={value:n,expiry:Date.now()+t};o?ke(()=>localStorage.setItem(D+e,JSON.stringify(c)),o)():localStorage.setItem(D+e,JSON.stringify(c))}function Ge(e){Ee();const n=localStorage.getItem(D+e);if(!n)return null;const t=JSON.parse(n);return Date.now()>t.expiry?(localStorage.removeItem(D+e),null):t.value}function Re(e){localStorage.removeItem(D+e)}let V=null;function Ee(e=!1){const n=Date.now();if(!(!e&&V&&n-V<60*1e3*5)){V=n;for(let t=0;t<localStorage.length;t++){const o=localStorage.key(t);if(o.startsWith(D)){const c=localStorage.getItem(o);if(c){let u;try{u=JSON.parse(c)}catch{continue}n>u.expiry&&localStorage.removeItem(o)}}}}}Ee();function Qe(e,n){if(!e)return"";if(e.meta.did===n)return x.getAppName(e,!0);let t="";return x.forEachChildSync(e,o=>{var c;t||((c=o==null?void 0:o.meta)==null?void 0:c.did)===n&&(t=x.getAppName(o,!0))}),t}function Te(e,n){if(!e)return null;if(e.meta.did===n)return e.appRuntimeInfo;for(const t of e.children){const o=Te(t,n);if(o)return o}return null}const K=e=>`blocklet-status-${e}`,Xe={installed:1,starting:1,running:1,stopped:1,upgrading:1,restarting:1,deleting:1};function ge(e){if(e){const n=e.children||[];let t=!1;n.forEach(o=>{var c,u;if(o.status==="downloading"){const p=Ge(K((c=o.meta)==null?void 0:c.bundleDid));o.status=p||o.status,p==="extracting"&&(t=!0)}else Xe[e.status]&&Re(K((u=o.meta)==null?void 0:u.bundleDid))}),t&&(e.status="extracting")}}let de=null;function Ye({did:e,client:n,useSubscription:t,getIP:o,useLocaleContext:c,disableSubscription:u,getOptionalComponents:p=!1}){var te,se,ne,re,oe,ae,ie,ue,ce;const{t:g,locale:T}=c(),[P,B]=m.useState(null),[I,w]=m.useState(!1),[U,C]=m.useState(!1),[_,H]=m.useState(!0),[J,{setTrue:W,setFalse:k}]=qe(!1),[r,E]=m.useState(),[$,G]=m.useState([]),[Q,F]=m.useState({}),O=(se=(te=r==null?void 0:r.site)==null?void 0:te.domainAliases)!=null&&se.length?JSON.stringify(r.site.domainAliases.map(s=>s.value)):"",h=m.useMemo(()=>{var s;return(((s=r==null?void 0:r.site)==null?void 0:s.domainAliases)||[]).map(i=>i.value)},[O]),{domainsAccessibility:d,recommendedDomain:A}=We(h,1e3),S=async(s=!1)=>{s?H(!0):C(!0);try{const{blocklet:i}=await n.getBlocklet({input:{did:e,attachRuntimeInfo:!0,attachDiskInfo:s,getOptionalComponents:p}});await fe(i,{getIP:o}),ge(i),E(i)}catch(i){j.error(i.message)}finally{s?H(!1):C(!1)}},M=async(s=6)=>{try{const i=await n.getBlockletRuntimeHistory({input:{did:e,hours:s}});if(i){const v=i.historyList.map(a=>({key:a.key,name:a.key===e?"App":Qe(r,a.key),appRuntimeInfo:Te(r,a.key),cpu:a.value.map(l=>({date:l.date,value:l.cpu})),memory:a.value.map(l=>({date:l.date,value:l.mem}))})).sort((a,l)=>a.key===e?-1:l.key===e?1:a.name.localeCompare(l.name));G(v)}}catch(i){j.error(i.message)}},X=async({showError:s=!0,attachRuntimeInfo:i=!0,attachDiskInfo:v=!1,hours:a=6}={})=>{if(!I)try{w(!0),B(null);const{blocklet:l}=await n.getBlocklet({input:{did:e,getOptionalComponents:p}});if(l)E(f=>(fe(l,{fixRuntime:"merge-old",oldBlocklet:f}),ge(l),l)),w(!1),i&&(S(v),M(a));else throw new Error(g("blocklet.notFound"))}catch(l){w(!1),B(l),s&&j.error(l.message)}},Y=s=>{var i;((i=s==null?void 0:s.meta)==null?void 0:i.did)===r.meta.did&&X({showError:!1})},b=s=>{var i;((i=s==null?void 0:s.meta)==null?void 0:i.did)===r.meta.did&&X({attachRuntimeInfo:!1,showError:!1})},Be=s=>{var i,v;!s||((i=s.meta)==null?void 0:i.did)!==((v=r==null?void 0:r.meta)==null?void 0:v.did)||(s.status==="extracting"&&E(a=>{if(!a)return a;const l=a.children||[];return l.forEach(f=>{var R,N,L;((R=f.meta)==null?void 0:R.bundleDid)===((N=s.component)==null?void 0:N.did)&&($e(K((L=f.meta)==null?void 0:L.bundleDid),s.status,1e3*60*5),f.status=s.status)}),{...a,children:l,status:s.status}}),s.status==="downloading"&&s.total&&E(a=>{if(!a)return a;const l=a.children||[];let f=a.progress||0;return l.forEach(R=>{var N,L,le;((N=R.meta)==null?void 0:N.bundleDid)===((L=s.component)==null?void 0:L.did)&&(R.progress=Ke(s.current,s.total),R.status=s.status,R.progress>f&&(f=R.progress),Re(K((le=R.meta)==null?void 0:le.bundleDid)))}),{...a,children:l,progress:f}}))},ee=()=>{e&&O&&n.checkDomains({input:{did:e}}).catch(console.error)},Ce=async s=>{const{blocklet:i}=await n.configNavigations({input:{did:e,navigations:s}});E(i)};m.useEffect(()=>{O&&!u&&J&&ee()},[O,u,J]);const z=t(y.BlockletEvents.domainStatus,s=>{F(i=>({...i,[s.domain]:{...i[s.domain],...s}}))},[(ne=r==null?void 0:r.meta)==null?void 0:ne.did,!u]);m.useEffect(()=>{z&&(de=setInterval(()=>{z.isConnected()&&(clearInterval(de),W())},500))},[z,W,k]),t(y.BlockletEvents.statusChange,s=>{var i;((i=s==null?void 0:s.meta)==null?void 0:i.did)===r.meta.did&&(E(v=>{const a={...v};return a.status=y.fromBlockletStatus(s.status),(a.children||[]).forEach(l=>{const f=s.children.find(R=>{var N,L;return((N=R.meta)==null?void 0:N.did)===((L=l.meta)==null?void 0:L.did)});f&&(l.status=y.fromBlockletStatus(f.status))}),a}),b(s))},[(re=r==null?void 0:r.meta)==null?void 0:re.did,!u]),t(y.BlockletEvents.storeChange,b,[(oe=r==null?void 0:r.meta)==null?void 0:oe.did,!u]),t(y.BlockletEvents.installed,Y,[(ae=r==null?void 0:r.meta)==null?void 0:ae.did,!u]),t(y.BlockletEvents.upgraded,Y,[(ie=r==null?void 0:r.meta)==null?void 0:ie.did,!u]),t(y.BlockletEvents.updated,Y,[(ue=r==null?void 0:r.meta)==null?void 0:ue.did,!u]),t(y.BlockletEvents.downloadBundleProgress,Be,[(ce=r==null?void 0:r.meta)==null?void 0:ce.did,!u]);const Ae=(s=null,i="add")=>{E(v=>{const a={...v};if(s){const l=v.site.domainAliases.findIndex(f=>f.value===s.value);l!==-1?i==="delete"?a.site.domainAliases=v.site.domainAliases.filter(f=>f.value!==s.value):a.site.domainAliases[l]=s:a.site.domainAliases=Ue([...v.site.domainAliases,s].filter(Boolean),"value")}return a})},Ne=r?Le(r,{site:{domainAliases:r.site.domainAliases.map(s=>{var l,f;const i=s.value,v=we(i),a=Q[v];return s.domainStatus=me(a,["domain","meta"]),s.accessibility=me(d[i],["domain"]),s.href=De({blocklet:r,domain:s,params:Oe(r,T)}),s.canGenerateCertificate=((l=a==null?void 0:a.dns)==null?void 0:l.isDnsResolved)&&((f=a==null?void 0:a.dns)==null?void 0:f.isCnameMatch),s})}}):null;return{loading:I,loadingRuntimeInfo:U,loadingDiskInfo:_,error:P,blocklet:Ne,runtimeHistory:$,recommendedDomain:A||"",actions:{refreshBlocklet:X,refreshDomainStatus:ee,setBlocklet:E,configNavigations:Ce,updateBlockletDomainAliases:Ae}}}const{Provider:ze,Consumer:lt}=Se;function Ze({did:e,children:n}){const{api:t,ws:{useSubscription:o}}=ve(),{loading:c,loadingRuntimeInfo:u,error:p,blocklet:g,recommendedDomain:T,runtimeHistory:P,actions:{refreshBlocklet:B,refreshDomainStatus:I,setBlocklet:w,configNavigations:U,updateBlockletDomainAliases:C}}=Ye({did:e,client:t,useSubscription:o,getIP:_e,useLocaleContext:ye,getOptionalComponents:!0});m.useEffect(()=>{B()},[e]);const _={did:e,client:t,loading:c,loadingRuntimeInfo:u,error:p,blocklet:g,recommendedDomain:T,runtimeHistory:P,appIdList:g?x.getBlockletAppIdList(g):[],actions:{refreshBlocklet:B,refreshDomainStatus:I,setBlocklet:w,configNavigations:U,updateBlockletDomainAliases:C}};return he.jsx(ze,{value:_,children:n})}Ze.propTypes={did:q.string.isRequired,children:q.any.isRequired};function Ve(){return m.useContext(Se)}const{Provider:be,Consumer:mt}=Ie,et=(e,n,t)=>e===n.did?n.name:t?x.getDisplayName(t):"",tt=(e,n,t)=>{if(t){const o=t.environments.find(c=>c.key===y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR);return o?o.value:"auto"}return"default"},st=(e,n,t)=>e===n.did?n.trustedPassports||[]:t?t.trustedPassports||[]:[],nt=(e,n,t)=>e===n.did?n.trustedFactories||[]:t?t.trustedFactories||[]:[],rt=(e,n,t)=>e===n.did?e:t&&((t.environments||[]).find(c=>c.key==="BLOCKLET_APP_ID")||{}).value||"",ot=(e,n,t)=>e===n.did?n.enablePassportIssuance!==!1:t?t.enablePassportIssuance!==!1:!0;function Pe({teamDid:e,children:n}){const{t,locale:o}=ye(),{api:c,info:u}=ve(),{recommendedDomain:p,blocklet:g}=Ve()||{},[T,P]=m.useState([]),[B,I]=m.useState([]),[w,U]=m.useState([]),C=et(e,u,g),_=tt(e,u,g),H=st(e,u,g),J=nt(e,u,g),W=rt(e,u,g),k=ot(e,u,g),r=async h=>{try{const d=await c.doBatchQuery({getRoles:{input:{teamDid:h}},getPermissions:{input:{teamDid:h}},getInvitations:{input:{teamDid:h}}}),A=(d.getRoles.roles||[]).filter(S=>!xe.RBAC_CONFIG.roles.some(M=>M.name===S.name&&(!M.passport||M.noHuman))).map(S=>(S.hasDescription=!!S.description,S.hasDescription||(S.description=t("team.passport.description",{teamName:C,title:S.title})),S));I(Je(A,[S=>He(S.name)],["desc"])),U(d.getPermissions.permissions||[]),P(d.getInvitations.invitations||[])}catch(d){j.error(d.message)}},E=({did:h}={})=>{const d={teamDid:e,user:{did:h}};return c.getUser({input:d})},$=({query:h,paging:d}={})=>{const A={teamDid:e};return d&&(A.paging=d),h&&(A.query=h),A.sort={lastLoginAt:-1},c.getUsers({input:A})},G=()=>c.getUsersCountPerRole({input:{teamDid:e}}),Q=()=>r(e);m.useEffect(()=>{r(e)},[e]),m.useEffect(()=>{I(h=>h.map(d=>(d.hasDescription||(d.description=t("team.passport.description",{teamName:C,title:d.title})),{...d})))},[t,o]);const F=h=>{h.teamDid===e&&r(e)};Z(y.TeamEvents.userAdded,F,[e]),Z(y.TeamEvents.userRemoved,F,[e]),Z(y.TeamEvents.userUpdated,F,[e]);const O={teamDid:e,teamIssuerDid:W,teamName:C,invitations:T,roles:B,permissions:w,trustedPassports:H,trustedFactories:J,isNodeTeam:e===u.did,enablePassportIssuance:k,refresh:Q,passportColor:_,endpoint:e===u.did?Fe(u):Me(p),blocklet:g,api:{getUser:E,getUsers:$,getUsersCountPerRole:G}};return he.jsx(be,{value:O,children:n})}Pe.propTypes={teamDid:q.string.isRequired,children:q.object.isRequired};Pe.defaultProps={};export{Ze as B,Pe as T,Ve as a,qe as b,ct as u};
1
+ import{c6 as pe,r as m,J as x,b as y,a4 as Le,c7 as we,c8 as me,bV as De,bW as Oe,c9 as fe,A as j,bs as Ue,u as ve,j as he,P as q,aN as _e,m as ye,a as Z,ac as Fe,aP as Me,F as xe,ca as He}from"./index-BsTEuRio.js";import{B as Se,o as Je}from"./blocklet-C56CLqfn.js";import{b as We}from"./url-evaluation-PNUzVXFG.js";function je(e,n){var t=pe(m.useState(e),2),o=t[0],c=t[1],u=m.useMemo(function(){var p=!e,g=function(){return c(function(I){return I===e?p:e})},T=function(I){return c(I)},P=function(){return c(e)},B=function(){return c(p)};return{toggle:g,set:T,setLeft:P,setRight:B}},[]);return[o,u]}function qe(e){var n=pe(je(!!e),2),t=n[0],o=n[1],c=o.toggle,u=o.set,p=m.useMemo(function(){var g=function(){return u(!0)},T=function(){return u(!1)};return{toggle:c,set:function(P){return u(!!P)},setTrue:g,setFalse:T}},[]);return[t,p]}const Ie=m.createContext({});function ct(){return m.useContext(Ie)}const Ke=(e,n)=>{const t=typeof n!="number"?Number(n):n;if(Number.isNaN(t)||t<=0)return 0;const o=Math.floor(e/t*100);return Math.min(Math.max(o,0),100)},D="ttl-",ke=(e,n)=>{let t=null;return(...o)=>{clearTimeout(t),t=setTimeout(()=>e(...o),n)}};function $e(e,n,t=0,o=0){if(n==null){localStorage.removeItem(D+e);return}const c={value:n,expiry:Date.now()+t};o?ke(()=>localStorage.setItem(D+e,JSON.stringify(c)),o)():localStorage.setItem(D+e,JSON.stringify(c))}function Ge(e){Ee();const n=localStorage.getItem(D+e);if(!n)return null;const t=JSON.parse(n);return Date.now()>t.expiry?(localStorage.removeItem(D+e),null):t.value}function Re(e){localStorage.removeItem(D+e)}let V=null;function Ee(e=!1){const n=Date.now();if(!(!e&&V&&n-V<60*1e3*5)){V=n;for(let t=0;t<localStorage.length;t++){const o=localStorage.key(t);if(o.startsWith(D)){const c=localStorage.getItem(o);if(c){let u;try{u=JSON.parse(c)}catch{continue}n>u.expiry&&localStorage.removeItem(o)}}}}}Ee();function Qe(e,n){if(!e)return"";if(e.meta.did===n)return x.getAppName(e,!0);let t="";return x.forEachChildSync(e,o=>{var c;t||((c=o==null?void 0:o.meta)==null?void 0:c.did)===n&&(t=x.getAppName(o,!0))}),t}function Te(e,n){if(!e)return null;if(e.meta.did===n)return e.appRuntimeInfo;for(const t of e.children){const o=Te(t,n);if(o)return o}return null}const K=e=>`blocklet-status-${e}`,Xe={installed:1,starting:1,running:1,stopped:1,upgrading:1,restarting:1,deleting:1};function ge(e){if(e){const n=e.children||[];let t=!1;n.forEach(o=>{var c,u;if(o.status==="downloading"){const p=Ge(K((c=o.meta)==null?void 0:c.bundleDid));o.status=p||o.status,p==="extracting"&&(t=!0)}else Xe[e.status]&&Re(K((u=o.meta)==null?void 0:u.bundleDid))}),t&&(e.status="extracting")}}let de=null;function Ye({did:e,client:n,useSubscription:t,getIP:o,useLocaleContext:c,disableSubscription:u,getOptionalComponents:p=!1}){var te,se,ne,re,oe,ae,ie,ue,ce;const{t:g,locale:T}=c(),[P,B]=m.useState(null),[I,w]=m.useState(!1),[U,C]=m.useState(!1),[_,H]=m.useState(!0),[J,{setTrue:W,setFalse:k}]=qe(!1),[r,E]=m.useState(),[$,G]=m.useState([]),[Q,F]=m.useState({}),O=(se=(te=r==null?void 0:r.site)==null?void 0:te.domainAliases)!=null&&se.length?JSON.stringify(r.site.domainAliases.map(s=>s.value)):"",h=m.useMemo(()=>{var s;return(((s=r==null?void 0:r.site)==null?void 0:s.domainAliases)||[]).map(i=>i.value)},[O]),{domainsAccessibility:d,recommendedDomain:A}=We(h,1e3),S=async(s=!1)=>{s?H(!0):C(!0);try{const{blocklet:i}=await n.getBlocklet({input:{did:e,attachRuntimeInfo:!0,attachDiskInfo:s,getOptionalComponents:p}});await fe(i,{getIP:o}),ge(i),E(i)}catch(i){j.error(i.message)}finally{s?H(!1):C(!1)}},M=async(s=6)=>{try{const i=await n.getBlockletRuntimeHistory({input:{did:e,hours:s}});if(i){const v=i.historyList.map(a=>({key:a.key,name:a.key===e?"App":Qe(r,a.key),appRuntimeInfo:Te(r,a.key),cpu:a.value.map(l=>({date:l.date,value:l.cpu})),memory:a.value.map(l=>({date:l.date,value:l.mem}))})).sort((a,l)=>a.key===e?-1:l.key===e?1:a.name.localeCompare(l.name));G(v)}}catch(i){j.error(i.message)}},X=async({showError:s=!0,attachRuntimeInfo:i=!0,attachDiskInfo:v=!1,hours:a=6}={})=>{if(!I)try{w(!0),B(null);const{blocklet:l}=await n.getBlocklet({input:{did:e,getOptionalComponents:p}});if(l)E(f=>(fe(l,{fixRuntime:"merge-old",oldBlocklet:f}),ge(l),l)),w(!1),i&&(S(v),M(a));else throw new Error(g("blocklet.notFound"))}catch(l){w(!1),B(l),s&&j.error(l.message)}},Y=s=>{var i;((i=s==null?void 0:s.meta)==null?void 0:i.did)===r.meta.did&&X({showError:!1})},b=s=>{var i;((i=s==null?void 0:s.meta)==null?void 0:i.did)===r.meta.did&&X({attachRuntimeInfo:!1,showError:!1})},Be=s=>{var i,v;!s||((i=s.meta)==null?void 0:i.did)!==((v=r==null?void 0:r.meta)==null?void 0:v.did)||(s.status==="extracting"&&E(a=>{if(!a)return a;const l=a.children||[];return l.forEach(f=>{var R,N,L;((R=f.meta)==null?void 0:R.bundleDid)===((N=s.component)==null?void 0:N.did)&&($e(K((L=f.meta)==null?void 0:L.bundleDid),s.status,1e3*60*5),f.status=s.status)}),{...a,children:l,status:s.status}}),s.status==="downloading"&&s.total&&E(a=>{if(!a)return a;const l=a.children||[];let f=a.progress||0;return l.forEach(R=>{var N,L,le;((N=R.meta)==null?void 0:N.bundleDid)===((L=s.component)==null?void 0:L.did)&&(R.progress=Ke(s.current,s.total),R.status=s.status,R.progress>f&&(f=R.progress),Re(K((le=R.meta)==null?void 0:le.bundleDid)))}),{...a,children:l,progress:f}}))},ee=()=>{e&&O&&n.checkDomains({input:{did:e}}).catch(console.error)},Ce=async s=>{const{blocklet:i}=await n.configNavigations({input:{did:e,navigations:s}});E(i)};m.useEffect(()=>{O&&!u&&J&&ee()},[O,u,J]);const z=t(y.BlockletEvents.domainStatus,s=>{F(i=>({...i,[s.domain]:{...i[s.domain],...s}}))},[(ne=r==null?void 0:r.meta)==null?void 0:ne.did,!u]);m.useEffect(()=>{z&&(de=setInterval(()=>{z.isConnected()&&(clearInterval(de),W())},500))},[z,W,k]),t(y.BlockletEvents.statusChange,s=>{var i;((i=s==null?void 0:s.meta)==null?void 0:i.did)===r.meta.did&&(E(v=>{const a={...v};return a.status=y.fromBlockletStatus(s.status),(a.children||[]).forEach(l=>{const f=s.children.find(R=>{var N,L;return((N=R.meta)==null?void 0:N.did)===((L=l.meta)==null?void 0:L.did)});f&&(l.status=y.fromBlockletStatus(f.status))}),a}),b(s))},[(re=r==null?void 0:r.meta)==null?void 0:re.did,!u]),t(y.BlockletEvents.storeChange,b,[(oe=r==null?void 0:r.meta)==null?void 0:oe.did,!u]),t(y.BlockletEvents.installed,Y,[(ae=r==null?void 0:r.meta)==null?void 0:ae.did,!u]),t(y.BlockletEvents.upgraded,Y,[(ie=r==null?void 0:r.meta)==null?void 0:ie.did,!u]),t(y.BlockletEvents.updated,Y,[(ue=r==null?void 0:r.meta)==null?void 0:ue.did,!u]),t(y.BlockletEvents.downloadBundleProgress,Be,[(ce=r==null?void 0:r.meta)==null?void 0:ce.did,!u]);const Ae=(s=null,i="add")=>{E(v=>{const a={...v};if(s){const l=v.site.domainAliases.findIndex(f=>f.value===s.value);l!==-1?i==="delete"?a.site.domainAliases=v.site.domainAliases.filter(f=>f.value!==s.value):a.site.domainAliases[l]=s:a.site.domainAliases=Ue([...v.site.domainAliases,s].filter(Boolean),"value")}return a})},Ne=r?Le(r,{site:{domainAliases:r.site.domainAliases.map(s=>{var l,f;const i=s.value,v=we(i),a=Q[v];return s.domainStatus=me(a,["domain","meta"]),s.accessibility=me(d[i],["domain"]),s.href=De({blocklet:r,domain:s,params:Oe(r,T)}),s.canGenerateCertificate=((l=a==null?void 0:a.dns)==null?void 0:l.isDnsResolved)&&((f=a==null?void 0:a.dns)==null?void 0:f.isCnameMatch),s})}}):null;return{loading:I,loadingRuntimeInfo:U,loadingDiskInfo:_,error:P,blocklet:Ne,runtimeHistory:$,recommendedDomain:A||"",actions:{refreshBlocklet:X,refreshDomainStatus:ee,setBlocklet:E,configNavigations:Ce,updateBlockletDomainAliases:Ae}}}const{Provider:ze,Consumer:lt}=Se;function Ze({did:e,children:n}){const{api:t,ws:{useSubscription:o}}=ve(),{loading:c,loadingRuntimeInfo:u,error:p,blocklet:g,recommendedDomain:T,runtimeHistory:P,actions:{refreshBlocklet:B,refreshDomainStatus:I,setBlocklet:w,configNavigations:U,updateBlockletDomainAliases:C}}=Ye({did:e,client:t,useSubscription:o,getIP:_e,useLocaleContext:ye,getOptionalComponents:!0});m.useEffect(()=>{B()},[e]);const _={did:e,client:t,loading:c,loadingRuntimeInfo:u,error:p,blocklet:g,recommendedDomain:T,runtimeHistory:P,appIdList:g?x.getBlockletAppIdList(g):[],actions:{refreshBlocklet:B,refreshDomainStatus:I,setBlocklet:w,configNavigations:U,updateBlockletDomainAliases:C}};return he.jsx(ze,{value:_,children:n})}Ze.propTypes={did:q.string.isRequired,children:q.any.isRequired};function Ve(){return m.useContext(Se)}const{Provider:be,Consumer:mt}=Ie,et=(e,n,t)=>e===n.did?n.name:t?x.getDisplayName(t):"",tt=(e,n,t)=>{if(t){const o=t.environments.find(c=>c.key===y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR);return o?o.value:"auto"}return"default"},st=(e,n,t)=>e===n.did?n.trustedPassports||[]:t?t.trustedPassports||[]:[],nt=(e,n,t)=>e===n.did?n.trustedFactories||[]:t?t.trustedFactories||[]:[],rt=(e,n,t)=>e===n.did?e:t&&((t.environments||[]).find(c=>c.key==="BLOCKLET_APP_ID")||{}).value||"",ot=(e,n,t)=>e===n.did?n.enablePassportIssuance!==!1:t?t.enablePassportIssuance!==!1:!0;function Pe({teamDid:e,children:n}){const{t,locale:o}=ye(),{api:c,info:u}=ve(),{recommendedDomain:p,blocklet:g}=Ve()||{},[T,P]=m.useState([]),[B,I]=m.useState([]),[w,U]=m.useState([]),C=et(e,u,g),_=tt(e,u,g),H=st(e,u,g),J=nt(e,u,g),W=rt(e,u,g),k=ot(e,u,g),r=async h=>{try{const d=await c.doBatchQuery({getRoles:{input:{teamDid:h}},getPermissions:{input:{teamDid:h}},getInvitations:{input:{teamDid:h}}}),A=(d.getRoles.roles||[]).filter(S=>!xe.RBAC_CONFIG.roles.some(M=>M.name===S.name&&(!M.passport||M.noHuman))).map(S=>(S.hasDescription=!!S.description,S.hasDescription||(S.description=t("team.passport.description",{teamName:C,title:S.title})),S));I(Je(A,[S=>He(S.name)],["desc"])),U(d.getPermissions.permissions||[]),P(d.getInvitations.invitations||[])}catch(d){j.error(d.message)}},E=({did:h}={})=>{const d={teamDid:e,user:{did:h}};return c.getUser({input:d})},$=({query:h,paging:d}={})=>{const A={teamDid:e};return d&&(A.paging=d),h&&(A.query=h),A.sort={lastLoginAt:-1},c.getUsers({input:A})},G=()=>c.getUsersCountPerRole({input:{teamDid:e}}),Q=()=>r(e);m.useEffect(()=>{r(e)},[e]),m.useEffect(()=>{I(h=>h.map(d=>(d.hasDescription||(d.description=t("team.passport.description",{teamName:C,title:d.title})),{...d})))},[t,o]);const F=h=>{h.teamDid===e&&r(e)};Z(y.TeamEvents.userAdded,F,[e]),Z(y.TeamEvents.userRemoved,F,[e]),Z(y.TeamEvents.userUpdated,F,[e]);const O={teamDid:e,teamIssuerDid:W,teamName:C,invitations:T,roles:B,permissions:w,trustedPassports:H,trustedFactories:J,isNodeTeam:e===u.did,enablePassportIssuance:k,refresh:Q,passportColor:_,endpoint:e===u.did?Fe(u):Me(p),blocklet:g,api:{getUser:E,getUsers:$,getUsersCountPerRole:G}};return he.jsx(be,{value:O,children:n})}Pe.propTypes={teamDid:q.string.isRequired,children:q.object.isRequired};Pe.defaultProps={};export{Ze as B,Pe as T,Ve as a,qe as b,ct as u};