@abtnode/webapp 1.17.8-beta-20260116-080047-9fdd00d3 → 1.17.8-beta-20260119-102944-6ba93a16

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 (208) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-CHVRCEwB.js → AdapterDayjs-QPUTgQRV.js} +6 -6
  4. package/dist/assets/{Add-IxR__ozX.js → Add-vvp5juzF.js} +1 -1
  5. package/dist/assets/ArrowDropDown-CZ9_k8VG.js +1 -0
  6. package/dist/assets/{Autocomplete-OhxbbTq9.js → Autocomplete-BqPV4fCq.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-CfkRwQNu.js → Breadcrumbs-DEV3jkdC.js} +1 -1
  8. package/dist/assets/{ButtonGroup--8rwLvQ8.js → ButtonGroup-BDg4XqiR.js} +1 -1
  9. package/dist/assets/{CSSTransition-D4fabzL2.js → CSSTransition-CoGzojVI.js} +1 -1
  10. package/dist/assets/{CallMerge-Di3dNXj5.js → CallMerge-C5DyJ6fm.js} +1 -1
  11. package/dist/assets/{CardContent-CPUlyd-R.js → CardContent-rjL6kB_r.js} +1 -1
  12. package/dist/assets/{ChevronLeft-lzYf4tao.js → ChevronLeft-DqSG9UHo.js} +1 -1
  13. package/dist/assets/{ChevronRight-CO-Fv8kP.js → ChevronRight-DxsEcvUg.js} +1 -1
  14. package/dist/assets/{Clear-DriUx9_Q.js → Clear-Bq2o3otF.js} +1 -1
  15. package/dist/assets/{Delete-DkHujAB7.js → Delete-RCnwfW1g.js} +1 -1
  16. package/dist/assets/{DeleteOutline-DUcJA7eO.js → DeleteOutline-BXoQnWFj.js} +1 -1
  17. package/dist/assets/{Done-B_L7rkHk.js → Done-DVQ_2sA2.js} +1 -1
  18. package/dist/assets/{Edit-DgzPfnB_.js → Edit-DVXYin_T.js} +1 -1
  19. package/dist/assets/{EditOutlined-yXcT-6A0.js → EditOutlined-CHgCULNs.js} +1 -1
  20. package/dist/assets/{ErrorOutline-B7jRfGmR.js → ErrorOutline-qdJUw5q6.js} +1 -1
  21. package/dist/assets/{FilterList-DMbHmf0X.js → FilterList-Dfj9GsZN.js} +1 -1
  22. package/dist/assets/{Google-DMfPhzx4.js → Google-BtG0IwAt.js} +1 -1
  23. package/dist/assets/{HelpOutline-Be59cdK1.js → HelpOutline-DaGemEcX.js} +1 -1
  24. package/dist/assets/{Launch-B8FfXmf_.js → Launch-BsxqWG7C.js} +1 -1
  25. package/dist/assets/{Link-wdDqdiCm.js → Link-BRsXeoEC.js} +1 -1
  26. package/dist/assets/{ListItemButton-BHNRxd8I.js → ListItemButton-kpGgMj08.js} +1 -1
  27. package/dist/assets/{ListSubheader-UFJcQfY_.js → ListSubheader-BTZwmxdp.js} +1 -1
  28. package/dist/assets/{LoadingButton-CUdpFc0p.js → LoadingButton-DZ6V6Qhe.js} +1 -1
  29. package/dist/assets/{LottiePlayer.modern-Jxnonfmi.js → LottiePlayer.modern-H3Pn2YNu.js} +1 -1
  30. package/dist/assets/{MoreVert-BVgcfW7V.js → MoreVert-DxM-B8xa.js} +1 -1
  31. package/dist/assets/{OpenInNew-CEBJXmxa.js → OpenInNew-BUUx7OSU.js} +1 -1
  32. package/dist/assets/{Refresh-DrflkqFW.js → Refresh-BV0ShuHj.js} +1 -1
  33. package/dist/assets/{Replay-qvum4SpI.js → Replay-DyvF6A5F.js} +1 -1
  34. package/dist/assets/{Search-CtujvL0H.js → Search-m3CMNGDm.js} +1 -1
  35. package/dist/assets/{Stepper-CJfsKFpi.js → Stepper-DR0cCC-q.js} +1 -1
  36. package/dist/assets/{TableSearch-CdKaHbVQ.js → TableSearch-okRl0dqT.js} +1 -1
  37. package/dist/assets/{ToggleButtonGroup-BP4C4KFu.js → ToggleButtonGroup-DxIvj50j.js} +1 -1
  38. package/dist/assets/{UnfoldMore-BvZuyACH.js → UnfoldMore-CZT-4-ZR.js} +1 -1
  39. package/dist/assets/Verified-C1aYOY3u.js +1 -0
  40. package/dist/assets/{VerifiedUser-D0ltmMtV.js → VerifiedUser-CS3FW2sd.js} +1 -1
  41. package/dist/assets/{ViewList--urcCqVt.js → ViewList-CXrUBR0t.js} +1 -1
  42. package/dist/assets/{_createAggregator-G6HCftPW.js → _createAggregator-BunO9xPF.js} +1 -1
  43. package/dist/assets/{actions-5RspfWE_.js → actions-CoszoXjw.js} +1 -1
  44. package/dist/assets/{actions-DjLoksgL.js → actions-DE2r6nPV.js} +1 -1
  45. package/dist/assets/{actions-CQAb6_Rz.js → actions-MiEliG9R.js} +1 -1
  46. package/dist/assets/{agreement-b4V3Z14P.js → agreement-CiVQRYD2.js} +1 -1
  47. package/dist/assets/api-CKaiYijO.js +1 -0
  48. package/dist/assets/{appearance-AiyB_V1W.js → appearance-DtyCmGdO.js} +1 -1
  49. package/dist/assets/{ar-BHqjWgUQ.js → ar-DOhYGTlW.js} +1 -1
  50. package/dist/assets/{audit-logs-C4Hps2ag.js → audit-logs-DQ3aFS2x.js} +2 -2
  51. package/dist/assets/{babel-sNEik07f.js → babel-yl1c6pTl.js} +1 -1
  52. package/dist/assets/{base-chart-BE2BHY3Y.js → base-chart-G_tNYsY8.js} +1 -1
  53. package/dist/assets/{blocklet-lDvdqhrX.js → blocklet-CzBGFesP.js} +1 -1
  54. package/dist/assets/{chain-BQMbjNUU.js → chain-z8CuvP-V.js} +1 -1
  55. package/dist/assets/{click-to-copy-C6h97nXy.js → click-to-copy-DXIfZNln.js} +1 -1
  56. package/dist/assets/cloneDeep-BDiWjxRu.js +1 -0
  57. package/dist/assets/config-navigation-BYqsSWyl.js +472 -0
  58. package/dist/assets/{connect-B1msLBDb.js → connect-64-QZQcE.js} +3 -3
  59. package/dist/assets/{connect-to-DeMt1m5c.js → connect-to-CeGdVeiX.js} +3 -3
  60. package/dist/assets/{de-QUGQFv2K.js → de-CtKPdGk6.js} +1 -1
  61. package/dist/assets/{delete-confirm-DyLbGAy5.js → delete-confirm-Dh3X0iXU.js} +1 -1
  62. package/dist/assets/{depsEqual-CM0PEscV.js → depsEqual-Bfsv3kHf.js} +1 -1
  63. package/dist/assets/{detail-C3fs8uRl.js → detail-C4nQbO7d.js} +2 -2
  64. package/dist/assets/{domains-CVE_fz_I.js → domains-7n5twKTf.js} +2 -2
  65. package/dist/assets/{download-f9_CnIWg.js → download-CFyTq_FK.js} +1 -1
  66. package/dist/assets/{edit.svg-Bdq-FCGM.js → edit.svg-DBlxe-2U.js} +1 -1
  67. package/dist/assets/emotion-cache.browser.esm-Cu824RS4.js +1 -0
  68. package/dist/assets/engine-Bbh7Mw-7.js +1 -0
  69. package/dist/assets/{es-C4w6cL07.js → es-BSYtSZPg.js} +1 -1
  70. package/dist/assets/{fr-Bq3UipEu.js → fr-C35fi7h9.js} +1 -1
  71. package/dist/assets/{get-safe-url-RPQVYlWr.js → get-safe-url-BTJDduf6.js} +1 -1
  72. package/dist/assets/getValidReactChildren-T3CvLHYr.js +1 -0
  73. package/dist/assets/{graphql-5mE8kB37.js → graphql-Cnx2YXBE.js} +1 -1
  74. package/dist/assets/{graphqlMode-BHMSwqwV.js → graphqlMode-7KCJGlgj.js} +2 -2
  75. package/dist/assets/{hi-DGZy0DLh.js → hi-5fpYJkiW.js} +1 -1
  76. package/dist/assets/{html-title-DE0TrRVC.js → html-title-CQe12Cut.js} +1 -1
  77. package/dist/assets/{id-DOzDilAf.js → id-DoVb0JYr.js} +1 -1
  78. package/dist/assets/{iframe-B7aYePTd.js → iframe-BWle7w_S.js} +1 -1
  79. package/dist/assets/{index-r58wskKh.js → index-AaVex2Te.js} +1 -1
  80. package/dist/assets/{index-B4azxfc8.js → index-B8JpxHJE.js} +1 -1
  81. package/dist/assets/{index-hG-7kift.js → index-BCrgfevn.js} +2 -2
  82. package/dist/assets/index-BHLEff7q.js +369 -0
  83. package/dist/assets/{index-DbRhfp5G.js → index-BMGgZI9D.js} +1 -1
  84. package/dist/assets/{index-CaLjm3Sr.js → index-BXpvvqAs.js} +1 -1
  85. package/dist/assets/{index-D7yowN9E.js → index-BcZYQGNY.js} +8 -8
  86. package/dist/assets/{index-CEn1Olzp.js → index-Bg6faJyI.js} +1 -1
  87. package/dist/assets/{index-B2xyyyAv.js → index-Bv6Ryg7V.js} +1 -1
  88. package/dist/assets/index-BzFgWQ5w.js +1 -0
  89. package/dist/assets/{index-DaEqVg3j.js → index-C73PGWD5.js} +1 -1
  90. package/dist/assets/{index-B29Pha71.js → index-C97bSDg2.js} +3 -3
  91. package/dist/assets/index-CBCPHvf_.js +102 -0
  92. package/dist/assets/{index-B1mmOd5b.js → index-CJ_aJ5dR.js} +1 -1
  93. package/dist/assets/{index-DmCKwIHx.js → index-CQob6fmR.js} +4 -4
  94. package/dist/assets/{index-BqqU8gwj.js → index-CTjBZAn9.js} +1 -1
  95. package/dist/assets/{index-2l_1Jppv.js → index-CUGajpSS.js} +3 -3
  96. package/dist/assets/{index-CWB_ryH-.js → index-CXEKSKL7.js} +1 -1
  97. package/dist/assets/{index-BgYMQ-SO.js → index-ChmYDkPv.js} +2 -2
  98. package/dist/assets/{index-QndNtIi-.js → index-CoHxWTi-.js} +1 -1
  99. package/dist/assets/{index-9co-KaYp.js → index-D42m9V9f.js} +9 -9
  100. package/dist/assets/{index-EzJJEvjR.js → index-D4yrNQ5O.js} +3 -3
  101. package/dist/assets/{index-CPZ5M8hw.js → index-DBtWMsht.js} +1 -1
  102. package/dist/assets/{index-DaVz8byr.js → index-DHLFobHl.js} +3 -3
  103. package/dist/assets/{index-nVFW1KOC.js → index-DJt6Q1WW.js} +1 -1
  104. package/dist/assets/{index-BtOLGXbe.js → index-DSG25x4F.js} +1 -1
  105. package/dist/assets/{index-BfetuCUm.js → index-DTVaw2Hc.js} +4 -4
  106. package/dist/assets/{index-BfQLSa8k.js → index-DUEj1V-j.js} +1 -1
  107. package/dist/assets/{index-Cmj8zxd_.js → index-DVR29wYi.js} +14 -14
  108. package/dist/assets/index-Denq1UAZ.js +20 -0
  109. package/dist/assets/{index-BcjR7La5.js → index-DfCxzzye.js} +1 -1
  110. package/dist/assets/{index-Beek8Qoq.js → index-DftYcsPB.js} +6 -6
  111. package/dist/assets/{index-B0oOTjeC.js → index-DqCVCPmC.js} +1 -1
  112. package/dist/assets/{index-BIgX2N1A.js → index-DrI_kbUr.js} +6 -6
  113. package/dist/assets/{index-ByymZrPq.js → index-DtIwM7gL.js} +2 -2
  114. package/dist/assets/{index-BBu-RTSN.js → index-DyNVa2Lx.js} +1 -1
  115. package/dist/assets/{index-DYd4YT_K.js → index-G-jrPGsm.js} +1 -1
  116. package/dist/assets/{index-BX6YpiBs.js → index-Ii4Xi_du.js} +2 -2
  117. package/dist/assets/{index-BZ5rC2Lk.js → index-P2FBSyZf.js} +1 -1
  118. package/dist/assets/{index-Ca61GFb8.js → index-dCiAdDNg.js} +1 -1
  119. package/dist/assets/{index-Bm8Rp86x.js → index-kSplQjj2.js} +1 -1
  120. package/dist/assets/{index-82LLl9rh.js → index-nmsk2vjw.js} +2 -2
  121. package/dist/assets/{index-CVpBdzTr.js → index-nsujgMc_.js} +1 -1
  122. package/dist/assets/{index-D3SOJZGy.js → index-u76kHZTc.js} +3 -3
  123. package/dist/assets/{index-gwhKA5OT.js → index-xtzr7R_I.js} +1 -1
  124. package/dist/assets/{index.esm-C5mhDUsD.js → index.esm-iaB2Jgy_.js} +1 -1
  125. package/dist/assets/{install-from-url-DPdbO0Jq.js → install-from-url-CzhDO2C0.js} +1 -1
  126. package/dist/assets/{invitation-3RtS1iUK.js → invitation-C3HrxXln.js} +2 -2
  127. package/dist/assets/is-path-prefix-equal-dPdZJpAg.js +1 -0
  128. package/dist/assets/{isEmail-apFH2MvD.js → isEmail-CmCW4Fgq.js} +1 -1
  129. package/dist/assets/item-C6yFM2Os.js +163 -0
  130. package/dist/assets/{ja-DMq-YXDX.js → ja-DZPUwZ9l.js} +1 -1
  131. package/dist/assets/{jsonMode-RjxYywbi.js → jsonMode-BRueWwe6.js} +1 -1
  132. package/dist/assets/{ko-BrYbXurh.js → ko-q4i4r9g6.js} +1 -1
  133. package/dist/assets/{list-header-BNS6BF2P.js → list-header-s21LDuvb.js} +1 -1
  134. package/dist/assets/{lite-C-Ikw2GQ.js → lite-BBz66z5Z.js} +2 -2
  135. package/dist/assets/{lock.svg-BFdqOrkF.js → lock.svg-DK1hXFWn.js} +1 -1
  136. package/dist/assets/{log-DZlkZyGX.js → log-DRaCmTGd.js} +1 -1
  137. package/dist/assets/{login-method-item-ZVrK6tB1.js → login-method-item-DwSmGt8t.js} +1 -1
  138. package/dist/assets/{lottie-react.esm-A7yQ3Nfv.js → lottie-react.esm-DqwAKW0L.js} +1 -1
  139. package/dist/assets/{memory-CoCFCBkX.js → memory-VAHG3fjG.js} +1 -1
  140. package/dist/assets/{metric-B3S53u3H.js → metric-B6TET6QI.js} +1 -1
  141. package/dist/assets/{monaco-editor-CQ6Pm7Hi.js → monaco-editor-BH4xSgKB.js} +3 -3
  142. package/dist/assets/{mouseTarget-DxlEpFaz.js → mouseTarget-txK7mk_L.js} +1 -1
  143. package/dist/assets/omit-B-qG4p98.js +1 -0
  144. package/dist/assets/{overview-z9AW_vcO.js → overview-D3hqR9Yg.js} +1 -1
  145. package/dist/assets/{permission-C_g43OOf.js → permission-DET008IY.js} +1 -1
  146. package/dist/assets/{preference-1qTmAvHN.js → preference-pxwdMSFg.js} +8 -8
  147. package/dist/assets/{provider-icon-CoJ5ERXe.js → provider-icon-CCZmjsDZ.js} +1 -1
  148. package/dist/assets/{pt-Dl6732JN.js → pt-BFCHl6F1.js} +1 -1
  149. package/dist/assets/{raf-schd.esm-CU1FaTjd.js → raf-schd.esm-BuSKwIfR.js} +1 -1
  150. package/dist/assets/{rotate-session-key-CQOBWeRr.js → rotate-session-key-DE58Q8ag.js} +1 -1
  151. package/dist/assets/{ru-CVUeN9AX.js → ru-CSTl62kK.js} +1 -1
  152. package/dist/assets/runtime-b4EXN3II.js +1 -0
  153. package/dist/assets/schema-DE6tzaXQ.js +1 -0
  154. package/dist/assets/sdk-CxXstbZm.js +1 -0
  155. package/dist/assets/{service-iJdsq1ul.js → service-BpzqSJv4.js} +1 -1
  156. package/dist/assets/{shorten-label-CCnq_MUQ.js → shorten-label-PYNmzpP_.js} +1 -1
  157. package/dist/assets/{simple-select-0S1qRvRS.js → simple-select-BiJQdJOQ.js} +1 -1
  158. package/dist/assets/{spaces-BbUa6G9F.js → spaces-MVFShLV4.js} +1 -1
  159. package/dist/assets/{status-g0Lvwqad.js → status-LmBdrnlB.js} +1 -1
  160. package/dist/assets/{status-B4gHBixJ.js → status-UZAIOWNB.js} +1 -1
  161. package/dist/assets/{switch-control-CwXplLu0.js → switch-control-CE57fLeM.js} +1 -1
  162. package/dist/assets/{table-icons-BwS2Y2wV.js → table-icons-BG66cxZv.js} +1 -1
  163. package/dist/assets/{team-DETQHkho.js → team-DgQYntrc.js} +1 -1
  164. package/dist/assets/{th-32eBNQes.js → th-D75Dlluo.js} +1 -1
  165. package/dist/assets/{toLower-oQZ3J7Wi.js → toLower-DBVF4v1M.js} +1 -1
  166. package/dist/assets/toUpper-RYfZ9dsZ.js +1 -0
  167. package/dist/assets/{traffic-Cqk5X-Ty.js → traffic-7oEMp-9f.js} +1 -1
  168. package/dist/assets/trim-Dm26Hw3f.js +1 -0
  169. package/dist/assets/{url-evaluation-DyzOKILN.js → url-evaluation-CTsNt3ve.js} +1 -1
  170. package/dist/assets/{url-join-BM9fQWnd.js → url-join-oxVMh_nl.js} +1 -1
  171. package/dist/assets/{use-mobile-23djKzeO.js → use-mobile-BS_f_Fn7.js} +1 -1
  172. package/dist/assets/{use-mobile-BmaqHxmL.js → use-mobile-Czu8FCYf.js} +1 -1
  173. package/dist/assets/{useAsync-DtsKmLYR.js → useAsync-sbHIoH6-.js} +1 -1
  174. package/dist/assets/{useAsyncRetry-bd8YRPLB.js → useAsyncRetry-CCLyjAGj.js} +1 -1
  175. package/dist/assets/{useLocalStorage-Cf0vlWCe.js → useLocalStorage-CnqCtMp_.js} +1 -1
  176. package/dist/assets/{useThemeProps-CSqQ3Rdj.js → useThemeProps-DrXM-hmA.js} +1 -1
  177. package/dist/assets/{util-w8OtW6iJ.js → util-odWrmhcv.js} +1 -1
  178. package/dist/assets/{vi-DF8IinAc.js → vi-D1mKYrmb.js} +1 -1
  179. package/dist/assets/{wait-container-CoMsFqPE.js → wait-container-D_OCwH7P.js} +1 -1
  180. package/dist/assets/{without-wallet-U-jwKDa8.js → without-wallet-suCG1vjR.js} +1 -1
  181. package/dist/assets/wrap-locale-C0daq2dx.js +1 -0
  182. package/dist/assets/{zh-ByJkLAV1.js → zh-G2I44gfs.js} +1 -1
  183. package/dist/assets/{zh-tw-34G9tsUP.js → zh-tw-C4Juvs-i.js} +1 -1
  184. package/dist/index.html +1 -1
  185. package/package.json +1 -1
  186. package/dist/assets/ArrowDropDown-BLLloj8o.js +0 -1
  187. package/dist/assets/KeyboardArrowDown-Dlq5aN05.js +0 -1
  188. package/dist/assets/Verified-BAR-FN7O.js +0 -1
  189. package/dist/assets/api-Bv3RStR2.js +0 -1
  190. package/dist/assets/cloneDeep-CheRvpcx.js +0 -1
  191. package/dist/assets/config-navigation-D55MBXAB.js +0 -472
  192. package/dist/assets/emotion-cache.browser.esm-DxLNiXj3.js +0 -1
  193. package/dist/assets/engine-DGEfu7n8.js +0 -1
  194. package/dist/assets/getValidReactChildren-CVyZy5bG.js +0 -1
  195. package/dist/assets/index-CckoDRE8.js +0 -1
  196. package/dist/assets/index-DciiOEW2.js +0 -20
  197. package/dist/assets/index-Duu5UY8_.js +0 -1
  198. package/dist/assets/index-DxkMGrHs.js +0 -358
  199. package/dist/assets/index-K5eCanEK.js +0 -102
  200. package/dist/assets/is-path-prefix-equal-Cc6vYZ8N.js +0 -1
  201. package/dist/assets/item-BinI3jhy.js +0 -163
  202. package/dist/assets/omit-Bk5eP-SH.js +0 -1
  203. package/dist/assets/runtime-CVva7EgW.js +0 -1
  204. package/dist/assets/schema-7NDYbay9.js +0 -1
  205. package/dist/assets/sdk-Dvt1785F.js +0 -1
  206. package/dist/assets/toUpper-lxerpjTR.js +0 -1
  207. package/dist/assets/trim-D7km596D.js +0 -1
  208. package/dist/assets/wrap-locale-DxhU5ODE.js +0 -1
@@ -1,472 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-D3SOJZGy.js","./index-BIgX2N1A.js","./index-BLDnEtdF.css","./url-join-BM9fQWnd.js","./index-CEn1Olzp.js","./_createAggregator-G6HCftPW.js","./depsEqual-CM0PEscV.js","./index-DaEqVg3j.js","./index-D29L5UKE.js","./toUpper-lxerpjTR.js","./index-_3Fxot8G.css"])))=>i.map(i=>d[i]);
2
- import{aZ as wp,aY as Cp,r as v,$ as Ip,a0 as Rp,j as g,a3 as Ze,a4 as ft,a5 as _p,hW as Dp,hX as Tp,B as X,P as Fe,hY as Ep,ao as Qr,hZ as kp,ab as nt,V as Pe,k as re,fO as Zr,bH as De,h_ as Pp,bM as vc,h8 as Op,h$ as Np,i0 as Ap,eP as Mp,eH as mc,eI as Lp,eF as zp,eG as jp,eK as bc,ai as ei,i1 as Fp,f6 as Bp,eV as $p,i2 as Gp,ds as Wp,dr as Hp,dn as yc,i3 as Up,hc as Vp,ar as qp,f7 as Kp,gP as Yp,ev as ot,y as Te,b5 as Gt,dv as zt,aU as Jp,fz as Xp,g9 as Qp,l as xe,am as Ve,aP as Zp,fs as Tr,ah as yr,cD as xc,fr as eh,i4 as th,ft as Sc,bo as ti,c0 as rh,cb as q,c9 as ar,W as Q,i5 as wc,o as S,c7 as ri,el as Ha,f8 as jo,i6 as Fo,cy as nr,X as Se,dZ as nh,ap as Bo,aq as Qt,K as ue,av as We,eT as eo,aB as _t,i7 as ih,aS as Cc,al as en,i8 as oh,i9 as ah,au as pt,fn as Ln,ad as lh,fB as Ic,C as Rc,I as sh,ia as to,by as $o,aT as ch,an as _c,H as Lt,F as Dc,cq as Tc,bD as zn,be as uh,bc as dh,hQ as Ec,bb as Ar,cU as fh,cV as ph,ib as Ua,ic as kc,id as hh,ie as gh,ck as vh,cm as mh,cn as bh,fK as ni,gq as yh,gI as xh,gb as Sh,fv as wh,ig as jn,ih as Pc,aC as Oc,R as Nc,ii as Va,ij as Ac,ik as ro,fc as Ch,il as Ih,t as fr,im as Rh,es as _h,cx as Mc,io as Dh,bK as Th,ip as Eh,af as tt,cr as kh,at as Ph,i as Oh,iq as Nh,ax as Ah,ay as qa,M as Fn,aA as Ka,ir as Mh,is as Lh,it as zh,fX as jh,iu as Lc,iv as Fh,cR as zc,en as jc,iw as Go,gU as Fc,ix as Bh,ba as $h,cC as Zt,iy as Gh,iz as Bc,Q as _n,bv as Bn,fT as Wh,fq as Hh,cw as Wo,iA as Uh,hU as Vh,iB as $c,aD as qh,iC as Kh,ei as Yh,iD as Jh,T as Xh,bz as Ya,hV as Ja,iE as Qh,ew as Gc,bF as Xa,iF as Qa,aN as Zh,S as Za}from"./index-BIgX2N1A.js";import{r as eg}from"./omit-Bk5eP-SH.js";import{r as tg}from"./cloneDeep-CheRvpcx.js";import{r as rg}from"./index-CEn1Olzp.js";import{c as ng,u as ig}from"./_createAggregator-G6HCftPW.js";import{u as Wt}from"./blocklet-lDvdqhrX.js";import{r as og,b as ag,c as lg,d as sg,e as el,D as cg,H as ug}from"./index-Bm8Rp86x.js";import{_ as Be,a as we,b as Ie,c as $e,d as he,e as dg,f as Wc,u as de,g as oe,r as Gr,w as $n,h as Hc,i as Ht,j as Uc,k as fg,l as pg,o as no}from"./raf-schd.esm-CU1FaTjd.js";import{_ as M,b as tl,c as hg,a as gg,d as vg}from"./redux-Ab4buSXY.js";import{_ as Vc}from"./typeof-QjJsDpFa.js";import{a as qc,b as mg}from"./team-DETQHkho.js";import{a as bg}from"./actions-DjLoksgL.js";import{u as yg,a as xg,C as vt}from"./index.esm-C5mhDUsD.js";import{S as io}from"./simple-select-0S1qRvRS.js";import{a as Sg,b as rl,T as wg}from"./html-title-DE0TrRVC.js";import{C as Kc}from"./Clear-DriUx9_Q.js";import{A as Cg}from"./ArrowDropDown-BLLloj8o.js";import{a as Ig}from"./api-Bv3RStR2.js";import{A as Rg}from"./Autocomplete-OhxbbTq9.js";import{L as _g}from"./ListItemButton-BHNRxd8I.js";import{u as Yc}from"./use-mobile-BmaqHxmL.js";import{u as Dg}from"./index-CckoDRE8.js";import{d as Tg}from"./KeyboardArrowDown-Dlq5aN05.js";import{S as Eg}from"./Search-CtujvL0H.js";import{A as kg}from"./Add-IxR__ozX.js";import{O as Pg}from"./OpenInNew-CEBJXmxa.js";import{t as Og}from"./index-Duu5UY8_.js";import{I as Ng}from"./iframe-B7aYePTd.js";import{B as yi}from"./ButtonGroup--8rwLvQ8.js";import{L as nl}from"./LoadingButton-CUdpFc0p.js";import"./depsEqual-CM0PEscV.js";import"./url-evaluation-DyzOKILN.js";import"./useLocalStorage-Cf0vlWCe.js";import"./MoreVert-BVgcfW7V.js";import"./DeleteOutline-DUcJA7eO.js";import"./get-safe-url-RPQVYlWr.js";import"./permission-C_g43OOf.js";import"./ListSubheader-UFJcQfY_.js";import"./getValidReactChildren-CVyZy5bG.js";function Ag(e){return wp("MuiListItemAvatar",e)}Cp("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Mg=e=>{const{alignItems:t,classes:n}=e;return _p({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Ag,n)},Lg=Ze("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}),il=v.forwardRef(function(t,n){const r=Ip({props:t,name:"MuiListItemAvatar"}),{className:i,...o}=r,a=v.useContext(Rp),l={...r,alignItems:a.alignItems},s=Mg(l);return g.jsx(Lg,{className:ft(s.root,i),ownerState:l,ref:n,...o})});var zg=Dp(function(){return Tp?sessionStorage:void 0});const jg=Fe(X)`
3
- padding: 16px 24px;
4
- border-radius: 8px;
5
- background-color: ${({theme:e})=>e.palette.background.paper};
6
- cursor: auto;
7
-
8
- .group-label {
9
- margin-bottom: 8px;
10
- color: ${({theme:e})=>e.palette.grey[600]};
11
- font-size: 12px;
12
- }
13
-
14
- .nav {
15
- list-style: none;
16
- margin: 0;
17
- padding: 0;
18
- }
19
- `;function Fg({label:e,children:t,className:n="",sx:r,...i}){return g.jsxs(jg,{className:`nav-menu-sub-item-group ${n}`,sx:{...r},...i,children:[g.jsx(X,{className:"group-label",children:e}),g.jsx(X,{component:"ul",className:"nav",children:t})]})}const Bg=e=>v.createElement("svg",{width:120,height:120,viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{opacity:.8,d:"M14.291 102.867c0 3.431 3.59 5.18 5.74 2.796l54.861-60.857-15.332-31.49H14.291v89.551z",fill:"url(#a)"}),v.createElement("path",{opacity:.8,d:"M105.709 17.849c0-3.429-3.585-5.178-5.736-2.8l-54.87 60.709 15.337 31.489h45.269V17.849z",fill:"url(#b)"}),v.createElement("path",{opacity:.8,d:"m105.709 107.247-45.867-93.93h-45.55l46.148 93.93h45.269z",fill:"url(#c)"}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:58.95,y1:13.563,x2:1.148,y2:99.881,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#FF44B4"}),v.createElement("stop",{offset:1,stopColor:"#FFAB48"})),v.createElement("linearGradient",{id:"b",x1:105.788,y1:13.563,x2:48.861,y2:100.72,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#44B3FF"}),v.createElement("stop",{offset:1,stopColor:"#A448FF"})),v.createElement("linearGradient",{id:"c",x1:38.636,y1:11.296,x2:95.518,y2:102.845,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#FF44A9"}),v.createElement("stop",{offset:1,stopColor:"#7452FA"})))),$g=e=>v.createElement("svg",{width:120,height:120,viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("g",{clipPath:"url(#a)"},v.createElement("rect",{width:98,height:98,rx:16,transform:"matrix(1 0 0 -1 11 109)",fill:"url(#b)"}),v.createElement("g",{filter:"url(#c)"},v.createElement("path",{d:"M60 80V40c-11.04 0-20 8.96-20 20s8.96 20 20 20z",fill:"#fff",fillOpacity:.36,shapeRendering:"crispEdges"})),v.createElement("path",{d:"M60 100c-22.08 0-40-17.92-40-40s17.92-40 40-40 40 17.92 40 40-17.92 40-40 40zm0-60c-11.04 0-20 8.96-20 20s8.96 20 20 20 20-8.96 20-20-8.96-20-20-20z",fill:"url(#d)",style:{mixBlendMode:"plus-lighter"}})),v.createElement("defs",null,v.createElement("linearGradient",{id:"b",x1:7.273,y1:7.273,x2:90.152,y2:90.152,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#2563EB"}),v.createElement("stop",{offset:.333,stopColor:"#2998FF"}),v.createElement("stop",{offset:.667,stopColor:"#48E0A1"}),v.createElement("stop",{offset:1,stopColor:"#9BEF2F"})),v.createElement("linearGradient",{id:"d",x1:60,y1:100,x2:60,y2:20,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#C4C4C4"}),v.createElement("stop",{offset:1,stopColor:"#7D7D7D"})),v.createElement("clipPath",{id:"a"},v.createElement("rect",{width:98,height:98,rx:16,transform:"matrix(1 0 0 -1 11 109)",fill:"#fff"})),v.createElement("filter",{id:"c",x:-20,y:-20,width:140,height:160,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},v.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),v.createElement("feGaussianBlur",{in:"BackgroundImageFix",stdDeviation:30}),v.createElement("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_3296_9356"}),v.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),v.createElement("feOffset",{dx:20}),v.createElement("feGaussianBlur",{stdDeviation:20}),v.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),v.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.404508 0 0 0 0 0.283156 0 0 0 0.2 0"}),v.createElement("feBlend",{in2:"effect1_backgroundBlur_3296_9356",result:"effect2_dropShadow_3296_9356"}),v.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),v.createElement("feOffset",{dx:10}),v.createElement("feGaussianBlur",{stdDeviation:10}),v.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),v.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.404508 0 0 0 0 0.283156 0 0 0 0.05 0"}),v.createElement("feBlend",{in2:"effect2_dropShadow_3296_9356",result:"effect3_dropShadow_3296_9356"}),v.createElement("feBlend",{in:"SourceGraphic",in2:"effect3_dropShadow_3296_9356",result:"shape"})))),Gg=e=>v.createElement("svg",{width:40,height:39,viewBox:"0 0 40 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{d:"m10.247 20.67-3.824-1.655c-.548-.22-.87-.62-.966-1.2-.096-.58.061-1.076.472-1.49l5.182-5.214a3.29 3.29 0 0 1 1.357-.828 3.156 3.156 0 0 1 1.604-.083l2.138.455c-1.453 1.739-2.611 3.318-3.475 4.74-.863 1.42-1.693 3.179-2.488 5.276zm24.18-16.14c.219 0 .438.055.658.166a2.174 2.174 0 0 1 .987.993c.11.22.164.441.164.662.11 2.566-.432 5.229-1.624 7.988-1.193 2.759-2.872 5.228-5.038 7.408-1.48 1.49-2.905 2.683-4.276 3.58-1.37.897-2.988 1.745-4.853 2.545-.356.138-.72.207-1.09.207-.37 0-.692-.138-.966-.414l-5.14-5.173a1.336 1.336 0 0 1-.411-.973c0-.372.068-.738.206-1.096.795-1.849 1.637-3.47 2.528-4.863.892-1.394 2.077-2.835 3.558-4.325 2.165-2.18 4.619-3.87 7.36-5.07 2.742-1.2 5.387-1.745 7.937-1.635zM23.982 16.863c.63.635 1.405.952 2.323.952.919 0 1.693-.317 2.324-.952.63-.634.945-1.414.945-2.338 0-.924-.315-1.704-.945-2.338-.63-.635-1.405-.952-2.324-.952-.918 0-1.693.317-2.323.952-.63.634-.946 1.414-.946 2.338 0 .924.315 1.704.946 2.338zm-3.783 13.824c2.083-.8 3.838-1.635 5.263-2.504 1.426-.87 3.002-2.035 4.73-3.497l.41 2.152c.11.552.083 1.096-.082 1.634-.164.538-.438 1-.822 1.387l-5.182 5.215c-.41.413-.904.565-1.48.455-.576-.11-.973-.442-1.193-.993l-1.644-3.85zm-13.365-3.56c.955-.965 2.121-1.455 3.499-1.469 1.378-.014 2.544.462 3.499 1.428.955.966 1.432 2.138 1.432 3.518s-.48 2.552-1.44 3.518c-.685.69-1.83 1.283-3.433 1.78-1.604.496-3.817.938-6.641 1.324.384-2.842.822-5.065 1.316-6.667.493-1.603 1.083-2.747 1.768-3.432z",fill:"url(#a)"}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:34.187,y1:7.487,x2:7.292,y2:34.082,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#74D5D6"}),v.createElement("stop",{offset:1,stopColor:"#56AFBE"})))),Wg=e=>v.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{d:"M9.171 36a3.067 3.067 0 0 1-2.24-.923C6.312 34.46 6 33.72 6 32.857V14c0-.864.31-1.604.932-2.22a3.067 3.067 0 0 1 2.24-.923h3.17c0-2.174.773-4.027 2.32-5.559C16.206 3.766 18.076 3 20.27 3c2.194 0 4.063.766 5.61 2.298 1.545 1.532 2.318 3.385 2.318 5.56h3.171a3.07 3.07 0 0 1 2.24.922c.621.616.931 1.356.931 2.22v18.857c0 .864-.31 1.604-.931 2.22a3.067 3.067 0 0 1-2.24.923H9.171zm6.343-25.143h9.513c0-1.31-.463-2.422-1.387-3.34-.925-.916-2.049-1.374-3.37-1.374-1.321 0-2.444.458-3.37 1.375-.924.917-1.386 2.03-1.386 3.34zM20.23 23.43c1.955 0 3.726-.642 5.311-1.925 1.586-1.284 2.366-2.724 2.34-4.322a1.62 1.62 0 0 0-.437-1.14 1.445 1.445 0 0 0-1.11-.47c-.37 0-.7.117-.99.353-.291.236-.503.59-.635 1.06a4.367 4.367 0 0 1-1.705 2.397c-.845.602-1.77.904-2.774.904-1.005 0-1.936-.302-2.795-.904-.859-.602-1.42-1.401-1.685-2.396-.132-.498-.33-.858-.594-1.08a1.428 1.428 0 0 0-.952-.335c-.449 0-.825.158-1.13.472a1.58 1.58 0 0 0-.455 1.14c0 1.597.78 3.037 2.339 4.32 1.559 1.284 3.316 1.926 5.272 1.926z",fill:"url(#a)"}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:12.342,y1:13.214,x2:36.685,y2:39.361,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#FF73B2"}),v.createElement("stop",{offset:.333,stopColor:"#E9ED7D"}),v.createElement("stop",{offset:.557,stopColor:"#74E583"}),v.createElement("stop",{offset:1,stopColor:"#01ACC8"})))),Hg=e=>v.createElement("svg",{width:120,height:120,viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("mask",{id:"a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:120,height:120},v.createElement("path",{fill:"#fff",d:"M0 0h119.883v119.883H0z"})),v.createElement("g",{mask:"url(#a)"},v.createElement("path",{d:"M62.025 14.05A5.05 5.05 0 0 1 67.075 9h23.988a5.05 5.05 0 0 1 5.05 5.05v60.6a5.05 5.05 0 0 1-5.05 5.05H67.075a5.05 5.05 0 0 1-5.05-5.05v-60.6z",fill:"url(#b)"}),v.createElement("path",{d:"M24.15 32.987a5.05 5.05 0 0 1 5.05-5.05h40.4a5.05 5.05 0 0 1 5.05 5.05V74.65a5.05 5.05 0 0 1-5.05 5.05H29.2a5.05 5.05 0 0 1-5.05-5.05V32.987z",fill:"url(#c)"}),v.createElement("g",{filter:"url(#d)"},v.createElement("path",{d:"M16.575 64.55c0-5.578 4.522-10.1 10.1-10.1h64.388c5.578 0 10.1 4.522 10.1 10.1V99.9c0 5.578-4.522 10.1-10.1 10.1H26.675c-5.578 0-10.1-4.522-10.1-10.1V64.55z",fill:"url(#e)"})),v.createElement("g",{filter:"url(#f)"},v.createElement("path",{d:"M10.263 55.712a7.575 7.575 0 0 1 7.575-7.575H99.9a7.575 7.575 0 0 1 7.575 7.575v10.1a7.575 7.575 0 0 1-7.575 7.575H17.838a7.575 7.575 0 0 1-7.575-7.575v-10.1z",fill:"url(#g)"})),v.createElement("circle",{cx:58.869,cy:87.906,r:6.944,fill:"#6BADFF"})),v.createElement("defs",null,v.createElement("linearGradient",{id:"b",x1:86.013,y1:9,x2:86.644,y2:46.875,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#FF7575"}),v.createElement("stop",{offset:1,stopColor:"#C91C1C"})),v.createElement("linearGradient",{id:"c",x1:49.4,y1:56.975,x2:49.4,y2:27.938,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#ED7F1A"}),v.createElement("stop",{offset:1,stopColor:"#FFE074"})),v.createElement("linearGradient",{id:"e",x1:16.575,y1:75.281,x2:101.163,y2:114.419,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#54A0FD"}),v.createElement("stop",{offset:1,stopColor:"#136EDE"})),v.createElement("linearGradient",{id:"g",x1:16.575,y1:55.712,x2:58.789,y2:111.945,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#83BAFF"}),v.createElement("stop",{offset:1,stopColor:"#2482F6"})),v.createElement("filter",{id:"d",x:16.575,y:54.45,width:86.587,height:57.55,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},v.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),v.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),v.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),v.createElement("feMorphology",{radius:4,in:"SourceAlpha",result:"effect1_innerShadow_3296_9286"}),v.createElement("feOffset",{dx:2,dy:2}),v.createElement("feGaussianBlur",{stdDeviation:3}),v.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:-1,k3:1}),v.createElement("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.25 0"}),v.createElement("feBlend",{in2:"shape",result:"effect1_innerShadow_3296_9286"})),v.createElement("filter",{id:"f",x:10.263,y:48.138,width:99.212,height:27.25,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},v.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),v.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),v.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),v.createElement("feMorphology",{radius:4,in:"SourceAlpha",result:"effect1_innerShadow_3296_9286"}),v.createElement("feOffset",{dx:2,dy:2}),v.createElement("feGaussianBlur",{stdDeviation:3}),v.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:-1,k3:1}),v.createElement("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.25 0"}),v.createElement("feBlend",{in2:"shape",result:"effect1_innerShadow_3296_9286"})))),Ug=e=>v.createElement("svg",{width:68,height:68,viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("mask",{id:"c",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:4,y:3,width:59,height:62},v.createElement("path",{d:"M33.974 4.067 33.858 4l-.117.067-17.174 9.916-.117.068v13.187L5.117 33.78 5 33.848V53.95l.117.067 17.174 9.916.117.067.117-.067 11.303-6.527.03.017.03-.017 11.303 6.527.117.067.116-.067L62.6 54.017l.117-.068v-20.1l-.117-.067-11.333-6.543V14.05l-.117-.068-17.175-9.916zm15.037 11.286V25.97l-15.037-8.681-.116-.068-.117.067-15.036 8.682V15.353l15.153-8.749 15.153 8.749zm-3.703 46.043-9.166-5.292L51.15 47.44l.117-.067V29.842l9.195 5.309v17.496l-15.153 8.749zM16.566 47.44l15.007 8.664-9.165 5.292-15.153-8.749V35.151l9.195-5.309v17.531l.116.067zM32.73 35.37l-12.897-7.447 12.897-7.447V35.37zm-14.025 9.399V29.876l12.898 7.446-12.898 7.447zm16.28 9.4V39.274l12.898 7.447-12.898 7.446zm14.026-24.293v14.893l-12.898-7.447 12.898-7.446zm-16.28 9.4v14.892l-12.898-7.446 12.897-7.447zm2.254-3.907V20.476l12.898 7.447-12.898 7.446z",fill:"url(#a)",stroke:"url(#b)",strokeWidth:.5})),v.createElement("g",{mask:"url(#c)"},v.createElement("path",{d:"M68 0H0v68h68V0z",fill:"url(#d)"})),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:36.103,y1:-30.336,x2:-29.543,y2:21.525,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})),v.createElement("linearGradient",{id:"b",x1:37.6,y1:-67.429,x2:-62.714,y2:20.675,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})),v.createElement("linearGradient",{id:"d",x1:38.445,y1:-81.994,x2:-76.754,y2:23.094,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})))),Vg=e=>v.createElement("svg",{width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("mask",{id:"a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:8,y:8,width:184,height:184},v.createElement("path",{d:"M192 100c0-50.81-41.19-92-92-92S8 49.19 8 100s41.19 92 92 92 92-41.19 92-92z",fill:"#fff"})),v.createElement("g",{mask:"url(#a)"},v.createElement("path",{d:"M192 100c0-50.81-41.19-92-92-92S8 49.19 8 100s41.19 92 92 92 92-41.19 92-92z",fill:"#fff"}),v.createElement("path",{d:"M192 8H8v184h184V8z",fill:"url(#b)"}),v.createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M98.06 97.074v2.23l-1.942 1.115L40.2 132.536l1.941 3.344L100 102.648l57.859 33.232 1.941-3.344-55.918-32.117-1.941-1.115V32.84h-3.882v64.234z",fill:"#fff"}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m100.404 28.62 62.156 35.886v71.771l-62.156 35.886-62.155-35.886V64.506l62.155-35.886zM44.076 65.627l38.653 22.317 17.676-30.615 17.675 30.614 38.653-22.316-56.329-32.52-56.328 32.52zm114.599 3.364-38.653 22.317 17.676 30.615-35.351 20.41v24.223l56.328-32.522V68.991zm-60.213 97.565v-24.223l-35.35-20.41 17.675-30.615L42.133 68.99v65.043l56.329 32.522zM84.15 93.25l-15.733 27.251 30.045 17.346v-36.335l-1.942-1.121-12.37-7.14zm18.197 44.597 30.043-17.346-15.733-27.25-12.368 7.14-1.942 1.121v36.335zm12.368-47.96-14.311-24.789-14.311 24.788 14.311 8.263 14.311-8.263z",fill:"#fff"})),v.createElement("defs",null,v.createElement("linearGradient",{id:"b",x1:100,y1:-84,x2:-84,y2:100,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})))),qg=e=>v.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("g",{clipPath:"url(#a)"},v.createElement("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:40,height:40},v.createElement("path",{d:"M40 0H0v40h40V0z",fill:"#D9D9D9"})),v.createElement("g",{mask:"url(#b)"},v.createElement("path",{d:"M11.917 8.278c-.733 0-1.356.256-1.87.77a2.545 2.545 0 0 0-.77 1.869c0 .733.257 1.356.77 1.869.514.513 1.137.77 1.87.77.733 0 1.356-.257 1.869-.77.513-.513.77-1.136.77-1.87 0-.732-.257-1.355-.77-1.869a2.545 2.545 0 0 0-1.87-.77zm0 17.592c-.733 0-1.356.257-1.87.77a2.545 2.545 0 0 0-.77 1.87c0 .732.257 1.355.77 1.868.514.514 1.137.77 1.87.77.733 0 1.356-.256 1.869-.77.513-.513.77-1.136.77-1.869 0-.733-.257-1.356-.77-1.869a2.545 2.545 0 0 0-1.87-.77zM5.759 3h28.148c.499 0 .917.169 1.254.506.337.337.506.755.506 1.253v12.315c0 .498-.169.916-.506 1.254a1.703 1.703 0 0 1-1.254.505H5.76c-.498 0-.916-.168-1.253-.505A1.703 1.703 0 0 1 4 17.074V4.76c0-.498.169-.916.506-1.253A1.702 1.702 0 0 1 5.759 3zm0 17.593h28.148c.499 0 .917.168 1.254.505.337.338.506.756.506 1.254v12.315c0 .498-.169.916-.506 1.253a1.702 1.702 0 0 1-1.254.506H5.76c-.498 0-.916-.169-1.253-.506A1.702 1.702 0 0 1 4 34.667V22.352c0-.498.169-.916.506-1.254a1.702 1.702 0 0 1 1.253-.505z",fill:"url(#c)"}))),v.createElement("defs",null,v.createElement("linearGradient",{id:"c",x1:4,y1:19.713,x2:35.667,y2:19.713,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#2FD99C"}),v.createElement("stop",{offset:1,stopColor:"#8CE598"})),v.createElement("clipPath",{id:"a"},v.createElement("path",{fill:"#fff",d:"M0 0h40v40H0z"})))),Kg=e=>v.createElement("svg",{width:420,height:420,viewBox:"0 0 420 420",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{d:"M210.205 17.143V210m0 0 166.667 96.19M210.205 210 44.967 305.238",stroke:"url(#a)",strokeOpacity:.6,strokeWidth:18}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m247.638 178.49-37.433 21.613-37.284-21.527 27.416-47.8 1.297-2.26 8.571-14.945 8.571 14.866 1.337 2.316 27.525 47.737zm14.846-8.571-37.428-64.911-14.89-25.824-14.832 25.858-37.26 64.963-95.36-55.056 147.491-85.154 147.49 85.154-95.211 54.97zm-6.283 23.423-37.425 21.607v86.295l66.189-38.2 8.573-4.949-8.552-14.832-28.785-49.921zm-37.425 127.694 83.332-48.093 14.841-8.566-8.56-14.845-37.342-64.762 95.22-54.975v170.308l-147.491 85.153v-64.22zm-17.142-19.885v-86.202l-37.242-21.501-28.33 49.392-8.476 14.779 8.497 4.995 65.551 38.537zm-52.088-116.275-36.831 64.214-8.438 14.712 14.621 8.595 82.619 48.572.117.068v64.219L54.143 300.103V129.795l95.403 55.081zM210.205 10 45.571 105.051 37 110v200l164.634 95.051 8.571 4.949 8.571-4.949L383.41 310V110l-8.572-4.949L210.205 10z",fill:"url(#b)"}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:632.433,y1:166.456,x2:334.741,y2:-292.388,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})),v.createElement("linearGradient",{id:"b",x1:210.205,y1:-190,x2:-189.795,y2:210,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})))),Yg=e=>v.createElement("svg",{viewBox:"0 0 90 65",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{d:"M79.425.7c5.688 0 10.3 4.612 10.3 10.3v43.234c0 5.689-4.612 10.3-10.3 10.3H11.156c-5.688 0-10.3-4.611-10.3-10.3v-.215h4.6v.215a5.7 5.7 0 0 0 5.7 5.7h68.269a5.7 5.7 0 0 0 5.7-5.7V11a5.7 5.7 0 0 0-5.7-5.7H11.156a5.7 5.7 0 0 0-5.7 5.7v.49h-4.6V11C.856 5.312 5.468.7 11.156.7h68.269zM11.293 17.691c2.945 0 5.495.62 7.65 1.86 2.182 1.211 3.879 2.929 5.088 5.154 1.21 2.225 1.814 4.845 1.814 7.86 0 2.985-.604 5.577-1.814 7.774a12.78 12.78 0 0 1-5.088 5.112c-2.155 1.211-4.706 1.818-7.65 1.818H1V17.69h10.293zM35.206 47.27h-5.324V17.69h5.324v29.58zm15.677-29.58c2.944 0 5.494.62 7.65 1.86 2.182 1.21 3.878 2.929 5.087 5.154 1.21 2.225 1.815 4.846 1.815 7.86 0 2.985-.606 5.577-1.815 7.774a12.78 12.78 0 0 1-5.087 5.112c-2.156 1.211-4.706 1.818-7.65 1.818H40.59V17.69h10.293zm22.595 19.066a2.98 2.98 0 1 1-.001 5.958 2.98 2.98 0 0 1 .001-5.958zM6.325 42.494h4.812c2.97 0 5.257-.874 6.861-2.62 1.604-1.775 2.405-4.211 2.405-7.31 0-3.126-.801-5.591-2.405-7.394-1.604-1.803-3.89-2.704-6.861-2.704H6.324v20.028zm39.59 0h4.81c2.971 0 5.26-.873 6.863-2.62 1.603-1.775 2.405-4.211 2.405-7.31 0-3.126-.801-5.591-2.405-7.394-1.604-1.803-3.892-2.704-6.862-2.704h-4.81v20.028zm27.564-19.637a2.978 2.978 0 1 1 0 5.957 2.978 2.978 0 0 1 0-5.957z",fill:"currentColor"})),Jg=e=>v.createElement("svg",{width:120,height:120,viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("rect",{x:9,y:9,width:102,height:102,rx:12,fill:"url(#a)"}),v.createElement("mask",{id:"b",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:9,y:9,width:102,height:102},v.createElement("rect",{x:9,y:9,width:102,height:102,rx:12,fill:"#fff"})),v.createElement("g",{mask:"url(#b)"},v.createElement("rect",{x:9,y:9,width:102,height:102,rx:12,fill:"url(#c)"}),v.createElement("path",{d:"M20.22 32.269a7.969 7.969 0 0 1 7.969-7.969H91.81a7.969 7.969 0 0 1 7.969 7.969V71.41a7.969 7.969 0 0 1-7.969 7.97H28.19a7.969 7.969 0 0 1-7.969-7.97V32.27z",fill:"#9FCBFF"}),v.createElement("path",{d:"M17.16 38.389a7.969 7.969 0 0 1 7.969-7.969H94.87a7.969 7.969 0 0 1 7.969 7.969V82.12a7.969 7.969 0 0 1-7.969 7.969H25.13a7.969 7.969 0 0 1-7.969-7.969V38.39z",fill:"url(#d)"}),v.createElement("path",{d:"M9 80.145 111 60.51V99c0 6.627-5.373 12-12 12H21c-6.627 0-12-5.373-12-12V80.145z",fill:"url(#e)"})),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.84 54.153V39.44h7.781a3.791 3.791 0 0 1 3.528 3.782v7.138a3.791 3.791 0 0 1-3.791 3.792H21.84zM38.041 39.44h-2.02v14.734h2.02V39.441zm-14.18 12.691v-10.68h5.497c.978 0 1.77.793 1.77 1.771v7.138a1.77 1.77 0 0 1-1.77 1.771H23.86zm17.018-12.69v14.71h7.518a3.791 3.791 0 0 0 3.791-3.79v-7.139a3.791 3.791 0 0 0-3.528-3.782h-7.78zm13.88 3.413h2.259v2.259h-2.259v-2.259zm2.259 5.647h-2.259v2.259h2.259v-2.259zM42.9 41.452v10.68h5.497a1.77 1.77 0 0 0 1.77-1.77v-7.139a1.77 1.77 0 0 0-1.77-1.77H42.9z",fill:"#4598FA"}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M92.652 87.208v9.266l-.82.474 1.448.837.821-.474v-10.94l-6.945-4.01h-6.461v18.96h6.46l1.778-1.026-1.45-.837-.715.414h-4.624V83.81h4.624l5.884 3.397zm.96-4.846-1.774 1.025 1.449.836.714-.412h4.624v16.06H94l-5.884-3.397v-9.266l.823-.475-1.45-.837-.823.476V97.31l6.707 3.872c.156.09.334.138.515.138h6.185V82.36h-6.461z",fill:"#fff"}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:9,y1:9,x2:9,y2:111,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4F9DF6"}),v.createElement("stop",{offset:1,stopColor:"#0A79F8"})),v.createElement("linearGradient",{id:"c",x1:9,y1:9,x2:9,y2:111,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4F9DF6"}),v.createElement("stop",{offset:1,stopColor:"#0A79F8"})),v.createElement("linearGradient",{id:"d",x1:17.16,y1:30.42,x2:17.16,y2:90.09,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#fff"}),v.createElement("stop",{offset:1,stopColor:"#ECEFFF"})),v.createElement("linearGradient",{id:"e",x1:20.156,y1:77.531,x2:26.73,y2:110.104,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{offset:.007,stopColor:"#77B2F6"}),v.createElement("stop",{offset:.206,stopColor:"#4F9DF6"}),v.createElement("stop",{offset:1,stopColor:"#4598FA"})))),Xg=e=>v.createElement("svg",{width:76,height:76,viewBox:"0 0 76 76",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 15a2 2 0 0 0-2 2v3.176H0V17a6 6 0 0 1 6-6h63.23a6 6 0 0 1 6 6v42.069a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6v-2.945h4v2.945a2 2 0 0 0 2 2h63.23a2 2 0 0 0 2-2V17a2 2 0 0 0-2-2H6z",fill:"#4598FA"}),v.createElement("circle",{cx:32,cy:31,r:10,stroke:"#4598FA",strokeWidth:4}),v.createElement("path",{d:"m40.688 48.384 5.602 5.602 10.343-10.343m-6.966-5.073c3.253 0 5.891-3.166 5.891-7.07 0-3.905-2.638-7.07-5.891-7.07M32 41h-7.147a7 7 0 0 0-7 7v7.065",stroke:"#4598FA",strokeWidth:4})),Qg=""+new URL("payment-kit-DYSjmihw.png",import.meta.url).href,Zg=e=>v.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("rect",{x:73.16,y:109.16,width:253.435,height:181.679,rx:36.641,fill:"none",stroke:"currentColor",strokeWidth:18.321}),v.createElement("ellipse",{cx:164,cy:199.618,rx:16.03,ry:28.626,fill:"currentColor"}),v.createElement("ellipse",{cx:234.991,cy:199.618,rx:16.03,ry:28.626,fill:"currentColor"})),ev=e=>v.createElement("svg",{viewBox:"0 0 902 902",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("rect",{width:902,height:902,rx:212,fill:"url(#a)"}),v.createElement("rect",{x:166,y:247,width:569,height:409,rx:80,stroke:"#fff",style:{stroke:"#fff",strokeOpacity:1},strokeWidth:40}),v.createElement("ellipse",{cx:371,cy:452,rx:37,ry:65,fill:"#fff",style:{fill:"#fff",fillOpacity:1}}),v.createElement("ellipse",{cx:531,cy:452,rx:37,ry:65,fill:"#fff",style:{fill:"#fff",fillOpacity:1}}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:84,y1:78.5,x2:811.5,y2:850.5,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#AAF4EF",style:{stopColor:"color(display-p3 .6667 .9569 .9373)",stopOpacity:1}}),v.createElement("stop",{offset:.181,stopColor:"#C7F37F",style:{stopColor:"color(display-p3 .7798 .9512 .4996)",stopOpacity:1}}),v.createElement("stop",{offset:.361,stopColor:"#FFD071",style:{stopColor:"color(display-p3 1 .8141 .4422)",stopOpacity:1}}),v.createElement("stop",{offset:.546,stopColor:"#FF9898",style:{stopColor:"color(display-p3 1 .596 .596)",stopOpacity:1}}),v.createElement("stop",{offset:.722,stopColor:"#FF89E0",style:{stopColor:"color(display-p3 1 .536 .8769)",stopOpacity:1}}),v.createElement("stop",{offset:.899,stopColor:"#B695FE",style:{stopColor:"color(display-p3 .7137 .5843 .9961)",stopOpacity:1}}),v.createElement("stop",{offset:1,stopColor:"#7C8EED",style:{stopColor:"color(display-p3 .4863 .5569 .9294)",stopOpacity:1}})))),ol=e=>v.createElement("svg",{width:1024,height:1024,viewBox:"0 0 1024 1024",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("rect",{width:1024,height:1024,rx:250,fill:"url(#a)"}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M283.163 232.966c-9.334 5.389-9.334 18.86 0 24.249 4.331 2.5 9.668 2.5 14 0L402 196.687a14 14 0 0 0 7-12.125c0-10.777-11.666-17.513-21-12.124l-104.837 60.528zm-98.864 215.431a14 14 0 0 0-7-12.125c-9.333-5.388-21 1.347-21 12.125v123.207c0 10.777 11.667 17.513 21 12.124a14 14 0 0 0 7-12.124V448.397zm547.739 316.237a14 14 0 0 1 14 0c9.334 5.388 9.334 18.86 0 24.249L638 851.258c-9.333 5.389-21-1.347-21-12.124a14 14 0 0 1 7-12.124l108.038-62.376zm137.137-193.333c0 10.777-11.667 17.512-21 12.124a14.002 14.002 0 0 1-7-12.124V448.7a14 14 0 0 1 7-12.124c9.333-5.389 21 1.347 21 12.124v122.601zM409 839.438c0 10.777-11.666 17.513-21 12.124l-108.301-62.528c-9.334-5.388-9.334-18.86 0-24.248a14 14 0 0 1 14 0L402 827.313a14 14 0 0 1 7 12.125zm208-654.572c0-10.777 11.667-17.513 21-12.124l104.575 60.376c9.333 5.388 9.333 18.86 0 24.248a14 14 0 0 1-14 0L624 196.99a14 14 0 0 1-7-12.124z",fill:"#fff",fillOpacity:.12}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M513.689 175.068c-17.416 0-31.534-14.118-31.534-31.534 0-17.416 14.118-31.534 31.534-31.534 17.416 0 31.534 14.118 31.534 31.534 0 17.416-14.118 31.534-31.534 31.534zM560.723 321.5c0 26.858-21.773 48.631-48.631 48.631s-48.631-21.773-48.631-48.631c0-26.859 21.773-48.632 48.631-48.632s48.631 21.773 48.631 48.632zm130.926 355.386c-26.858 0-48.631-21.773-48.631-48.631 0-26.859 21.773-48.632 48.631-48.632 26.859 0 48.632 21.773 48.632 48.632 0 26.858-21.773 48.631-48.632 48.631zm-411.498-48.631c0 26.858 21.773 48.631 48.632 48.631 26.858 0 48.631-21.773 48.631-48.631 0-26.859-21.773-48.632-48.631-48.632-26.859 0-48.632 21.773-48.632 48.632zm231.935-44.897c-39.255 0-71.077-31.822-71.077-71.077 0-39.254 31.822-71.077 71.077-71.077 39.255 0 71.077 31.823 71.077 71.077 0 39.255-31.822 71.077-71.077 71.077zm310.488 136.265c0 17.416 14.118 31.534 31.534 31.534 17.415 0 31.534-14.118 31.534-31.534 0-17.415-14.119-31.534-31.534-31.534-17.416 0-31.534 14.119-31.534 31.534zm-684.565 0c0 17.416 14.119 31.534 31.534 31.534 17.416 0 31.534-14.118 31.534-31.534 0-17.415-14.118-31.534-31.534-31.534-17.415 0-31.534 14.119-31.534 31.534z",fill:"#fff"}),v.createElement("foreignObject",{x:118,y:252.842,width:787.643,height:679.157},v.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",style:{backdropFilter:"blur(10px)",clipPath:"url(#b)",height:"100%",width:"100%"}})),v.createElement("path",{"data-figma-bg-blur-radius":20,fillRule:"evenodd",clipRule:"evenodd",d:"M541.484 880.466c0-17.416-14.119-31.534-31.534-31.534-17.416 0-31.534 14.118-31.534 31.534 0 17.415 14.118 31.534 31.534 31.534 17.415 0 31.534-14.119 31.534-31.534zm-340.416-576.09c0-17.415-14.118-31.534-31.534-31.534-17.416 0-31.534 14.119-31.534 31.534 0 17.416 14.118 31.534 31.534 31.534 17.416 0 31.534-14.118 31.534-31.534zm653.041-31.534c17.416 0 31.534 14.119 31.534 31.534 0 17.416-14.118 31.534-31.534 31.534-17.416 0-31.534-14.118-31.534-31.534 0-17.415 14.118-31.534 31.534-31.534zm-473.483 122.92c0-26.858-21.773-48.631-48.631-48.631-26.859 0-48.632 21.773-48.632 48.631 0 26.859 21.773 48.632 48.632 48.632 26.858 0 48.631-21.773 48.631-48.632zm314.236-48.631c26.858 0 48.631 21.773 48.631 48.631 0 26.859-21.773 48.632-48.631 48.632-26.859 0-48.632-21.773-48.632-48.632 0-26.858 21.773-48.631 48.632-48.631zm-182.77 438.221c26.858 0 48.631-21.774 48.631-48.632 0-26.858-21.773-48.631-48.631-48.631-26.859 0-48.632 21.773-48.632 48.631s21.773 48.632 48.632 48.632z",fill:"#fff",fillOpacity:.56}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:956,y1:962,x2:70,y2:65.5,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#060E13"}),v.createElement("stop",{offset:1,stopColor:"#313434"})),v.createElement("clipPath",{id:"b",transform:"translate(-118 -252.842)"},v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M541.484 880.466c0-17.416-14.119-31.534-31.534-31.534-17.416 0-31.534 14.118-31.534 31.534 0 17.415 14.118 31.534 31.534 31.534 17.415 0 31.534-14.119 31.534-31.534zm-340.416-576.09c0-17.415-14.118-31.534-31.534-31.534-17.416 0-31.534 14.119-31.534 31.534 0 17.416 14.118 31.534 31.534 31.534 17.416 0 31.534-14.118 31.534-31.534zm653.041-31.534c17.416 0 31.534 14.119 31.534 31.534 0 17.416-14.118 31.534-31.534 31.534-17.416 0-31.534-14.118-31.534-31.534 0-17.415 14.118-31.534 31.534-31.534zm-473.483 122.92c0-26.858-21.773-48.631-48.631-48.631-26.859 0-48.632 21.773-48.632 48.631 0 26.859 21.773 48.632 48.632 48.632 26.858 0 48.631-21.773 48.631-48.632zm314.236-48.631c26.858 0 48.631 21.773 48.631 48.631 0 26.859-21.773 48.632-48.631 48.632-26.859 0-48.632-21.773-48.632-48.632 0-26.858 21.773-48.631 48.632-48.631zm-182.77 438.221c26.858 0 48.631-21.774 48.631-48.632 0-26.858-21.773-48.631-48.631-48.631-26.859 0-48.632 21.773-48.632 48.631s21.773 48.632 48.632 48.632z"})))),tv=""+new URL("aistro-NLUOUWwT.png",import.meta.url).href;function rv(e){try{return new URL(e).origin!==window.location.origin}catch{return!1}}function Ho(e,t){try{if(!rv(e))return e;const n=Ep(e),r={utm_source:window.location.hostname,utm_medium:`${t}_nav`,utm_campaign:"default",utm_content:new URL(e).hostname,...n};return Qr(e,r)}catch(n){return console.error("Failed to generate UTM URL:",n),e}}const al=260,nv={en:{groups:{applications:"Applications",components:"Components",computeStorage:"Compute/Storage",identity:"Identity",frameworkTools:"Framework & tools",modelsAdapters:"Models adapters"},products:{nftStudio:{description:"Mint and manage NFTs"},creatorStudio:{description:"All-in-one creator tool"},aigne:{description:"The Agentic Ecosystem for AI Apps"},arcsphere:{description:"AI native browser"},aistro:{description:"AI-powered astrology"},blockletLauncher:{description:"One-click app launcher"},aiKit:{description:"Boost apps with AI"},paymentKit:{description:"Effortless Crypto & Card Payments"},blockletStore:{description:"Discover & deploy apps"},web3Kit:{description:"Web3 dev toolkit"},blockletFramework:{description:"Build and run blocklets"},didSpaces:{description:"Secure personal storage"},abtNetwork:{description:"Fast blockchain network"},blockletServer:{description:"Host your apps easily"},ocap:{description:"Multi-chain connector"},did:{description:"Self-sovereign ID"},didWallet:{description:"Smart digital wallet"},didNameService:{description:"Web3 domain names"},vc:{description:"Verifiable Credentials"},didConnect:{description:"Passwordless login"},aigneCodeSmith:{description:"Review and improve your code with AI"},aigneDocSmith:{description:"Generate and update docs with AI"},aigneWebSmith:{description:"Build and deploy AI-powered web apps"},aigneImageSmith:{description:"Generate and Refine Images with AI"},aigneCLI:{description:"Develop agents from the command line"},aigneObservability:{description:"Understand and inspect agent behavior"},aigneStudio:{description:"Create agents visually, no code needed"},aigneFramework:{description:"The functional core of agentic AI"},aigneHub:{description:"One API. Any Model"}}},zh:{groups:{applications:"应用",components:"组件",computeStorage:"计算/存储",identity:"身份",frameworkTools:"框架与工具",modelsAdapters:"模型适配器"},products:{nftStudio:{description:"铸造和管理 NFT"},creatorStudio:{description:"一体化创作工具"},aigne:{description:"AI 应用的代理生态系统"},arcsphere:{description:"AI 原生浏览器"},aistro:{description:"AI 占星术"},blockletLauncher:{description:"一键启动应用程序"},aiKit:{description:"AI 赋能应用"},paymentKit:{description:"便捷的加密货币和银行卡支付"},blockletStore:{description:"发现和部署应用程序"},web3Kit:{description:"Web3 开发工具包"},blockletFramework:{description:"构建并运行 Blocklet"},didSpaces:{description:"安全的个人存储"},abtNetwork:{description:"快速区块链网络"},blockletServer:{description:"轻松托管应用程序"},ocap:{description:"多链连接器"},did:{description:"自主身份"},didWallet:{description:"智能数字钱包"},didNameService:{description:"Web3 域名"},vc:{description:"可验证凭证"},didConnect:{description:"无密码登录"},aigneCodeSmith:{description:"使用 AI 审查并优化你的代码"},aigneDocSmith:{description:"用 AI 生成和更新项目文档"},aigneWebSmith:{description:"构建并部署 AI 驱动的 Web 应用"},aigneImageSmith:{description:"使用 AI 生成和优化图像"},aigneCLI:{description:"通过命令行开发 Agent"},aigneObservability:{description:"理解并分析 Agent 的行为"},aigneStudio:{description:"零代码构建 Agent"},aigneFramework:{description:"Agent AI 的功能核心框架"},aigneHub:{description:"一套 API,连接所有模型"}}},"zh-TW":{groups:{applications:"應用",components:"組件",computeStorage:"計算/儲存",identity:"身份",frameworkTools:"框架與工具",modelsAdapters:"模型適配器"},products:{nftStudio:{description:"鑄造和管理 NFT"},creatorStudio:{description:"一體化創作工具"},aigne:{description:"AI 應用的代理生態系統"},arcsphere:{description:"AI 原生瀏覽器"},aistro:{description:"AI 占星術"},blockletLauncher:{description:"一鍵啟動應用程式"},aiKit:{description:"AI 賦能應用"},paymentKit:{description:"便捷的加密貨幣和銀行卡支付"},blockletStore:{description:"發現和部署應用程式"},web3Kit:{description:"Web3 開發工具包"},blockletFramework:{description:"構建並運行 Blocklet"},didSpaces:{description:"安全的個人儲存"},abtNetwork:{description:"快速區塊鏈網路"},blockletServer:{description:"輕鬆託管應用程式"},ocap:{description:"多鏈連接器"},did:{description:"自主身份"},didWallet:{description:"智能數位錢包"},didNameService:{description:"Web3 域名"},vc:{description:"可驗證憑證"},didConnect:{description:"無密碼登入"},aigneCodeSmith:{description:"使用 AI 審查並優化你的程式碼"},aigneDocSmith:{description:"用 AI 生成和更新專案文件"},aigneWebSmith:{description:"構建並部署 AI 驅動的 Web 應用"},aigneImageSmith:{description:"使用 AI 生成和優化圖像"},aigneCLI:{description:"透過命令列開發 Agent"},aigneObservability:{description:"理解並分析 Agent 的行為"},aigneStudio:{description:"零程式碼構建 Agent"},aigneFramework:{description:"Agent AI 的功能核心框架"},aigneHub:{description:"一套 API,連接所有模型"}}},ja:{groups:{applications:"アプリケーション",components:"コンポーネント",computeStorage:"コンピューティング/ストレージ",identity:"アイデンティティ",frameworkTools:"フレームワークとツール",modelsAdapters:"モデルアダプター"},products:{nftStudio:{description:"NFTの作成と管理"},creatorStudio:{description:"オールインワンクリエイターツール"},aigne:{description:"AIアプリのためのエージェントエコシステム"},arcsphere:{description:"AIネイティブブラウザ"},aistro:{description:"AI駆動占星術"},blockletLauncher:{description:"ワンクリックアプリ起動"},aiKit:{description:"AIでアプリを強化"},paymentKit:{description:"簡単な暗号通貨とカード決済"},blockletStore:{description:"アプリの発見とデプロイ"},web3Kit:{description:"Web3開発ツールキット"},blockletFramework:{description:"Blockletの構築と実行"},didSpaces:{description:"安全な個人ストレージ"},abtNetwork:{description:"高速ブロックチェーンネットワーク"},blockletServer:{description:"アプリの簡単なホスティング"},ocap:{description:"マルチチェーンコネクター"},did:{description:"自己主権ID"},didWallet:{description:"スマートデジタルウォレット"},didNameService:{description:"Web3ドメイン名"},vc:{description:"検証可能な認証情報"},didConnect:{description:"パスワード不要ログイン"},aigneCodeSmith:{description:"AIでコードをレビューし改善"},aigneDocSmith:{description:"AIでドキュメントを生成・更新"},aigneWebSmith:{description:"AI駆動Webアプリの構築とデプロイ"},aigneImageSmith:{description:"AIで画像を生成・最適化"},aigneCLI:{description:"コマンドラインからエージェントを開発"},aigneObservability:{description:"エージェントの動作を理解・分析"},aigneStudio:{description:"コード不要でエージェントを視覚的に作成"},aigneFramework:{description:"エージェントAIの機能コアフレームワーク"},aigneHub:{description:"1つのAPIで全てのモデルに接続"}}}},iv=Fe(X)`
20
- padding: 8px;
21
- background: ${({theme:e})=>e.palette.grey[100]};
22
- border-radius: 8px;
23
-
24
- &.is-inline {
25
- width: 100%;
26
- max-width: 100%;
27
- border-radius: 0;
28
- .nav-menu-sub-item-group {
29
- padding: 8px 16px;
30
- border-radius: 0;
31
- }
32
- }
33
-
34
- .nav-menu-sub-item-group + .nav-menu-sub-item-group {
35
- margin-top: 8px;
36
- }
37
- .MuiGrid-container + .MuiGrid-container {
38
- margin-top: 0px;
39
- }
40
- `,ov=Fe(X,{shouldForwardProp:e=>e!=="maxContent"})(({theme:e,maxContent:t})=>({display:"grid",gap:e.spacing(1),gridTemplateColumns:`repeat(1, ${t}px)`,[e.breakpoints.up("md")]:{gridTemplateColumns:`repeat(2, ${t}px)`},[e.breakpoints.up("lg")]:{gridTemplateColumns:`repeat(3, ${t}px)`}}));function Jc({color:e="black",backgroundColor:t="transparent",children:n}){return g.jsx(X,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",color:e,backgroundColor:t,borderRadius:"4px"},children:n})}function pn({color:e="black",backgroundColor:t="transparent"}){return g.jsx(Jc,{color:e,backgroundColor:t,children:g.jsx(Yg,{style:{width:"100%"}})})}function st({color:e="black",backgroundColor:t="transparent"}){return g.jsx(Jc,{color:e,backgroundColor:t,children:g.jsx(Zg,{style:{width:"100%",height:"100%"}})})}const av=(e="")=>e.startsWith("http:")||e.startsWith("https:"),lv=e=>{try{return new URL(e).origin===window.location.origin}catch{return!1}};function ge({to:e,children:t,className:n="",...r}){if(av(e)){const i=lv(e)?"_self":"_blank";return g.jsx("a",{href:Ho(e,"header"),target:i,rel:"noreferrer noopener",className:n,...r,children:t})}return g.jsx(vc,{to:e,className:n,...r,children:t})}function sv({className:e="",type:t,...n}){const{mode:r}=kp(),i=nt(),{locale:o="en"}=Pe()||{},a=v.useRef(null),{palette:l}=i,s=re((p,h={})=>Zr(nv,p,o,"en",h)),[c,u]=v.useState(al),d=re(()=>{if(!a.current)return;const p=a.current.querySelectorAll(".navmenu-item__content");let h=al;p.forEach(m=>{const b=m.getBoundingClientRect().width+64;b>h&&(h=b)}),u(h)});v.useEffect(()=>{d()},[i,o,t,d]),v.useEffect(()=>{if(!a.current)return;const p=a.current.querySelector(".navmenu-item__content");if(!p)return;const h=new ResizeObserver(()=>{d()});return h.observe(p),()=>{h.disconnect()}},[d]);const f=De(()=>t==="ARCBLOCK"?[{type:"Group",label:s("groups.applications"),children:[{label:g.jsx(ge,{to:`https://www.nftstudio.rocks/${o}`,children:"NFT Studio"}),description:s("products.nftStudio.description"),icon:g.jsx(Bg,{})},{label:g.jsx(ge,{to:`https://www.arcblock.io/content/collections/${o}/creator-studio`,children:"Creator Studio"}),description:s("products.creatorStudio.description"),icon:g.jsx($g,{})},{label:g.jsx(ge,{to:"https://www.aigne.io/",children:"AIGNE"}),description:s("products.aigne.description"),icon:g.jsx(st,{color:l.mode==="dark"?"white":"black"})},{label:g.jsx(ge,{to:`https://www.arcsphere.io/${o}`,children:"ArcSphere"}),description:s("products.arcsphere.description"),icon:g.jsx(ol,{})}]},{type:"Group",label:s("groups.components"),children:[{label:g.jsx(ge,{to:`https://launcher.arcblock.io/${o}`,children:"Blocklet Launcher"}),description:s("products.blockletLauncher.description"),icon:g.jsx(Gg,{})},{label:g.jsx(ge,{to:`https://www.blocklet.io/${o}/payment-kit`,children:"Payment Kit"}),description:s("products.paymentKit.description"),icon:g.jsx("img",{src:Qg,alt:"Payment Kit"})},{label:g.jsx(ge,{to:`https://store.blocklet.dev/?locale=${o}`,children:"Blocklet Store"}),description:s("products.blockletStore.description"),icon:g.jsx(Wg,{})},{label:g.jsx(ge,{to:`https://www.web3kit.rocks/${o}`,children:"Web3 Kit"}),description:s("products.web3Kit.description"),icon:g.jsx(Hg,{})}]},{type:"Group",label:s("groups.computeStorage"),children:[{label:g.jsx(ge,{to:`https://www.arcblock.io/content/collections/${o}/blocklet`,children:"Blocklet Framework"}),description:s("products.blockletFramework.description"),icon:g.jsx(Ug,{})},{label:g.jsx(ge,{to:`https://www.didspaces.com/${o}`,children:"DID Spaces"}),description:s("products.didSpaces.description"),icon:g.jsx(pn,{color:"#876bf4"})},{label:g.jsx(ge,{to:"https://main.abtnetwork.io/",children:"ABT Network"}),description:s("products.abtNetwork.description"),icon:g.jsx(Vg,{})},{label:g.jsx(ge,{to:`https://www.blocklet.io/${o}/blocklet-server`,children:"Blocklet Server"}),description:s("products.blockletServer.description"),icon:g.jsx(qg,{})},{label:g.jsx(ge,{to:`https://www.arcblock.io/content/collections/${o}/ocap`,children:"ОСАР"}),description:s("products.ocap.description"),icon:g.jsx(Kg,{})}]},{type:"Group",label:s("groups.identity"),children:[{label:g.jsx(ge,{to:`https://www.arcblock.io/content/collections/${o}/did`,children:"DID"}),description:s("products.did.description"),icon:g.jsx(pn,{color:"#5b96f3"})},{label:g.jsx(ge,{to:`https://www.didwallet.io/${o}`,children:"DID Wallet"}),description:s("products.didWallet.description"),icon:g.jsx(Jg,{})},{label:g.jsx(ge,{to:`https://www.didnames.io/${o}`,children:"DID Names"}),description:s("products.didNameService.description"),icon:g.jsx(pn,{color:"#678ab0"})},{label:g.jsx(ge,{to:`https://www.arcblock.io/content/collections/${o}/verifiable-credential`,children:"VC"}),description:s("products.vc.description"),icon:g.jsx(Xg,{})},{label:g.jsx(ge,{to:`https://www.didconnect.io/${o}`,children:"DID Connect"}),description:s("products.didConnect.description"),icon:g.jsx(pn,{color:"#5bbec5"})}]}]:t==="AIGNE"?[{type:"Group",label:s("groups.applications"),children:[{label:g.jsx(ge,{to:`https://www.arcsphere.io/${o}`,children:"ArcSphere"}),description:s("products.arcsphere.description"),icon:g.jsx(ol,{})},{label:g.jsx(ge,{to:`https://www.aistro.io/${o}`,children:"Aistro"}),description:s("products.aistro.description"),icon:g.jsx("img",{src:tv,alt:"Aistro"})},{label:g.jsx(ge,{to:"https://www.aigne.io/code-smith",children:"AIGNE CodeSmith"}),description:s("products.aigneCodeSmith.description"),icon:g.jsx(st,{color:"#3E5DF7",backgroundColor:"#e9f0ff"})},{label:g.jsx(ge,{to:"https://www.aigne.io/doc-smith",children:"AIGNE DocSmith"}),description:s("products.aigneDocSmith.description"),icon:g.jsx(st,{color:"#02A996",backgroundColor:"#e6f7f5"})},{label:g.jsx(ge,{to:"https://www.aigne.io/web-smith",children:"AIGNE WebSmith"}),description:s("products.aigneWebSmith.description"),icon:g.jsx(st,{color:"#7c45eb",backgroundColor:"#f0e9ff"})},{label:g.jsx(ge,{to:"https://imagesmith.aigne.io/",children:"AIGNE ImageSmith"}),description:s("products.aigneImageSmith.description"),icon:g.jsx(ev,{})}]},{type:"Group",label:s("groups.frameworkTools"),children:[{label:g.jsx(ge,{to:"https://www.aigne.io/cli",children:"AIGNE CLI"}),description:s("products.aigneCLI.description"),icon:g.jsx(st,{color:"#d05d4e",backgroundColor:"#faeaea"})},{label:g.jsx(ge,{to:"https://www.aigne.io/observability",children:"AIGNE Observability"}),description:s("products.aigneObservability.description"),icon:g.jsx(st,{color:"#6ba456",backgroundColor:"#edfae8"})},{label:g.jsx(ge,{to:"https://www.aigne.io/studio",children:"AIGNE Studio"}),description:s("products.aigneStudio.description"),icon:g.jsx(st,{color:"#676cbf",backgroundColor:"#edeeff"})},{label:g.jsx(ge,{to:"https://www.aigne.io/framework",children:"AIGNE Framework"}),description:s("products.aigneFramework.description"),icon:g.jsx(st,{color:"#5086d0",backgroundColor:"#eef4ff"})}]},{type:"Group",label:s("groups.modelsAdapters"),children:[{label:g.jsx(ge,{to:"https://www.aigne.io/hub",children:"AIGNE Hub"}),description:s("products.aigneHub.description"),icon:g.jsx(st,{color:"#e4930b",backgroundColor:"#fbf4d4"})}]}]:[],[s,o,l]);return g.jsx(iv,{ref:a,className:`nav-menu-products is-${r} ${e}`,...n,children:f.map(p=>g.jsx(Fg,{label:p.label,children:g.jsx(ov,{maxContent:c,children:p.children.map(h=>g.jsx(Pp,{variant:"panel",style:{padding:"8px"},...h}))})},p.label))})}function cv(e,t){return Op(t,function(n){return e[n]})}function uv(e){return e==null?[]:cv(e,Np(e))}var dv=Ap.isFinite;function ll(e){return typeof e=="number"&&dv(e)}function fv(e){return typeof e=="number"&&e==Mp(e)}var pv=ng(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});const hv=Object.freeze(Object.defineProperty({__proto__:null,default:pv},Symbol.toStringTag,{value:"Module"}));var gv=mc(function(e){var t=Lp(e);return t=typeof t=="function"?t:void 0,zp(jp(e,1,bc,!0),void 0,t)});const vv=Object.freeze(Object.defineProperty({__proto__:null,default:gv},Symbol.toStringTag,{value:"Module"}));var Xc=mc(function(e,t){return bc(e)?bg(e,t):[]}),xr={};const mv=ei(vv),bv=ei(Fp),yv=ei(hv);var sl;function xv(){return sl||(sl=1,(function(e){var t=xr&&xr.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(e,"__esModule",{value:!0}),e.sortRootNavigation=e.cleanOldNavigationHistory=e.checkLink=void 0,e.parseNavigation=ce,e.deepWalk=D,e.isMatchSection=w,e.nestNavigationList=J,e.filterNavigation=Z,e.cleanOrphanNavigation=U,e.joinLink=N,e.flattenNavigation=W,e.splitNavigationBySection=ee;const n=Bp(),r=$p(),i=t(mv),o=t(Gp),a=t(Wp),l=t(bv),s=t(Hp),c=t(eg),u=t(tg),d=Yp(),f=t(rg()),p=t(yc()),h=t(Up),m=t(Vp),b=t(yv),y=qp(),x=Kp();Object.defineProperty(e,"checkLink",{enumerable:!0,get:function(){return x.checkLink}});const R="header",T="/",E="/",C="/";function D(B,$=()=>{},{key:k="children",order:A="first"}={}){function j(V,{index:te=0,parent:ae=null,level:fe=0}={}){Array.isArray(V)?V.forEach((ye,_e)=>{j(ye,{index:_e,parent:ae,level:fe+1})}):V&&(A==="first"&&$(V,ae,{index:te,level:fe}),j(V[k],{parent:V,level:fe}),A==="last"&&$(V,ae,{index:te,level:fe}))}j(B)}function w(B,$){return $===R&&(0,l.default)(B)?!0:Array.isArray(B)?B.includes($):B===$}function _(B){try{return JSON.parse(B)}catch{return B}}function I(B){return B.map($=>{const k={...$};return k.role&&(k.role=_(k.role)),k.section&&(k.section=_(k.section)),k.title&&(k.title=_(k.title)),k.description&&(k.description=_(k.description)),k.link&&(k.link=_(k.link)),k})}function P(B="/",$=""){if((0,p.default)($||""))return $;const k=f.default.join(B,$||E);return k.length>1&&k.endsWith("/")?k.slice(0,k.length-1):k}function L(B,$,{strict:k=!0}={}){let A=B,j=$;return k||(A=A||"/",j=j||"/"),(0,h.default)(A)&&(0,m.default)(j)&&(0,x.checkLink)(j)?Object.keys(A).reduce((V,te)=>(V[te]=P(A[te],j),V),{}):(0,m.default)(A)&&(0,x.checkLink)(A)&&(0,h.default)(j)?Object.keys(j).reduce((V,te)=>(V[te]=P(A,j[te]),V),{}):(0,m.default)(A)&&(0,m.default)(j)?(0,x.checkLink)(A)||(0,x.checkLink)(j)?P(A,j):j:(0,h.default)(A)&&(0,h.default)(j)?[...new Set([...Object.keys(A),...Object.keys(j)])].reduce((te,ae)=>(te[ae]=P(A[ae],j[ae]),te),{}):j}function N(B,$){const k=(0,u.default)(B);return D(k,(A,j)=>{const V=A.component||A.child;if(V){const te=$.find(ae=>ae.name===V);te&&(A.link=L(te.link,A.link,{strict:!1}))}else j&&(A.link=L(j.link,A.link))},{key:"items"}),k}function W(B=[],{depth:$=1,transform:k=A=>A}={}){const A=(0,u.default)(B),j=[];return D(A,(V,te,{level:ae})=>{if(ae>=$){const{items:fe=[]}=V;if(fe&&Array.isArray(fe)&&fe.length>0){delete V.items;const ye=fe.map(_e=>k(_e,V));if(te)te.items.push(...ye);else{const _e=k((0,c.default)(V,["items"]),te);j.push(_e,...ye)}}else if(ae===1){const ye=k((0,c.default)(V,["items"]),te);j.push(ye)}}else ae===1&&j.push(V)},{key:"items",order:"last"}),j}function O(B){if(B.section!=="bottomNavigation")return B;const $={...B};return n.NAVIGATION_I18N_FIELDS.forEach(k=>{const A=$[k];typeof A=="string"&&($[k]={en:A})}),$}function F(B={}){const $=[];function k(j,V={}){const te=[],{children:ae=[],meta:fe={}}=j,ye=(0,u.default)(fe?.navigation||[]);(0,y.hasStartEngine)(fe)&&j.meta?.capabilities?.navigation!==!1&&te.push(...ye);const _e=V.name||"",Re=V.mountPoint||T,Oe=j===B?"":fe.name||"",He=j===B?"":j.mountPoint||T;for(const Ne of ae){if(!(0,y.hasStartEngine)(Ne.meta))continue;const pe=Ne.meta.name,Ce=Ne.mountPoint,ht=[_e,Oe,pe].filter(Boolean).join("."),br=Ne.meta.navigation||[],bi=(0,d.joinURL)(Re,He,Ce);Ne.meta?.capabilities?.navigation!==!1&&$.push({did:Ne.meta.did,name:ht,link:bi,title:Ne.meta.title||"",navigation:br.map(Je=>({section:R,...Je}))});const gt=ye.find(Je=>Je.component?Je.component===pe:!1);if(gt){if(!gt.link)if(Ne.meta.navigation&&Ne.meta.navigation.length>0){const Je=k(Ne,{mountPoint:He,name:Oe});Je.length>0&&(gt.items=gt.items??[],gt.items.push(...Je))}else gt.link=E}else if(Ne.meta?.capabilities?.navigation!==!1){const Je=k(Ne,{mountPoint:He,name:Oe}),fn={title:Ne.meta.title,component:pe,id:Ne.meta.did};Je.length>0?(fn.items=Je,fn.link=void 0):fn.link=E,te.push(fn)}}return te}return{navigationList:k(B),components:$}}function G(B){const $=(0,u.default)(B).filter(k=>k.id);return D($,(k,A)=>{if(k.items&&k.items.length){for(let j=k.items.length-1;j>=0;j--)k.items[j].id||k.items.splice(j,1);k.items.length===0&&k.component&&(k.link=k.link||E)}A&&(k.parent=A.id,k.id=[A.id,k.id].join(C)),k.from=k.from||"yaml",k.visible=k.visible??!0},{key:"items"}),$}function H(B,$=2){const k=(0,u.default)(B),A=W(k,{depth:$,transform:(j,V)=>(V&&(j._parent||(j._parent=V.id,V.component||(j.link=L(V.link,j.link))),j.section=j.section||V.section||[R],j.visible=j.visible??V.visible,V.role&&(j.role=j.role||V.role)),j.component=[V.component,j.component].filter(Boolean).join("."),j)});return D(A,j=>{j.items&&j.items.length>0&&j.items.reduceRight((V,te)=>{if(te._parent){const ae=j.items.findIndex(fe=>fe.id===te._parent);ae>=0&&j.items.splice(ae,1),delete te._parent}return null},null)},{key:"items"}),A}function Y(B,$){return $&&Array.isArray(B.items)?B.items.filter(k=>(0,l.default)(k.section)?w(B.section,$):!!w(k.section,$)).map(k=>({...k,section:$})):[]}function ee(B){const $=(0,u.default)(B),k=[];for(const A of $){let te=function(ae,fe){const ye=Y(ae,fe);V.push({...j,section:fe,items:ye})};const j=(0,u.default)((0,c.default)(A,["items"])),V=[];if(Array.isArray(A.section))for(const ae of A.section)te(A,ae);else if(A.section){const{section:ae}=A;te(A,ae)}else if(A.items&&A.items.length>0){const ae=A.items.reduce((ye,_e)=>{const{section:Re=[R]}=_e||{};return ye.push(...Re),ye},[]),fe=[...new Set(ae)];for(const ye of fe)te(A,ye)}else V.push({...A,section:R});k.push(...V)}return k}function J(B=[]){const $=(0,u.default)(B);return $.reduceRight((k,A,j)=>{if(A.parent){const V=$.find(te=>A.section&&te.section?te.section===A.section&&te.id===A.parent:te.id===A.parent);V&&(V.items||(V.items=[]),V.items=[A,...V.items]),$.splice(j,1)}return null},null),$}function Z(B,$=[]){const k=J(B);return D(k,j=>{if(j?.component&&($.some(V=>V.name===j.component)||(j.visible=!1)),j.items&&j.items.length)for(let V=j.items.length-1;V>=0;V--)j.items[V].visible===!1&&j.items.splice(V,1)},{key:"items"}),k.filter(j=>!(j.visible===!1||j.items&&Array.isArray(j.items)&&j.items.length>0&&j.items?.every(V=>V.visible===!1)))}function U(B){return B.map($=>$.items&&Array.isArray($.items)&&$.items.length===1&&["header","footer","",void 0,null].includes($.section)?$.items[0]:$)}const ne=B=>{const[$,k]=(0,b.default)(B,V=>V.id===r.NAV_GROUP_SYSTEM),[A,j]=(0,b.default)(k,V=>V.id===r.NAV_GROUP_SERVICES);return[...$,...A,...j]};e.sortRootNavigation=ne;const ie=B=>{const[,$]=(0,b.default)(B,k=>{const A=typeof k.title=="string"?k.title:k.title?.en;return k.id===r.NAV_GROUP_TEAM||k.id==="/dashboard"&&A==="Blocklet"});return $};e.cleanOldNavigationHistory=ie;function ce(B={},$={}){const{beforeProcess:k=pe=>pe}=$,{navigationList:A,components:j}=F(B),V=new Map;A.forEach(pe=>{pe.items?.forEach(Ce=>{V.set((0,d.joinURL)(pe.id,Ce.id),Ce)})});const te=(0,s.default)(B,"settings.org.enabled",!1),ae=[r.NAV_GROUP_TEAM,r.NAV_GROUP_SYSTEM,r.NAV_GROUP_SERVICES];B?.settings?.navigations&&(Array.isArray(B.settings.navigations)?B.settings.navigations=[...B.settings.navigations].filter(pe=>!(pe.from==="team-tmpl"&&ae.includes(pe?.parent))).map(pe=>{if(pe.section==="userCenter"&&!Object.prototype.hasOwnProperty.call(pe,"private")){const Ce=V.get(pe.id);Ce&&Object.prototype.hasOwnProperty.call(Ce,"private")&&(pe.private=Ce.private)}return!te&&pe.section==="userCenter"&&pe.id==="/userCenter/orgs"?null:pe}).filter(Boolean):B.settings.navigations=[]);const fe=I(ie(B?.settings?.navigations||[])).map(O),ye=H(k(A)),_e=G(ye),Oe=ee(_e).reduce((pe,Ce)=>["bottom","social","sessionManager","userCenter"].includes(Ce.section)&&Ce.items&&Ce.items.length>0?(pe.push(...Ce.items.map(br=>{const{section:bi}=Ce,gt=L(Ce.link,br.link),Je=[Ce.component,br.component].filter(Boolean).join(".");return{...br,section:bi,link:gt,component:Je,parent:""}})),pe):(pe.push(Ce),pe),[]),He=W(Oe,{transform(pe,Ce){let{component:ht}=pe;return Ce?.component&&(ht=[Ce.component,pe.component].filter(Boolean).join(".")),O({...pe,component:ht})}});return{navigationList:(0,i.default)(fe,He,(pe,Ce)=>{const ht=["id","section"];return(0,o.default)((0,a.default)(pe,ht),(0,a.default)(Ce,ht))}),components:j,builtinList:He}}})(xr)),xr}var Le=xv();const Qc=v.createContext(null),cl="/",Sv="header",ul={userCenter:[{id:"/userCenter/notification",title:{en:"Notifications",zh:"通知"},icon:"ant-design:bell-outlined",link:Te(xe.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/notifications"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/orgs",title:{en:"Organizations",zh:"组织"},icon:"ant-design:team-outlined",link:Te(xe.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/orgs"),from:"team-tmpl",section:["userCenter"],shouldDisplay:e=>e.settings?.org?.enabled},{id:"/userCenter/nfts",title:{en:"NFTs",zh:"NFTs"},icon:"ant-design:gold-outlined",link:Te(xe.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/nfts"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/settings",title:{en:"Settings",zh:"设置"},icon:"ant-design:setting-outlined",link:Te(xe.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/settings"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/did-spaces",title:{en:"DID Spaces",zh:"DID Spaces"},icon:"ant-design:cloud-outlined",link:Te(xe.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/did-spaces"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/user-followers",title:{en:"Follow",zh:"关注"},icon:"ant-design:user-outlined",link:Te(xe.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/user-followers"),from:"team-tmpl",section:["userCenter"]}]};function xi(e,t){return e.section&&t.section?e.section===t.section&&e.id===t.id:e.id===t.id}const ct=(e,t,n,r,i=!0)=>({id:e,from:"team-tmpl",title:t,icon:n,link:Te(xe.WELLKNOWN_SERVICE_PATH_PREFIX,r),visible:i}),dl=(e,t,n)=>({id:e,from:"team-tmpl",title:t,role:["owner","admin","member"],section:["dashboard"],link:"",items:n}),wv=(e,t)=>{const n=Le.cleanOldNavigationHistory(t),r=n.findIndex(a=>a.id===Ve.NAV_GROUP_TEAM);return r>=0&&n.splice(r,1),n.findIndex(a=>a.id===Ve.NAV_GROUP_SERVICES)===-1&&n.unshift(dl(Ve.NAV_GROUP_SERVICES,e("navigation.services"),[ct("did-connect",e("navigation.didConnect"),"tabler:users","/admin/did-connect"),ct("website",e("navigation.website"),"icon-park-twotone:upload-web","/admin/website"),ct("notification",e("navigation.notification"),"ant-design:bell-outlined","/admin/notification"),ct("aigne",e("navigation.aigne"),"hugeicons:artificial-intelligence-04","/admin/aigne"),ct("did-spaces",e("navigation.didSpaces"),"icon-park-outline:cloud-storage","/admin/did-spaces"),ct("studio",e("navigation.studio"),"eos-icons:subscriptions-created-outlined","/admin/publish/publish")])),n.findIndex(a=>a.id===Ve.NAV_GROUP_SYSTEM)===-1&&n.unshift(dl(Ve.NAV_GROUP_SYSTEM,e("navigation.system"),[ct("dashboard",e("navigation.dashboard"),"ant-design:dashboard-outlined","/admin"),ct("operation",e("navigation.operations"),"grommet-icons:configure","/admin/operations"),ct("integration",e("navigation.integration"),"hugeicons:webhook","/admin/integrations")])),n};function fl({name:e}){return g.jsx(Zp,{label:`Uninstalled: ${e}`,color:"error",size:"small",variant:"outlined",sx:{fontSize:10,height:20}})}function Cv({children:e}){const{blocklet:t,actions:n}=Wt(),{t:r}=Pe(),{navigationList:i,components:o,builtinList:a}=Le.parseNavigation(t,{beforeProcess(C){const D=ot(C);return["dashboard","userCenter"].forEach(w=>{Object.prototype.hasOwnProperty.call(ul,w)&&ul[w].forEach(_=>{(_.shouldDisplay&&typeof _.shouldDisplay=="function"?_.shouldDisplay:()=>!0)(t)&&!D.some(P=>P.id===_.id)&&D.push(_)})}),wv(r,D)}}),l=Gt({rawNavigation:ot(i),activeSection:Sv,components:o}),s=v.useMemo(()=>Le.sortRootNavigation(Le.nestNavigationList(ot(l.rawNavigation))),[l.rawNavigation]),c=v.useMemo(()=>{const C=Le.filterNavigation(ot(l.rawNavigation),o);return Le.joinLink(C,o)},[o,l.rawNavigation]),u=v.useCallback(C=>{if(!C.id)return"";const D=Le.flattenNavigation(Le.joinLink(s,o)),w=D.find(_=>_.id===C.id);if(w?.component){if(!o.some(_=>_.name===w.component))return g.jsx(fl,{name:w.component})}else if(w.parent){const _=D.find(I=>I.id===w.parent);if(_?.component&&!o.some(I=>I.name===_.component))return g.jsx(fl,{name:_.component})}return w?.link},[s,o]),d=v.useCallback(C=>{l.activeSection=C},[l]),f=v.useCallback(C=>{const D=[];Le.deepWalk(C,(_,I)=>{const P={...zt(_,["children","expand"]),parent:I?.id};D.push(P)});const w=ot(l.rawNavigation).filter(_=>{if(!l.activeSection)return!1;const I=D.find(P=>xi(P,_));return I?!Le.isMatchSection(I.section,l.activeSection):!0});l.rawNavigation=[...w,...D]},[l]),p=v.useCallback((C=[])=>{const D=ot(l.rawNavigation).map(w=>{const _=C.find(I=>xi({...I,section:l.activeSection},w));return _?{...w,..._}:w});l.rawNavigation=D},[l]),h=v.useCallback((C,D=cl)=>C.map(_=>{const P=o.find(W=>W.name===_.component)?.link||D,L=_.items||[],{link:N}=_;return{title:_.title,description:_.description,subtitle:u(_),link:N,icon:_.icon,children:h(L,N||cl),section:_.section,visible:_.visible,parent:_.parent,component:_.component,id:_.id,role:_.role,from:_.from,__base:P}}),[o,u]),m=v.useCallback(C=>{p([C])},[p]),b=v.useCallback(C=>{const D=l.rawNavigation.filter(w=>w.id===C||w.parent===C).map(w=>w.id);l.rawNavigation=ot(l.rawNavigation).filter(w=>!D.includes(w.id))},[l]),y=v.useCallback((C={},D=-1)=>{const w={...C,id:Jp.nanoid(),section:l.activeSection,visible:!0},_=[...l.rawNavigation],I=_.filter(P=>P.section===l.activeSection);if(D<0||D>I.length-1)_.push(w);else{const P=I[D],L=_.findIndex(N=>xi(N,P));_.splice(L,0,w)}return l.rawNavigation=_,w},[l]),x=v.useCallback(C=>{const w=ot(s).filter(_=>Le.isMatchSection(_.section,C));return h(w)},[s,h]),R=v.useCallback(async C=>{const w=C.map(_=>Xp(_,Qp)).map(_=>{const I={..._};return I.role&&Array.isArray(I.role)&&(I.role=JSON.stringify(I.role)),I.section&&Array.isArray(I.section)&&(I.section=JSON.stringify(I.section)),I.title&&I.title instanceof Object&&(I.title=JSON.stringify(I.title)),I.description&&I.description instanceof Object&&(I.description=JSON.stringify(I.description)),I.link&&I.link instanceof Object&&(I.link=JSON.stringify(I.link)),I});await n.configNavigations(w)},[n]),T=v.useCallback(async C=>{if(C){const D=a.filter(_=>Le.isMatchSection(_.section,C)),w=l.rawNavigation.filter(_=>!Le.isMatchSection(_.section,C));await R(w),l.rawNavigation=[...w,...D]}else await R([]),l.rawNavigation=ot(a)},[R,l,a]),E=v.useMemo(()=>({state:l,navigation:c,components:o,getNavigationFullLink:u,updateActiveSection:d,updateNavigationItem:m,delNavigationItem:b,addNavigationItem:y,updateNavigationTree:f,getNavigation:x,saveNavigationList:R,resetNavigation:T}),[l,c,o,u,d,m,b,y,f,x,R,T]);return g.jsx(Qc.Provider,{value:E,children:e})}function Zc(){const e=v.useContext(Qc);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}var et={},Si,pl;function Iv(){if(pl)return Si;pl=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,s=typeof Tr=="object"&&Tr&&Tr.Object===Object&&Tr,c=typeof self=="object"&&self&&self.Object===Object&&self,u=s||c||Function("return this")(),d=Object.prototype,f=d.toString,p=Math.max,h=Math.min,m=function(){return u.Date.now()};function b(C,D,w){var _,I,P,L,N,W,O=0,F=!1,G=!1,H=!0;if(typeof C!="function")throw new TypeError(e);D=E(D)||0,x(w)&&(F=!!w.leading,G="maxWait"in w,P=G?p(E(w.maxWait)||0,D):P,H="trailing"in w?!!w.trailing:H);function Y($){var k=_,A=I;return _=I=void 0,O=$,L=C.apply(A,k),L}function ee($){return O=$,N=setTimeout(U,D),F?Y($):L}function J($){var k=$-W,A=$-O,j=D-k;return G?h(j,P-A):j}function Z($){var k=$-W,A=$-O;return W===void 0||k>=D||k<0||G&&A>=P}function U(){var $=m();if(Z($))return ne($);N=setTimeout(U,J($))}function ne($){return N=void 0,H&&_?Y($):(_=I=void 0,L)}function ie(){N!==void 0&&clearTimeout(N),O=0,_=W=I=N=void 0}function ce(){return N===void 0?L:ne(m())}function B(){var $=m(),k=Z($);if(_=arguments,I=this,W=$,k){if(N===void 0)return ee(W);if(G)return N=setTimeout(U,D),Y(W)}return N===void 0&&(N=setTimeout(U,D)),L}return B.cancel=ie,B.flush=ce,B}function y(C,D,w){var _=!0,I=!0;if(typeof C!="function")throw new TypeError(e);return x(w)&&(_="leading"in w?!!w.leading:_,I="trailing"in w?!!w.trailing:I),b(C,D,{leading:_,maxWait:D,trailing:I})}function x(C){var D=typeof C;return!!C&&(D=="object"||D=="function")}function R(C){return!!C&&typeof C=="object"}function T(C){return typeof C=="symbol"||R(C)&&f.call(C)==n}function E(C){if(typeof C=="number")return C;if(T(C))return t;if(x(C)){var D=typeof C.valueOf=="function"?C.valueOf():C;C=x(D)?D+"":D}if(typeof C!="string")return C===0?C:+C;C=C.replace(r,"");var w=o.test(C);return w||a.test(C)?l(C.slice(2),w?2:8):i.test(C)?t:+C}return Si=y,Si}var Sr={exports:{}},Ot={exports:{}},Rv=Ot.exports,hl;function _v(){return hl||(hl=1,(function(){var e,t,n,r,i,o;typeof performance<"u"&&performance!==null&&performance.now?Ot.exports=function(){return performance.now()}:typeof yr<"u"&&yr!==null&&yr.hrtime?(Ot.exports=function(){return(e()-i)/1e6},t=yr.hrtime,e=function(){var a;return a=t(),a[0]*1e9+a[1]},r=e(),o=yr.uptime()*1e9,i=r-o):Date.now?(Ot.exports=function(){return Date.now()-n},n=Date.now()):(Ot.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(Rv)),Ot.exports}var gl;function Dv(){if(gl)return Sr.exports;gl=1;for(var e=_v(),t=typeof window>"u"?Tr:window,n=["moz","webkit"],r="AnimationFrame",i=t["request"+r],o=t["cancel"+r]||t["cancelRequest"+r],a=0;!i&&a<n.length;a++)i=t[n[a]+"Request"+r],o=t[n[a]+"Cancel"+r]||t[n[a]+"CancelRequest"+r];if(!i||!o){var l=0,s=0,c=[],u=1e3/60;i=function(d){if(c.length===0){var f=e(),p=Math.max(0,u-(f-l));l=p+f,setTimeout(function(){var h=c.slice(0);c.length=0;for(var m=0;m<h.length;m++)if(!h[m].cancelled)try{h[m].callback(l)}catch(b){setTimeout(function(){throw b},0)}},Math.round(p))}return c.push({handle:++s,callback:d,cancelled:!1}),s},o=function(d){for(var f=0;f<c.length;f++)c[f].handle===d&&(c[f].cancelled=!0)}}return Sr.exports=function(d){return i.call(t,d)},Sr.exports.cancel=function(){o.apply(t,arguments)},Sr.exports.polyfill=function(d){d||(d=t),d.requestAnimationFrame=i,d.cancelAnimationFrame=o},Sr.exports}var hn={},vl;function Tv(){if(vl)return hn;vl=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.default=e;function e(t){return t.displayName||t.name||(typeof t=="string"&&t.length>0?t:"Unknown")}return hn}var Vt={},ml;function Ev(){if(ml)return Vt;ml=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.noop=e,Vt.intBetween=t,Vt.getCoords=n;function e(){}function t(r,i,o){return Math.floor(Math.min(i,Math.max(r,o)))}function n(r){return r.type==="touchmove"?{x:r.changedTouches[0].clientX,y:r.changedTouches[0].clientY}:{x:r.clientX,y:r.clientY}}return Vt}var bl;function kv(){if(bl)return et;bl=1,Object.defineProperty(et,"__esModule",{value:!0}),et.createHorizontalStrength=_,et.createVerticalStrength=I,et.createScrollingComponent=N,et.default=W,et.defaultVerticalStrength=et.defaultHorizontalStrength=void 0;var e=u(xc()),t=c(Sc()),n=eh(),r=c(Iv()),i=c(Dv()),o=c(Tv()),a=og,l=c(th()),s=Ev();function c(O){return O&&O.__esModule?O:{default:O}}function u(O){if(O&&O.__esModule)return O;var F={};if(O!=null){for(var G in O)if(Object.prototype.hasOwnProperty.call(O,G)){var H=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(O,G):{};H.get||H.set?Object.defineProperty(F,G,H):F[G]=O[G]}}return F.default=O,F}function d(O){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(G){return typeof G}:d=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},d(O)}function f(){return f=Object.assign||function(O){for(var F=1;F<arguments.length;F++){var G=arguments[F];for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(O[H]=G[H])}return O},f.apply(this,arguments)}function p(O,F){if(O==null)return{};var G=h(O,F),H,Y;if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(O);for(Y=0;Y<ee.length;Y++)H=ee[Y],!(F.indexOf(H)>=0)&&Object.prototype.propertyIsEnumerable.call(O,H)&&(G[H]=O[H])}return G}function h(O,F){if(O==null)return{};var G={},H=Object.keys(O),Y,ee;for(ee=0;ee<H.length;ee++)Y=H[ee],!(F.indexOf(Y)>=0)&&(G[Y]=O[Y]);return G}function m(O,F){if(!(O instanceof F))throw new TypeError("Cannot call a class as a function")}function b(O,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(O,H.key,H)}}function y(O,F,G){return F&&b(O.prototype,F),O}function x(O,F){return F&&(d(F)==="object"||typeof F=="function")?F:C(O)}function R(O){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},R(O)}function T(O,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(F&&F.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),F&&E(O,F)}function E(O,F){return E=Object.setPrototypeOf||function(H,Y){return H.__proto__=Y,H},E(O,F)}function C(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function D(O,F,G){return F in O?Object.defineProperty(O,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):O[F]=G,O}var w=150;function _(O){return function(G,H){var Y=G.x,ee=G.w,J=G.y,Z=G.h,U=Math.min(ee/2,O),ne=H.x>=Y&&H.x<=Y+ee,ie=ne&&H.y>=J&&H.y<=J+Z;if(ie){if(H.x<Y+U)return(H.x-Y-U)/U;if(H.x>Y+ee-U)return-(Y+ee-H.x-U)/U}return 0}}function I(O){return function(G,H){var Y=G.y,ee=G.h,J=G.x,Z=G.w,U=Math.min(ee/2,O),ne=H.y>=Y&&H.y<=Y+ee,ie=ne&&H.x>=J&&H.x<=J+Z;if(ie){if(H.y<Y+U)return(H.y-Y-U)/U;if(H.y>Y+ee-U)return-(Y+ee-H.y-U)/U}return 0}}var P=_(w);et.defaultHorizontalStrength=P;var L=I(w);et.defaultVerticalStrength=L;function N(O){var F=(function(G){T(H,G);function H(Y,ee){var J;return m(this,H),J=x(this,R(H).call(this,Y,ee)),D(C(C(J)),"updateScrolling",(0,r.default)(function(Z){var U=J.container.getBoundingClientRect(),ne=U.left,ie=U.top,ce=U.width,B=U.height,$={x:ne,y:ie,w:ce,h:B},k=(0,s.getCoords)(Z),A=J.props,j=A.horizontalStrength,V=A.verticalStrength;J.scaleX=j($,k),J.scaleY=V($,k),!J.frame&&(J.scaleX||J.scaleY)&&J.startScrolling()},100,{trailing:!1})),D(C(C(J)),"handleEvent",function(Z){J.dragging&&!J.attached&&(J.attach(),J.updateScrolling(Z))}),J.wrappedInstance=e.default.createRef(),J.scaleX=0,J.scaleY=0,J.frame=null,J.attached=!1,J.dragging=!1,J}return y(H,[{key:"componentDidMount",value:function(){var ee=this;this.container=(0,n.findDOMNode)(this.wrappedInstance.current),this.container&&typeof this.container.addEventListener=="function"&&this.container.addEventListener("dragover",this.handleEvent),window.document.body.addEventListener("touchmove",this.handleEvent);var J=this.props.dragDropManager;this.clearMonitorSubscription=J.getMonitor().subscribeToStateChange(function(){return ee.handleMonitorChange()})}},{key:"componentWillUnmount",value:function(){this.container&&typeof this.container.removeEventListener=="function"&&this.container.removeEventListener("dragover",this.handleEvent),window.document.body.removeEventListener("touchmove",this.handleEvent),this.clearMonitorSubscription(),this.stopScrolling()}},{key:"handleMonitorChange",value:function(){var ee=this.props.dragDropManager,J=ee.getMonitor().isDragging();!this.dragging&&J?this.dragging=!0:this.dragging&&!J&&(this.dragging=!1,this.stopScrolling())}},{key:"attach",value:function(){this.attached=!0,window.document.body.addEventListener("dragover",this.updateScrolling),window.document.body.addEventListener("touchmove",this.updateScrolling)}},{key:"detach",value:function(){this.attached=!1,window.document.body.removeEventListener("dragover",this.updateScrolling),window.document.body.removeEventListener("touchmove",this.updateScrolling)}},{key:"startScrolling",value:function(){var ee=this,J=0,Z=function U(){var ne=ee.scaleX,ie=ee.scaleY,ce=ee.container,B=ee.props,$=B.strengthMultiplier,k=B.onScrollChange;if($===0||ne+ie===0){ee.stopScrolling();return}if(J+=1,J%2){var A=ce.scrollLeft,j=ce.scrollTop,V=ce.scrollWidth,te=ce.scrollHeight,ae=ce.clientWidth,fe=ce.clientHeight,ye=ne?ce.scrollLeft=(0,s.intBetween)(0,V-ae,A+ne*$):A,_e=ie?ce.scrollTop=(0,s.intBetween)(0,te-fe,j+ie*$):j;k(ye,_e)}ee.frame=(0,i.default)(U)};Z()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(i.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var ee=this.props;ee.strengthMultiplier,ee.verticalStrength,ee.horizontalStrength,ee.onScrollChange;var J=p(ee,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return e.default.createElement(O,f({ref:this.wrappedInstance},J))}}]),H})(e.Component);return D(F,"displayName","Scrolling(".concat((0,o.default)(O),")")),D(F,"propTypes",{dragDropManager:t.default.object.isRequired,onScrollChange:t.default.func,verticalStrength:t.default.func,horizontalStrength:t.default.func,strengthMultiplier:t.default.number}),D(F,"defaultProps",{onScrollChange:s.noop,verticalStrength:L,horizontalStrength:P,strengthMultiplier:30}),(0,l.default)(F,O)}function W(O){var F=N(O);return function(G){return e.default.createElement(a.DragDropContextConsumer,null,function(H){var Y=H.dragDropManager;return Y===void 0?null:e.default.createElement(F,f({},G,{dragDropManager:Y}))})}}return et}var Dn=kv();const Pv=ti(Dn);var Ov=ag();const yl=ti(Ov);function eu(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function tu(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function ru(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}eu.__suppressDeprecationWarning=!0;tu.__suppressDeprecationWarning=!0;ru.__suppressDeprecationWarning=!0;function tn(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,i=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?i="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),n!==null||r!==null||i!==null){var o=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
41
-
42
- `+o+" uses "+a+" but also contains the following legacy lifecycles:"+(n!==null?`
43
- `+n:"")+(r!==null?`
44
- `+r:"")+(i!==null?`
45
- `+i:"")+`
46
-
47
- The above lifecycles should be removed. Learn more about this warning here:
48
- https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=eu,t.componentWillReceiveProps=tu),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=ru;var l=t.componentDidUpdate;t.componentDidUpdate=function(c,u,d){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;l.call(this,c,u,f)}}return e}function xl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xl(Object(n),!0).forEach(function(r){M(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nv(e,t,n){return t=he(t),$e(e,nu()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function nu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nu=function(){return!!e})()}var iu=(function(e){function t(){var n;Ie(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Nv(this,t,[].concat(i)),M(n,"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),M(n,"_columnStartIndex",0),M(n,"_columnStopIndex",0),M(n,"_rowStartIndex",0),M(n,"_rowStopIndex",0),M(n,"_onKeyDown",function(a){var l=n.props,s=l.columnCount,c=l.disabled,u=l.mode,d=l.rowCount;if(!c){var f=n._getScrollState(),p=f.scrollToColumn,h=f.scrollToRow,m=n._getScrollState(),b=m.scrollToColumn,y=m.scrollToRow;switch(a.key){case"ArrowDown":y=Math.min(u==="cells"?y+1:n._rowStopIndex+1,d-1);break;case"ArrowLeft":b=Math.max(u==="cells"?b-1:n._columnStartIndex-1,0);break;case"ArrowRight":b=Math.min(u==="cells"?b+1:n._columnStopIndex+1,s-1);break;case"ArrowUp":y=Math.max(u==="cells"?y-1:n._rowStartIndex-1,0);break}(b!==p||y!==h)&&(a.preventDefault(),n._updateScrollState({scrollToColumn:b,scrollToRow:y}))}}),M(n,"_onSectionRendered",function(a){var l=a.columnStartIndex,s=a.columnStopIndex,c=a.rowStartIndex,u=a.rowStopIndex;n._columnStartIndex=l,n._columnStopIndex=s,n._rowStartIndex=c,n._rowStopIndex=u}),n}return Be(t,e),we(t,[{key:"setScrollIndexes",value:function(r){var i=r.scrollToColumn,o=r.scrollToRow;this.setState({scrollToRow:o,scrollToColumn:i})}},{key:"render",value:function(){var r=this.props,i=r.className,o=r.children,a=this._getScrollState(),l=a.scrollToColumn,s=a.scrollToRow;return v.createElement("div",{className:i,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:l,scrollToRow:s}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(r){var i=r.scrollToColumn,o=r.scrollToRow,a=this.props,l=a.isControlled,s=a.onScrollToChange;typeof s=="function"&&s({scrollToColumn:i,scrollToRow:o}),l||this.setState({scrollToColumn:i,scrollToRow:o})}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.isControlled?{}:r.scrollToColumn!==i.instanceProps.prevScrollToColumn||r.scrollToRow!==i.instanceProps.prevScrollToRow?Sl(Sl({},i),{},{scrollToColumn:r.scrollToColumn,scrollToRow:r.scrollToRow,instanceProps:{prevScrollToColumn:r.scrollToColumn,prevScrollToRow:r.scrollToRow}}):{}}}])})(v.PureComponent);M(iu,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0});tn(iu);function ou(e,t){var n;typeof t<"u"?n=t:typeof window<"u"?n=window:typeof self<"u"?n=self:n=rh;var r=typeof n.document<"u"&&n.document.attachEvent;if(!r){var i=(function(){var D=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(w){return n.setTimeout(w,20)};return function(w){return D(w)}})(),o=(function(){var D=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(w){return D(w)}})(),a=function(w){var _=w.__resizeTriggers__,I=_.firstElementChild,P=_.lastElementChild,L=I.firstElementChild;P.scrollLeft=P.scrollWidth,P.scrollTop=P.scrollHeight,L.style.width=I.offsetWidth+1+"px",L.style.height=I.offsetHeight+1+"px",I.scrollLeft=I.scrollWidth,I.scrollTop=I.scrollHeight},l=function(w){return w.offsetWidth!=w.__resizeLast__.width||w.offsetHeight!=w.__resizeLast__.height},s=function(w){if(!(w.target.className&&typeof w.target.className.indexOf=="function"&&w.target.className.indexOf("contract-trigger")<0&&w.target.className.indexOf("expand-trigger")<0)){var _=this;a(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=i(function(){l(_)&&(_.__resizeLast__.width=_.offsetWidth,_.__resizeLast__.height=_.offsetHeight,_.__resizeListeners__.forEach(function(I){I.call(_,w)}))})}},c=!1,u="",d="animationstart",f="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h="";{var m=n.document.createElement("fakeelement");if(m.style.animationName!==void 0&&(c=!0),c===!1){for(var b=0;b<f.length;b++)if(m.style[f[b]+"AnimationName"]!==void 0){h=f[b],u="-"+h.toLowerCase()+"-",d=p[b],c=!0;break}}}var y="resizeanim",x="@"+u+"keyframes "+y+" { from { opacity: 0; } to { opacity: 0; } } ",R=u+"animation: 1ms "+y+"; "}var T=function(w){if(!w.getElementById("detectElementResize")){var _=(x||"")+".resize-triggers { "+(R||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',I=w.head||w.getElementsByTagName("head")[0],P=w.createElement("style");P.id="detectElementResize",P.type="text/css",e!=null&&P.setAttribute("nonce",e),P.styleSheet?P.styleSheet.cssText=_:P.appendChild(w.createTextNode(_)),I.appendChild(P)}},E=function(w,_){if(r)w.attachEvent("onresize",_);else{if(!w.__resizeTriggers__){var I=w.ownerDocument,P=n.getComputedStyle(w);P&&P.position=="static"&&(w.style.position="relative"),T(I),w.__resizeLast__={},w.__resizeListeners__=[],(w.__resizeTriggers__=I.createElement("div")).className="resize-triggers";var L=I.createElement("div");L.className="expand-trigger",L.appendChild(I.createElement("div"));var N=I.createElement("div");N.className="contract-trigger",w.__resizeTriggers__.appendChild(L),w.__resizeTriggers__.appendChild(N),w.appendChild(w.__resizeTriggers__),a(w),w.addEventListener("scroll",s,!0),d&&(w.__resizeTriggers__.__animationListener__=function(O){O.animationName==y&&a(w)},w.__resizeTriggers__.addEventListener(d,w.__resizeTriggers__.__animationListener__))}w.__resizeListeners__.push(_)}},C=function(w,_){if(r)w.detachEvent("onresize",_);else if(w.__resizeListeners__.splice(w.__resizeListeners__.indexOf(_),1),!w.__resizeListeners__.length){w.removeEventListener("scroll",s,!0),w.__resizeTriggers__.__animationListener__&&(w.__resizeTriggers__.removeEventListener(d,w.__resizeTriggers__.__animationListener__),w.__resizeTriggers__.__animationListener__=null);try{w.__resizeTriggers__=!w.removeChild(w.__resizeTriggers__)}catch{}}};return{addResizeListener:E,removeResizeListener:C}}function wl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wl(Object(n),!0).forEach(function(r){M(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Av(e,t,n){return t=he(t),$e(e,au()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function au(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(au=function(){return!!e})()}var lu=(function(e){function t(){var n;Ie(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Av(this,t,[].concat(i)),M(n,"state",{height:n.props.defaultHeight||0,width:n.props.defaultWidth||0}),M(n,"_parentNode",void 0),M(n,"_autoSizer",void 0),M(n,"_window",void 0),M(n,"_detectElementResize",void 0),M(n,"_onResize",function(){var a=n.props,l=a.disableHeight,s=a.disableWidth,c=a.onResize;if(n._parentNode){var u=n._parentNode.offsetHeight||0,d=n._parentNode.offsetWidth||0,f=n._window||window,p=f.getComputedStyle(n._parentNode)||{},h=parseInt(p.paddingLeft,10)||0,m=parseInt(p.paddingRight,10)||0,b=parseInt(p.paddingTop,10)||0,y=parseInt(p.paddingBottom,10)||0,x=u-b-y,R=d-h-m;(!l&&n.state.height!==x||!s&&n.state.width!==R)&&(n.setState({height:u-b-y,width:d-h-m}),c({height:u,width:d}))}}),M(n,"_setRef",function(a){n._autoSizer=a}),n}return Be(t,e),we(t,[{key:"componentDidMount",value:function(){var r=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=ou(r,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var r=this.props,i=r.children,o=r.className,a=r.disableHeight,l=r.disableWidth,s=r.style,c=this.state,u=c.height,d=c.width,f={overflow:"visible"},p={};return a||(f.height=0,p.height=u),l||(f.width=0,p.width=d),v.createElement("div",{className:o,ref:this._setRef,style:Cl(Cl({},f),s)},i(p))}}])})(v.Component);M(lu,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});function Mv(e,t,n){return t=he(t),$e(e,su()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function su(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(su=function(){return!!e})()}var Lv=(function(e){function t(){var n;Ie(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Mv(this,t,[].concat(i)),M(n,"_child",v.createRef()),M(n,"_measure",function(){var a=n.props,l=a.cache,s=a.columnIndex,c=s===void 0?0:s,u=a.parent,d=a.rowIndex,f=d===void 0?n.props.index||0:d,p=n._getCellMeasurements(),h=p.height,m=p.width;(h!==l.getHeight(f,c)||m!==l.getWidth(f,c))&&(l.set(f,c,m,h),u&&typeof u.recomputeGridSize=="function"&&u.recomputeGridSize({columnIndex:c,rowIndex:f}))}),M(n,"_registerChild",function(a){a&&!(a instanceof Element)&&console.warn("CellMeasurer registerChild expects to be passed Element or null"),n._child.current=a,a&&n._maybeMeasureCell()}),n}return Be(t,e),we(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var r=this,i=this.props.children,o=typeof i=="function"?i({measure:this._measure,registerChild:this._registerChild}):i;return o===null?o:v.cloneElement(o,{ref:function(l){typeof o.ref=="function"?o.ref(l):o.ref&&(o.ref.current=l),r._child.current=l}})}},{key:"_getCellMeasurements",value:function(){var r=this.props.cache,i=this._child.current;if(i&&i.ownerDocument&&i.ownerDocument.defaultView&&i instanceof i.ownerDocument.defaultView.HTMLElement){var o=i.style.width,a=i.style.height;r.hasFixedWidth()||(i.style.width="auto"),r.hasFixedHeight()||(i.style.height="auto");var l=Math.ceil(i.offsetHeight),s=Math.ceil(i.offsetWidth);return o&&(i.style.width=o),a&&(i.style.height=a),{height:l,width:s}}else return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var r=this.props,i=r.cache,o=r.columnIndex,a=o===void 0?0:o,l=r.parent,s=r.rowIndex,c=s===void 0?this.props.index||0:s;if(!i.has(c,a)){var u=this._getCellMeasurements(),d=u.height,f=u.width;i.set(c,a,f,d),l&&typeof l.invalidateCellSizeAfterRender=="function"&&l.invalidateCellSizeAfterRender({columnIndex:a,rowIndex:c})}}}])})(v.PureComponent);M(Lv,"__internalCellMeasurerFlag",!1);function zv(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function cu(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=cu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function rt(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=cu(e))&&(r&&(r+=" "),r+=t);return r}function lr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t={};return function(n){var r=n.callback,i=n.indices,o=Object.keys(i),a=!e||o.every(function(s){var c=i[s];return Array.isArray(c)?c.length>0:c>=0}),l=o.length!==Object.keys(t).length||o.some(function(s){var c=t[s],u=i[s];return Array.isArray(u)?c.join(",")!==u.join(","):c!==u});t=i,a&&l&&r(i)}}const jv=!!(typeof window<"u"&&window.document&&window.document.createElement);var gn;function oo(e){if((!gn&&gn!==0||e)&&jv){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),gn=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return gn}function Il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Rl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Il(Object(n),!0).forEach(function(r){M(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Il(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fv(e,t,n){return t=he(t),$e(e,uu()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function uu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uu=function(){return!!e})()}var Bv=150,qt={OBSERVED:"observed",REQUESTED:"requested"},ii=(function(e){function t(){var n;Ie(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Fv(this,t,[].concat(i)),M(n,"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),M(n,"_calculateSizeAndPositionDataOnNextUpdate",!1),M(n,"_onSectionRenderedMemoizer",lr()),M(n,"_onScrollMemoizer",lr(!1)),M(n,"_invokeOnSectionRenderedHelper",function(){var a=n.props,l=a.cellLayoutManager,s=a.onSectionRendered;n._onSectionRenderedMemoizer({callback:s,indices:{indices:l.getLastRenderedIndices()}})}),M(n,"_setScrollingContainerRef",function(a){n._scrollingContainer=a}),M(n,"_updateScrollPositionForScrollToCell",function(){var a=n.props,l=a.cellLayoutManager,s=a.height,c=a.scrollToAlignment,u=a.scrollToCell,d=a.width,f=n.state,p=f.scrollLeft,h=f.scrollTop;if(u>=0){var m=l.getScrollPositionForCell({align:c,cellIndex:u,height:s,scrollLeft:p,scrollTop:h,width:d});(m.scrollLeft!==p||m.scrollTop!==h)&&n._setScrollPosition(m)}}),M(n,"_onScroll",function(a){if(a.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var l=n.props,s=l.cellLayoutManager,c=l.height,u=l.isScrollingChange,d=l.width,f=n._scrollbarSize,p=s.getTotalSize(),h=p.height,m=p.width,b=Math.max(0,Math.min(m-d+f,a.target.scrollLeft)),y=Math.max(0,Math.min(h-c+f,a.target.scrollTop));if(n.state.scrollLeft!==b||n.state.scrollTop!==y){var x=a.cancelable?qt.OBSERVED:qt.REQUESTED;n.state.isScrolling||u(!0),n.setState({isScrolling:!0,scrollLeft:b,scrollPositionChangeReason:x,scrollTop:y})}n._invokeOnScrollMemoizer({scrollLeft:b,scrollTop:y,totalWidth:m,totalHeight:h})}}),n._scrollbarSize=oo(),n._scrollbarSize===void 0?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return Be(t,e),we(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var r=this.props,i=r.cellLayoutManager,o=r.scrollLeft,a=r.scrollToCell,l=r.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=oo(),this._scrollbarSizeMeasured=!0,this.setState({})),a>=0?this._updateScrollPositionForScrollToCell():(o>=0||l>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:l}),this._invokeOnSectionRenderedHelper();var s=i.getTotalSize(),c=s.height,u=s.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:l||0,totalHeight:c,totalWidth:u})}},{key:"componentDidUpdate",value:function(r,i){var o=this.props,a=o.height,l=o.scrollToAlignment,s=o.scrollToCell,c=o.width,u=this.state,d=u.scrollLeft,f=u.scrollPositionChangeReason,p=u.scrollTop;f===qt.REQUESTED&&(d>=0&&d!==i.scrollLeft&&d!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=d),p>=0&&p!==i.scrollTop&&p!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=p)),(a!==r.height||l!==r.scrollToAlignment||s!==r.scrollToCell||c!==r.width)&&this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var r=this.props,i=r.autoHeight,o=r.cellCount,a=r.cellLayoutManager,l=r.className,s=r.height,c=r.horizontalOverscanSize,u=r.id,d=r.noContentRenderer,f=r.style,p=r.verticalOverscanSize,h=r.width,m=this.state,b=m.isScrolling,y=m.scrollLeft,x=m.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==a||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=a,this._calculateSizeAndPositionDataOnNextUpdate=!1,a.calculateSizeAndPositionData());var R=a.getTotalSize(),T=R.height,E=R.width,C=Math.max(0,y-c),D=Math.max(0,x-p),w=Math.min(E,y+h+c),_=Math.min(T,x+s+p),I=s>0&&h>0?a.cellRenderers({height:_-D,isScrolling:b,width:w-C,x:C,y:D}):[],P={boxSizing:"border-box",direction:"ltr",height:i?"auto":s,position:"relative",WebkitOverflowScrolling:"touch",width:h,willChange:"transform"},L=T>s?this._scrollbarSize:0,N=E>h?this._scrollbarSize:0;return P.overflowX=E+L<=h?"hidden":"auto",P.overflowY=T+N<=s?"hidden":"auto",v.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:rt("ReactVirtualized__Collection",l),id:u,onScroll:this._onScroll,role:"grid",style:Rl(Rl({},P),f),tabIndex:0},o>0&&v.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:T,maxHeight:T,maxWidth:E,overflow:"hidden",pointerEvents:b?"none":"",width:E}},I),o===0&&d())}},{key:"_enablePointerEventsAfterDelay",value:function(){var r=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){var i=r.props.isScrollingChange;i(!1),r._disablePointerEventsTimeoutId=null,r.setState({isScrolling:!1})},Bv)}},{key:"_invokeOnScrollMemoizer",value:function(r){var i=this,o=r.scrollLeft,a=r.scrollTop,l=r.totalHeight,s=r.totalWidth;this._onScrollMemoizer({callback:function(u){var d=u.scrollLeft,f=u.scrollTop,p=i.props,h=p.height,m=p.onScroll,b=p.width;m({clientHeight:h,clientWidth:b,scrollHeight:l,scrollLeft:d,scrollTop:f,scrollWidth:s})},indices:{scrollLeft:o,scrollTop:a}})}},{key:"_setScrollPosition",value:function(r){var i=r.scrollLeft,o=r.scrollTop,a={scrollPositionChangeReason:qt.REQUESTED};i>=0&&(a.scrollLeft=i),o>=0&&(a.scrollTop=o),(i>=0&&i!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(a)}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.cellCount===0&&(i.scrollLeft!==0||i.scrollTop!==0)?{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:qt.REQUESTED}:r.scrollLeft!==i.scrollLeft||r.scrollTop!==i.scrollTop?{scrollLeft:r.scrollLeft!=null?r.scrollLeft:i.scrollLeft,scrollTop:r.scrollTop!=null?r.scrollTop:i.scrollTop,scrollPositionChangeReason:qt.REQUESTED}:null}}])})(v.PureComponent);M(ii,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0});ii.propTypes={};tn(ii);var $v=(function(){function e(t){var n=t.height,r=t.width,i=t.x,o=t.y;Ie(this,e),this.height=n,this.width=r,this.x=i,this.y=o,this._indexMap={},this._indices=[]}return we(e,[{key:"addCellIndex",value:function(n){var r=n.index;this._indexMap[r]||(this._indexMap[r]=!0,this._indices.push(r))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}])})(),Gv=100,Wv=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gv;Ie(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return we(e,[{key:"getCellIndices",value:function(n){var r=n.height,i=n.width,o=n.x,a=n.y,l={};return this.getSections({height:r,width:i,x:o,y:a}).forEach(function(s){return s.getCellIndices().forEach(function(c){l[c]=c})}),Object.keys(l).map(function(s){return l[s]})}},{key:"getCellMetadata",value:function(n){var r=n.index;return this._cellMetadata[r]}},{key:"getSections",value:function(n){for(var r=n.height,i=n.width,o=n.x,a=n.y,l=Math.floor(o/this._sectionSize),s=Math.floor((o+i-1)/this._sectionSize),c=Math.floor(a/this._sectionSize),u=Math.floor((a+r-1)/this._sectionSize),d=[],f=l;f<=s;f++)for(var p=c;p<=u;p++){var h="".concat(f,".").concat(p);this._sections[h]||(this._sections[h]=new $v({height:this._sectionSize,width:this._sectionSize,x:f*this._sectionSize,y:p*this._sectionSize})),d.push(this._sections[h])}return d}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var n=this;return Object.keys(this._sections).map(function(r){return n._sections[r].toString()})}},{key:"registerCell",value:function(n){var r=n.cellMetadatum,i=n.index;this._cellMetadata[i]=r,this.getSections(r).forEach(function(o){return o.addCellIndex({index:i})})}}])})();function Hv(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,r=e.sectionSize,i=[],o=new Wv(r),a=0,l=0,s=0;s<t;s++){var c=n({index:s});if(c.height==null||isNaN(c.height)||c.width==null||isNaN(c.width)||c.x==null||isNaN(c.x)||c.y==null||isNaN(c.y))throw Error("Invalid metadata returned for cell ".concat(s,`:
49
- x:`).concat(c.x,", y:").concat(c.y,", width:").concat(c.width,", height:").concat(c.height));a=Math.max(a,c.y+c.height),l=Math.max(l,c.x+c.width),i[s]=c,o.registerCell({cellMetadatum:c,index:s})}return{cellMetadata:i,height:a,sectionManager:o,width:l}}function _l(e){var t=e.align,n=t===void 0?"auto":t,r=e.cellOffset,i=e.cellSize,o=e.containerSize,a=e.currentOffset,l=r,s=l-o+i;switch(n){case"start":return l;case"end":return s;case"center":return l-(o-i)/2;default:return Math.max(s,Math.min(l,a))}}function Uv(e,t,n){return t=he(t),$e(e,du()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function du(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(du=function(){return!!e})()}var fu=(function(e){function t(n,r){var i;return Ie(this,t),i=Uv(this,t,[n,r]),i._cellMetadata=[],i._lastRenderedCellIndices=[],i._cellCache=[],i._isScrollingChange=i._isScrollingChange.bind(i),i._setCollectionViewRef=i._setCollectionViewRef.bind(i),i}return Be(t,e),we(t,[{key:"forceUpdate",value:function(){this._collectionView!==void 0&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var r=q({},(zv(this.props),this.props));return v.createElement(ii,q({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},r))}},{key:"calculateSizeAndPositionData",value:function(){var r=this.props,i=r.cellCount,o=r.cellSizeAndPositionGetter,a=r.sectionSize,l=Hv({cellCount:i,cellSizeAndPositionGetter:o,sectionSize:a});this._cellMetadata=l.cellMetadata,this._sectionManager=l.sectionManager,this._height=l.height,this._width=l.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(r){var i=r.align,o=r.cellIndex,a=r.height,l=r.scrollLeft,s=r.scrollTop,c=r.width,u=this.props.cellCount;if(o>=0&&o<u){var d=this._cellMetadata[o];l=_l({align:i,cellOffset:d.x,cellSize:d.width,containerSize:c,currentOffset:l}),s=_l({align:i,cellOffset:d.y,cellSize:d.height,containerSize:a,currentOffset:s})}return{scrollLeft:l,scrollTop:s}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(r){var i=this,o=r.height,a=r.isScrolling,l=r.width,s=r.x,c=r.y,u=this.props,d=u.cellGroupRenderer,f=u.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:l,x:s,y:c}),d({cellCache:this._cellCache,cellRenderer:f,cellSizeAndPositionGetter:function(h){var m=h.index;return i._sectionManager.getCellMetadata({index:m})},indices:this._lastRenderedCellIndices,isScrolling:a})}},{key:"_isScrollingChange",value:function(r){r||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(r){this._collectionView=r}}])})(v.PureComponent);M(fu,"defaultProps",{"aria-label":"grid",cellGroupRenderer:Vv});fu.propTypes={};function Vv(e){var t=e.cellCache,n=e.cellRenderer,r=e.cellSizeAndPositionGetter,i=e.indices,o=e.isScrolling;return i.map(function(a){var l=r({index:a}),s={index:a,isScrolling:o,key:a,style:{height:l.height,left:l.x,position:"absolute",top:l.y,width:l.width}};return o?(a in t||(t[a]=n(s)),t[a]):n(s)}).filter(function(a){return!!a})}function qv(e,t,n){return t=he(t),$e(e,pu()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function pu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pu=function(){return!!e})()}var Kv=(function(e){function t(n,r){var i;return Ie(this,t),i=qv(this,t,[n,r]),i._registerChild=i._registerChild.bind(i),i}return Be(t,e),we(t,[{key:"componentDidUpdate",value:function(r){var i=this.props,o=i.columnMaxWidth,a=i.columnMinWidth,l=i.columnCount,s=i.width;(o!==r.columnMaxWidth||a!==r.columnMinWidth||l!==r.columnCount||s!==r.width)&&this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var r=this.props,i=r.children,o=r.columnMaxWidth,a=r.columnMinWidth,l=r.columnCount,s=r.width,c=a||1,u=o?Math.min(o,s):s,d=s/l;d=Math.max(c,d),d=Math.min(u,d),d=Math.floor(d);var f=Math.min(s,d*l);return i({adjustedWidth:f,columnWidth:d,getColumnWidth:function(){return d},registerChild:this._registerChild})}},{key:"_registerChild",value:function(r){if(r&&typeof r.recomputeGridSize!="function")throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=r,this._registeredChild&&this._registeredChild.recomputeGridSize()}}])})(v.PureComponent);Kv.propTypes={};function Dl(e){var t=e.cellCount,n=e.cellSize,r=e.computeMetadataCallback,i=e.computeMetadataCallbackProps,o=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;(t!==o||(typeof n=="number"||typeof a=="number")&&n!==a)&&(r(i),s>=0&&s===l&&c())}function er(e,t){if(e==null)return{};var n,r,i=ar(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Yv=(function(){function e(t){var n=t.cellCount,r=t.cellSizeGetter,i=t.estimatedCellSize;Ie(this,e),M(this,"_cellSizeAndPositionData",{}),M(this,"_lastMeasuredIndex",-1),M(this,"_lastBatchedIndex",-1),M(this,"_cellCount",void 0),M(this,"_cellSizeGetter",void 0),M(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=n,this._estimatedCellSize=i}return we(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(n){var r=n.cellCount,i=n.estimatedCellSize,o=n.cellSizeGetter;this._cellCount=r,this._estimatedCellSize=i,this._cellSizeGetter=o}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(n){if(n<0||n>=this._cellCount)throw Error("Requested index ".concat(n," is outside of range 0..").concat(this._cellCount));if(n>this._lastMeasuredIndex)for(var r=this.getSizeAndPositionOfLastMeasuredCell(),i=r.offset+r.size,o=this._lastMeasuredIndex+1;o<=n;o++){var a=this._cellSizeGetter({index:o});if(a===void 0||isNaN(a))throw Error("Invalid size returned for cell ".concat(o," of value ").concat(a));a===null?(this._cellSizeAndPositionData[o]={offset:i,size:0},this._lastBatchedIndex=n):(this._cellSizeAndPositionData[o]={offset:i,size:a},i+=a,this._lastMeasuredIndex=n)}return this._cellSizeAndPositionData[n]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var n=this.getSizeAndPositionOfLastMeasuredCell(),r=n.offset+n.size,i=this._cellCount-this._lastMeasuredIndex-1,o=i*this._estimatedCellSize;return r+o}},{key:"getUpdatedOffsetForIndex",value:function(n){var r=n.align,i=r===void 0?"auto":r,o=n.containerSize,a=n.currentOffset,l=n.targetIndex;if(o<=0)return 0;var s=this.getSizeAndPositionOfCell(l),c=s.offset,u=c-o+s.size,d;switch(i){case"start":d=c;break;case"end":d=u;break;case"center":d=c-(o-s.size)/2;break;default:d=Math.max(u,Math.min(c,a));break}var f=this.getTotalSize();return Math.max(0,Math.min(f-o,d))}},{key:"getVisibleCellRange",value:function(n){var r=n.containerSize,i=n.offset,o=this.getTotalSize();if(o===0)return{};var a=i+r,l=this._findNearestCell(i),s=this.getSizeAndPositionOfCell(l);i=s.offset+s.size;for(var c=l;i<a&&c<this._cellCount-1;)c++,i+=this.getSizeAndPositionOfCell(c).size;return{start:l,stop:c}}},{key:"resetCell",value:function(n){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,n-1)}},{key:"_binarySearch",value:function(n,r,i){for(;r<=n;){var o=r+Math.floor((n-r)/2),a=this.getSizeAndPositionOfCell(o).offset;if(a===i)return o;a<i?r=o+1:a>i&&(n=o-1)}return r>0?r-1:0}},{key:"_exponentialSearch",value:function(n,r){for(var i=1;n<this._cellCount&&this.getSizeAndPositionOfCell(n).offset<r;)n+=i,i*=2;return this._binarySearch(Math.min(n,this._cellCount-1),Math.floor(n/2),r)}},{key:"_findNearestCell",value:function(n){if(isNaN(n))throw Error("Invalid offset ".concat(n," specified"));n=Math.max(0,n);var r=this.getSizeAndPositionOfLastMeasuredCell(),i=Math.max(0,this._lastMeasuredIndex);return r.offset>=n?this._binarySearch(i,0,n):this._exponentialSearch(i,n)}}])})(),Jv=15e5,Xv=16777100,Qv=function(){return typeof window<"u"},Zv=function(){return!!window.chrome},em=function(){return Qv()&&Zv()?Xv:Jv},tm=["maxScrollSize"],Tl=(function(){function e(t){var n=t.maxScrollSize,r=n===void 0?em():n,i=er(t,tm);Ie(this,e),M(this,"_cellSizeAndPositionManager",void 0),M(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Yv(i),this._maxScrollSize=r}return we(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(n){this._cellSizeAndPositionManager.configure(n)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(n){var r=n.containerSize,i=n.offset,o=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize(),l=this._getOffsetPercentage({containerSize:r,offset:i,totalSize:a});return Math.round(l*(a-o))}},{key:"getSizeAndPositionOfCell",value:function(n){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(n)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(n){var r=n.align,i=r===void 0?"auto":r,o=n.containerSize,a=n.currentOffset,l=n.targetIndex;a=this._safeOffsetToOffset({containerSize:o,offset:a});var s=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:o,currentOffset:a,targetIndex:l});return this._offsetToSafeOffset({containerSize:o,offset:s})}},{key:"getVisibleCellRange",value:function(n){var r=n.containerSize,i=n.offset;return i=this._safeOffsetToOffset({containerSize:r,offset:i}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:r,offset:i})}},{key:"resetCell",value:function(n){this._cellSizeAndPositionManager.resetCell(n)}},{key:"_getOffsetPercentage",value:function(n){var r=n.containerSize,i=n.offset,o=n.totalSize;return o<=r?0:i/(o-r)}},{key:"_offsetToSafeOffset",value:function(n){var r=n.containerSize,i=n.offset,o=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(o===a)return i;var l=this._getOffsetPercentage({containerSize:r,offset:i,totalSize:o});return Math.round(l*(a-r))}},{key:"_safeOffsetToOffset",value:function(n){var r=n.containerSize,i=n.offset,o=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(o===a)return i;var l=this._getOffsetPercentage({containerSize:r,offset:i,totalSize:a});return Math.round(l*(o-r))}}])})(),vn=-1,ut=1;function rm(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return r===ut?{overscanStartIndex:Math.max(0,i),overscanStopIndex:Math.min(t-1,o+n)}:{overscanStartIndex:Math.max(0,i-n),overscanStopIndex:Math.min(t-1,o)}}function El(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,r=e.previousCellsCount,i=e.previousCellSize,o=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,d=e.size,f=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=n.getCellCount(),m=u>=0&&u<h,b=d!==l||f||!i||typeof t=="number"&&t!==i;m&&(b||c!==o||u!==a)?p(u):!m&&h>0&&(d<l||h<r)&&s>n.getTotalSize()-d&&p(h-1)}function nm(e){for(var t=e.cellCache,n=e.cellRenderer,r=e.columnSizeAndPositionManager,i=e.columnStartIndex,o=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,c=e.isScrollingOptOut,u=e.parent,d=e.rowSizeAndPositionManager,f=e.rowStartIndex,p=e.rowStopIndex,h=e.styleCache,m=e.verticalOffsetAdjustment,b=e.visibleColumnIndices,y=e.visibleRowIndices,x=[],R=r.areOffsetsAdjusted()||d.areOffsetsAdjusted(),T=!s&&!R,E=f;E<=p;E++)for(var C=d.getSizeAndPositionOfCell(E),D=i;D<=o;D++){var w=r.getSizeAndPositionOfCell(D),_=D>=b.start&&D<=b.stop&&E>=y.start&&E<=y.stop,I="".concat(E,"-").concat(D),P=void 0;T&&h[I]?P=h[I]:a&&!a.has(E,D)?P={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(P={height:C.size,left:w.offset+l,position:"absolute",top:C.offset+m,width:w.size},h[I]=P);var L={columnIndex:D,isScrolling:s,isVisible:_,key:I,parent:u,rowIndex:E,style:P},N=void 0;(c||s)&&!l&&!m?(t[I]||(t[I]=n(L)),N=t[I]):N=n(L),!(N==null||N===!1)&&(N.props.role||(N=Q.cloneElement(N,{role:"gridcell"})),x.push(N))}return x}var je;typeof window<"u"?je=window:typeof self<"u"?je=self:je={};var im=je.requestAnimationFrame||je.webkitRequestAnimationFrame||je.mozRequestAnimationFrame||je.oRequestAnimationFrame||je.msRequestAnimationFrame||function(e){return je.setTimeout(e,1e3/60)},om=je.cancelAnimationFrame||je.webkitCancelAnimationFrame||je.mozCancelAnimationFrame||je.oCancelAnimationFrame||je.msCancelAnimationFrame||function(e){je.clearTimeout(e)},kl=im,am=om,sr=function(t){return am(t.id)},Uo=function(t,n){var r;Promise.resolve().then(function(){r=Date.now()});var i=function(){Date.now()-r>=n?t.call():o.id=kl(i)},o={id:kl(i)};return o};function Pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pl(Object(n),!0).forEach(function(r){M(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lm(e,t,n){return t=he(t),$e(e,hu()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function hu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hu=function(){return!!e})()}var sm=150,wi={OBSERVED:"observed",REQUESTED:"requested"},cm=function(){return null},bt=(function(e){function t(n){var r;Ie(this,t),r=lm(this,t,[n]),M(r,"_onGridRenderedMemoizer",lr()),M(r,"_onScrollMemoizer",lr(!1)),M(r,"_deferredInvalidateColumnIndex",null),M(r,"_deferredInvalidateRowIndex",null),M(r,"_recomputeScrollLeftFlag",!1),M(r,"_recomputeScrollTopFlag",!1),M(r,"_horizontalScrollBarSize",0),M(r,"_verticalScrollBarSize",0),M(r,"_scrollbarPresenceChanged",!1),M(r,"_scrollingContainer",void 0),M(r,"_childrenToDisplay",void 0),M(r,"_columnStartIndex",void 0),M(r,"_columnStopIndex",void 0),M(r,"_rowStartIndex",void 0),M(r,"_rowStopIndex",void 0),M(r,"_renderedColumnStartIndex",0),M(r,"_renderedColumnStopIndex",0),M(r,"_renderedRowStartIndex",0),M(r,"_renderedRowStopIndex",0),M(r,"_initialScrollTop",void 0),M(r,"_initialScrollLeft",void 0),M(r,"_disablePointerEventsTimeoutId",void 0),M(r,"_styleCache",{}),M(r,"_cellCache",{}),M(r,"_debounceScrollEndedCallback",function(){r._disablePointerEventsTimeoutId=null,r.setState({isScrolling:!1,needToResetStyleCache:!1})}),M(r,"_invokeOnGridRenderedHelper",function(){var a=r.props.onSectionRendered;r._onGridRenderedMemoizer({callback:a,indices:{columnOverscanStartIndex:r._columnStartIndex,columnOverscanStopIndex:r._columnStopIndex,columnStartIndex:r._renderedColumnStartIndex,columnStopIndex:r._renderedColumnStopIndex,rowOverscanStartIndex:r._rowStartIndex,rowOverscanStopIndex:r._rowStopIndex,rowStartIndex:r._renderedRowStartIndex,rowStopIndex:r._renderedRowStopIndex}})}),M(r,"_setScrollingContainerRef",function(a){r._scrollingContainer=a,typeof r.props.elementRef=="function"?r.props.elementRef(a):Vc(r.props.elementRef)==="object"&&(r.props.elementRef.current=a)}),M(r,"_onScroll",function(a){a.target===r._scrollingContainer&&r.handleScrollEvent(a.target)});var i=new Tl({cellCount:n.columnCount,cellSizeGetter:function(l){return t._wrapSizeGetter(n.columnWidth)(l)},estimatedCellSize:t._getEstimatedColumnSize(n)}),o=new Tl({cellCount:n.rowCount,cellSizeGetter:function(l){return t._wrapSizeGetter(n.rowHeight)(l)},estimatedCellSize:t._getEstimatedRowSize(n)});return r.state={instanceProps:{columnSizeAndPositionManager:i,rowSizeAndPositionManager:o,prevColumnWidth:n.columnWidth,prevRowHeight:n.rowHeight,prevColumnCount:n.columnCount,prevRowCount:n.rowCount,prevIsScrolling:n.isScrolling===!0,prevScrollToColumn:n.scrollToColumn,prevScrollToRow:n.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:ut,scrollDirectionVertical:ut,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},n.scrollToRow>0&&(r._initialScrollTop=r._getCalculatedScrollTop(n,r.state)),n.scrollToColumn>0&&(r._initialScrollLeft=r._getCalculatedScrollLeft(n,r.state)),r}return Be(t,e),we(t,[{key:"getOffsetForCell",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.alignment,o=i===void 0?this.props.scrollToAlignment:i,a=r.columnIndex,l=a===void 0?this.props.scrollToColumn:a,s=r.rowIndex,c=s===void 0?this.props.scrollToRow:s,u=Ge(Ge({},this.props),{},{scrollToAlignment:o,scrollToColumn:l,scrollToRow:c});return{scrollLeft:this._getCalculatedScrollLeft(u),scrollTop:this._getCalculatedScrollTop(u)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(r){var i=r.scrollLeft,o=i===void 0?0:i,a=r.scrollTop,l=a===void 0?0:a;if(!(l<0)){this._debounceScrollEnded();var s=this.props,c=s.autoHeight,u=s.autoWidth,d=s.height,f=s.width,p=this.state.instanceProps,h=p.scrollbarSize,m=p.rowSizeAndPositionManager.getTotalSize(),b=p.columnSizeAndPositionManager.getTotalSize(),y=Math.min(Math.max(0,b-f+h),o),x=Math.min(Math.max(0,m-d+h),l);if(this.state.scrollLeft!==y||this.state.scrollTop!==x){var R=y!==this.state.scrollLeft?y>this.state.scrollLeft?ut:vn:this.state.scrollDirectionHorizontal,T=x!==this.state.scrollTop?x>this.state.scrollTop?ut:vn:this.state.scrollDirectionVertical,E={isScrolling:!0,scrollDirectionHorizontal:R,scrollDirectionVertical:T,scrollPositionChangeReason:wi.OBSERVED};c||(E.scrollTop=x),u||(E.scrollLeft=y),E.needToResetStyleCache=!1,this.setState(E)}this._invokeOnScrollMemoizer({scrollLeft:y,scrollTop:x,totalColumnsWidth:b,totalRowsHeight:m})}}},{key:"invalidateCellSizeAfterRender",value:function(r){var i=r.columnIndex,o=r.rowIndex;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,i):i,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var r=this.props,i=r.columnCount,o=r.rowCount,a=this.state.instanceProps;a.columnSizeAndPositionManager.getSizeAndPositionOfCell(i-1),a.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.columnIndex,o=i===void 0?0:i,a=r.rowIndex,l=a===void 0?0:a,s=this.props,c=s.scrollToColumn,u=s.scrollToRow,d=this.state.instanceProps;d.columnSizeAndPositionManager.resetCell(o),d.rowSizeAndPositionManager.resetCell(l),this._recomputeScrollLeftFlag=c>=0&&(this.state.scrollDirectionHorizontal===ut?o<=c:o>=c),this._recomputeScrollTopFlag=u>=0&&(this.state.scrollDirectionVertical===ut?l<=u:l>=u),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(r){var i=r.columnIndex,o=r.rowIndex,a=this.props.columnCount,l=this.props;a>1&&i!==void 0&&this._updateScrollLeftForScrollToColumn(Ge(Ge({},l),{},{scrollToColumn:i})),o!==void 0&&this._updateScrollTopForScrollToRow(Ge(Ge({},l),{},{scrollToRow:o}))}},{key:"componentDidMount",value:function(){var r=this.props,i=r.getScrollbarSize,o=r.height,a=r.scrollLeft,l=r.scrollToColumn,s=r.scrollTop,c=r.scrollToRow,u=r.width,d=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),d.scrollbarSizeMeasured||this.setState(function(h){var m=Ge(Ge({},h),{},{needToResetStyleCache:!1});return m.instanceProps.scrollbarSize=i(),m.instanceProps.scrollbarSizeMeasured=!0,m}),typeof a=="number"&&a>=0||typeof s=="number"&&s>=0){var f=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:a,scrollTop:s});f&&(f.needToResetStyleCache=!1,this.setState(f))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var p=o>0&&u>0;l>=0&&p&&this._updateScrollLeftForScrollToColumn(),c>=0&&p&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:a||0,scrollTop:s||0,totalColumnsWidth:d.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:d.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(r,i){var o=this,a=this.props,l=a.autoHeight,s=a.autoWidth,c=a.columnCount,u=a.height,d=a.rowCount,f=a.scrollToAlignment,p=a.scrollToColumn,h=a.scrollToRow,m=a.width,b=this.state,y=b.scrollLeft,x=b.scrollPositionChangeReason,R=b.scrollTop,T=b.instanceProps;this._handleInvalidatedGridSize();var E=c>0&&r.columnCount===0||d>0&&r.rowCount===0;x===wi.REQUESTED&&(!s&&y>=0&&(y!==this._scrollingContainer.scrollLeft||E)&&(this._scrollingContainer.scrollLeft=y),!l&&R>=0&&(R!==this._scrollingContainer.scrollTop||E)&&(this._scrollingContainer.scrollTop=R));var C=(r.width===0||r.height===0)&&u>0&&m>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):El({cellSizeAndPositionManager:T.columnSizeAndPositionManager,previousCellsCount:r.columnCount,previousCellSize:r.columnWidth,previousScrollToAlignment:r.scrollToAlignment,previousScrollToIndex:r.scrollToColumn,previousSize:r.width,scrollOffset:y,scrollToAlignment:f,scrollToIndex:p,size:m,sizeJustIncreasedFromZero:C,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):El({cellSizeAndPositionManager:T.rowSizeAndPositionManager,previousCellsCount:r.rowCount,previousCellSize:r.rowHeight,previousScrollToAlignment:r.scrollToAlignment,previousScrollToIndex:r.scrollToRow,previousSize:r.height,scrollOffset:R,scrollToAlignment:f,scrollToIndex:h,size:u,sizeJustIncreasedFromZero:C,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),y!==i.scrollLeft||R!==i.scrollTop){var D=T.rowSizeAndPositionManager.getTotalSize(),w=T.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:y,scrollTop:R,totalColumnsWidth:w,totalRowsHeight:D})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&sr(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var r=this.props,i=r.autoContainerWidth,o=r.autoHeight,a=r.autoWidth,l=r.className,s=r.containerProps,c=r.containerRole,u=r.containerStyle,d=r.height,f=r.id,p=r.noContentRenderer,h=r.role,m=r.style,b=r.tabIndex,y=r.width,x=this.state,R=x.instanceProps,T=x.needToResetStyleCache,E=this._isScrolling(),C={boxSizing:"border-box",direction:"ltr",height:o?"auto":d,position:"relative",width:a?"auto":y,WebkitOverflowScrolling:"touch",willChange:"transform"};T&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var D=R.columnSizeAndPositionManager.getTotalSize(),w=R.rowSizeAndPositionManager.getTotalSize(),_=w>d?R.scrollbarSize:0,I=D>y?R.scrollbarSize:0;(I!==this._horizontalScrollBarSize||_!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=I,this._verticalScrollBarSize=_,this._scrollbarPresenceChanged=!0),C.overflowX=D+_<=y?"hidden":"auto",C.overflowY=w+I<=d?"hidden":"auto";var P=this._childrenToDisplay,L=P.length===0&&d>0&&y>0;return v.createElement("div",q({ref:this._setScrollingContainerRef},s,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:rt("ReactVirtualized__Grid",l),id:f,onScroll:this._onScroll,role:h,style:Ge(Ge({},C),m),tabIndex:b}),P.length>0&&v.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:c,style:Ge({width:i?"auto":D,height:w,maxWidth:D,maxHeight:w,overflow:"hidden",pointerEvents:E?"none":"",position:"relative"},u)},P),L&&p())}},{key:"_calculateChildrenToRender",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,o=r.cellRenderer,a=r.cellRangeRenderer,l=r.columnCount,s=r.deferredMeasurementCache,c=r.height,u=r.overscanColumnCount,d=r.overscanIndicesGetter,f=r.overscanRowCount,p=r.rowCount,h=r.width,m=r.isScrollingOptOut,b=i.scrollDirectionHorizontal,y=i.scrollDirectionVertical,x=i.instanceProps,R=this._initialScrollTop>0?this._initialScrollTop:i.scrollTop,T=this._initialScrollLeft>0?this._initialScrollLeft:i.scrollLeft,E=this._isScrolling(r,i);if(this._childrenToDisplay=[],c>0&&h>0){var C=x.columnSizeAndPositionManager.getVisibleCellRange({containerSize:h,offset:T}),D=x.rowSizeAndPositionManager.getVisibleCellRange({containerSize:c,offset:R}),w=x.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:h,offset:T}),_=x.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:c,offset:R});this._renderedColumnStartIndex=C.start,this._renderedColumnStopIndex=C.stop,this._renderedRowStartIndex=D.start,this._renderedRowStopIndex=D.stop;var I=d({direction:"horizontal",cellCount:l,overscanCellsCount:u,scrollDirection:b,startIndex:typeof C.start=="number"?C.start:0,stopIndex:typeof C.stop=="number"?C.stop:-1}),P=d({direction:"vertical",cellCount:p,overscanCellsCount:f,scrollDirection:y,startIndex:typeof D.start=="number"?D.start:0,stopIndex:typeof D.stop=="number"?D.stop:-1}),L=I.overscanStartIndex,N=I.overscanStopIndex,W=P.overscanStartIndex,O=P.overscanStopIndex;if(s){if(!s.hasFixedHeight()){for(var F=W;F<=O;F++)if(!s.has(F,0)){L=0,N=l-1;break}}if(!s.hasFixedWidth()){for(var G=L;G<=N;G++)if(!s.has(0,G)){W=0,O=p-1;break}}}this._childrenToDisplay=a({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:x.columnSizeAndPositionManager,columnStartIndex:L,columnStopIndex:N,deferredMeasurementCache:s,horizontalOffsetAdjustment:w,isScrolling:E,isScrollingOptOut:m,parent:this,rowSizeAndPositionManager:x.rowSizeAndPositionManager,rowStartIndex:W,rowStopIndex:O,scrollLeft:T,scrollTop:R,styleCache:this._styleCache,verticalOffsetAdjustment:_,visibleColumnIndices:C,visibleRowIndices:D}),this._columnStartIndex=L,this._columnStopIndex=N,this._rowStartIndex=W,this._rowStopIndex=O}}},{key:"_debounceScrollEnded",value:function(){var r=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&sr(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Uo(this._debounceScrollEndedCallback,r)}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"&&typeof this._deferredInvalidateRowIndex=="number"){var r=this._deferredInvalidateColumnIndex,i=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:r,rowIndex:i})}}},{key:"_invokeOnScrollMemoizer",value:function(r){var i=this,o=r.scrollLeft,a=r.scrollTop,l=r.totalColumnsWidth,s=r.totalRowsHeight;this._onScrollMemoizer({callback:function(u){var d=u.scrollLeft,f=u.scrollTop,p=i.props,h=p.height,m=p.onScroll,b=p.width;m({clientHeight:h,clientWidth:b,scrollHeight:s,scrollLeft:d,scrollTop:f,scrollWidth:l})},indices:{scrollLeft:o,scrollTop:a}})}},{key:"_isScrolling",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return Object.hasOwnProperty.call(r,"isScrolling")?!!r.isScrolling:!!i.isScrolling}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var r=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,r({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(r){var i=r.scrollLeft,o=r.scrollTop,a=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:i,scrollTop:o});a&&(a.needToResetStyleCache=!1,this.setState(a))}},{key:"_getCalculatedScrollLeft",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return t._getCalculatedScrollLeft(r,i)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,o=t._getScrollLeftForScrollToColumnStateUpdate(r,i);o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollTop",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return t._getCalculatedScrollTop(r,i)}},{key:"_resetStyleCache",value:function(){var r=this._styleCache,i=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var a=this._rowStartIndex;a<=this._rowStopIndex;a++)for(var l=this._columnStartIndex;l<=this._columnStopIndex;l++){var s="".concat(a,"-").concat(l);this._styleCache[s]=r[s],o&&(this._cellCache[s]=i[s])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,o=t._getScrollTopForScrollToRowStateUpdate(r,i);o&&(o.needToResetStyleCache=!1,this.setState(o))}}],[{key:"getDerivedStateFromProps",value:function(r,i){var o={};r.columnCount===0&&i.scrollLeft!==0||r.rowCount===0&&i.scrollTop!==0?(o.scrollLeft=0,o.scrollTop=0):(r.scrollLeft!==i.scrollLeft&&r.scrollToColumn<0||r.scrollTop!==i.scrollTop&&r.scrollToRow<0)&&Object.assign(o,t._getScrollToPositionStateUpdate({prevState:i,scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}));var a=i.instanceProps;o.needToResetStyleCache=!1,(r.columnWidth!==a.prevColumnWidth||r.rowHeight!==a.prevRowHeight)&&(o.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:r.columnCount,estimatedCellSize:t._getEstimatedColumnSize(r),cellSizeGetter:t._wrapSizeGetter(r.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:r.rowCount,estimatedCellSize:t._getEstimatedRowSize(r),cellSizeGetter:t._wrapSizeGetter(r.rowHeight)}),(a.prevColumnCount===0||a.prevRowCount===0)&&(a.prevColumnCount=0,a.prevRowCount=0),r.autoHeight&&r.isScrolling===!1&&a.prevIsScrolling===!0&&Object.assign(o,{isScrolling:!1});var l,s;return Dl({cellCount:a.prevColumnCount,cellSize:typeof a.prevColumnWidth=="number"?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:r,nextCellsCount:r.columnCount,nextCellSize:typeof r.columnWidth=="number"?r.columnWidth:null,nextScrollToIndex:r.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){l=t._getScrollLeftForScrollToColumnStateUpdate(r,i)}}),Dl({cellCount:a.prevRowCount,cellSize:typeof a.prevRowHeight=="number"?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:r,nextCellsCount:r.rowCount,nextCellSize:typeof r.rowHeight=="number"?r.rowHeight:null,nextScrollToIndex:r.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){s=t._getScrollTopForScrollToRowStateUpdate(r,i)}}),a.prevColumnCount=r.columnCount,a.prevColumnWidth=r.columnWidth,a.prevIsScrolling=r.isScrolling===!0,a.prevRowCount=r.rowCount,a.prevRowHeight=r.rowHeight,a.prevScrollToColumn=r.scrollToColumn,a.prevScrollToRow=r.scrollToRow,a.scrollbarSize=r.getScrollbarSize(),a.scrollbarSize===void 0?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,o.instanceProps=a,Ge(Ge(Ge({},o),l),s)}},{key:"_getEstimatedColumnSize",value:function(r){return typeof r.columnWidth=="number"?r.columnWidth:r.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(r){return typeof r.rowHeight=="number"?r.rowHeight:r.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(r){var i=r.prevState,o=r.scrollLeft,a=r.scrollTop,l={scrollPositionChangeReason:wi.REQUESTED};return typeof o=="number"&&o>=0&&(l.scrollDirectionHorizontal=o>i.scrollLeft?ut:vn,l.scrollLeft=o),typeof a=="number"&&a>=0&&(l.scrollDirectionVertical=a>i.scrollTop?ut:vn,l.scrollTop=a),typeof o=="number"&&o>=0&&o!==i.scrollLeft||typeof a=="number"&&a>=0&&a!==i.scrollTop?l:{}}},{key:"_wrapSizeGetter",value:function(r){return typeof r=="function"?r:function(){return r}}},{key:"_getCalculatedScrollLeft",value:function(r,i){var o=r.columnCount,a=r.height,l=r.scrollToAlignment,s=r.scrollToColumn,c=r.width,u=i.scrollLeft,d=i.instanceProps;if(o>0){var f=o-1,p=s<0?f:Math.min(f,s),h=d.rowSizeAndPositionManager.getTotalSize(),m=d.scrollbarSizeMeasured&&h>a?d.scrollbarSize:0;return d.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:l,containerSize:c-m,currentOffset:u,targetIndex:p})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(r,i){var o=i.scrollLeft,a=t._getCalculatedScrollLeft(r,i);return typeof a=="number"&&a>=0&&o!==a?t._getScrollToPositionStateUpdate({prevState:i,scrollLeft:a,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(r,i){var o=r.height,a=r.rowCount,l=r.scrollToAlignment,s=r.scrollToRow,c=r.width,u=i.scrollTop,d=i.instanceProps;if(a>0){var f=a-1,p=s<0?f:Math.min(f,s),h=d.columnSizeAndPositionManager.getTotalSize(),m=d.scrollbarSizeMeasured&&h>c?d.scrollbarSize:0;return d.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:l,containerSize:o-m,currentOffset:u,targetIndex:p})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(r,i){var o=i.scrollTop,a=t._getCalculatedScrollTop(r,i);return typeof a=="number"&&a>=0&&o!==a?t._getScrollToPositionStateUpdate({prevState:i,scrollLeft:-1,scrollTop:a}):{}}}])})(v.PureComponent);M(bt,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:nm,containerRole:"row",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:oo,noContentRenderer:cm,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:rm,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:sm,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1});tn(bt);var um=1;function gu(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return n=Math.max(1,n),r===um?{overscanStartIndex:Math.max(0,i-1),overscanStopIndex:Math.min(t-1,o+n)}:{overscanStartIndex:Math.max(0,i-n),overscanStopIndex:Math.min(t-1,o+1)}}function dm(e){if(Array.isArray(e))return dg(e)}function fm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
50
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vu(e){return dm(e)||fm(e)||Wc(e)||pm()}function hm(e,t,n){return t=he(t),$e(e,mu()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function mu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mu=function(){return!!e})()}var bu=(function(e){function t(n,r){var i;return Ie(this,t),i=hm(this,t,[n,r]),i._loadMoreRowsMemoizer=lr(),i._onRowsRendered=i._onRowsRendered.bind(i),i._registerChild=i._registerChild.bind(i),i}return Be(t,e),we(t,[{key:"resetLoadMoreRowsCache",value:function(r){this._loadMoreRowsMemoizer=lr(),r&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){var r=this.props.children;return r({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(r){var i=this,o=this.props.loadMoreRows;r.forEach(function(a){var l=o(a);l&&l.then(function(){gm({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:a.startIndex,stopIndex:a.stopIndex})&&i._registeredChild&&mm(i._registeredChild,i._lastRenderedStartIndex)})})}},{key:"_onRowsRendered",value:function(r){var i=r.startIndex,o=r.stopIndex;this._lastRenderedStartIndex=i,this._lastRenderedStopIndex=o,this._doStuff(i,o)}},{key:"_doStuff",value:function(r,i){var o,a=this,l=this.props,s=l.isRowLoaded,c=l.minimumBatchSize,u=l.rowCount,d=l.threshold,f=vm({isRowLoaded:s,minimumBatchSize:c,rowCount:u,startIndex:Math.max(0,r-d),stopIndex:Math.min(u-1,i+d)}),p=(o=[]).concat.apply(o,vu(f.map(function(h){var m=h.startIndex,b=h.stopIndex;return[m,b]})));this._loadMoreRowsMemoizer({callback:function(){a._loadUnloadedRanges(f)},indices:{squashedUnloadedRanges:p}})}},{key:"_registerChild",value:function(r){this._registeredChild=r}}])})(v.PureComponent);M(bu,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15});bu.propTypes={};function gm(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function vm(e){for(var t=e.isRowLoaded,n=e.minimumBatchSize,r=e.rowCount,i=e.startIndex,o=e.stopIndex,a=[],l=null,s=null,c=i;c<=o;c++){var u=t({index:c});u?s!==null&&(a.push({startIndex:l,stopIndex:s}),l=s=null):(s=c,l===null&&(l=c))}if(s!==null){for(var d=Math.min(Math.max(s,l+n-1),r-1),f=s+1;f<=d&&!t({index:f});f++)s=f;a.push({startIndex:l,stopIndex:s})}if(a.length)for(var p=a[0];p.stopIndex-p.startIndex+1<n&&p.startIndex>0;){var h=p.startIndex-1;if(!t({index:h}))p.startIndex=h;else break}return a}function mm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=typeof e.recomputeGridSize=="function"?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,t):e.forceUpdate()}function bm(e,t,n){return t=he(t),$e(e,yu()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function yu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yu=function(){return!!e})()}var xu=(function(e){function t(){var n;Ie(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=bm(this,t,[].concat(i)),M(n,"Grid",void 0),M(n,"_cellRenderer",function(a){var l=a.parent,s=a.rowIndex,c=a.style,u=a.isScrolling,d=a.isVisible,f=a.key,p=n.props.rowRenderer,h=Object.getOwnPropertyDescriptor(c,"width");return h&&h.writable&&(c.width="100%"),p({index:s,style:c,isScrolling:u,isVisible:d,key:f,parent:l})}),M(n,"_setRef",function(a){n.Grid=a}),M(n,"_onScroll",function(a){var l=a.clientHeight,s=a.scrollHeight,c=a.scrollTop,u=n.props.onScroll;u({clientHeight:l,scrollHeight:s,scrollTop:c})}),M(n,"_onSectionRendered",function(a){var l=a.rowOverscanStartIndex,s=a.rowOverscanStopIndex,c=a.rowStartIndex,u=a.rowStopIndex,d=n.props.onRowsRendered;d({overscanStartIndex:l,overscanStopIndex:s,startIndex:c,stopIndex:u})}),n}return Be(t,e),we(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(r){var i=r.alignment,o=r.index;if(this.Grid){var a=this.Grid.getOffsetForCell({alignment:i,rowIndex:o,columnIndex:0}),l=a.scrollTop;return l}return 0}},{key:"invalidateCellSizeAfterRender",value:function(r){var i=r.columnIndex,o=r.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:i})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.columnIndex,o=i===void 0?0:i,a=r.rowIndex,l=a===void 0?0:a;this.Grid&&this.Grid.recomputeGridSize({rowIndex:l,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:0})}},{key:"scrollToPosition",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:r})}},{key:"scrollToRow",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:r})}},{key:"render",value:function(){var r=this.props,i=r.className,o=r.noRowsRenderer,a=r.scrollToIndex,l=r.width,s=rt("ReactVirtualized__List",i);return v.createElement(bt,q({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:s,columnWidth:l,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:a}))}}])})(v.PureComponent);M(xu,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:gu,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});function ym(e){if(Array.isArray(e))return e}function xm(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(u){c=!0,i=u}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}function Sm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
51
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wm(e,t){return ym(e)||xm(e,t)||Wc(e,t)||Sm()}function Cm(e,t,n,r){for(var i=n+1;t<=n;){var o=t+n>>>1,a=e[o];a>=r?(i=o,n=o-1):t=o+1}return i}function Im(e,t,n,r,i){for(var o=n+1;t<=n;){var a=t+n>>>1,l=e[a];i(l,r)>=0?(o=a,n=a-1):t=a+1}return o}function Rm(e,t,n,r,i){return typeof n=="function"?Im(e,r===void 0?0:r|0,i===void 0?e.length-1:i|0,t,n):Cm(e,n===void 0?0:n|0,r===void 0?e.length-1:r|0,t)}function _m(e,t,n,r){for(var i=n+1;t<=n;){var o=t+n>>>1,a=e[o];a>r?(i=o,n=o-1):t=o+1}return i}function Dm(e,t,n,r,i){for(var o=n+1;t<=n;){var a=t+n>>>1,l=e[a];i(l,r)>0?(o=a,n=a-1):t=a+1}return o}function Tm(e,t,n,r,i){return typeof n=="function"?Dm(e,r===void 0?0:r|0,i===void 0?e.length-1:i|0,t,n):_m(e,n===void 0?0:n|0,r===void 0?e.length-1:r|0,t)}function Em(e,t,n,r){for(var i=t-1;t<=n;){var o=t+n>>>1,a=e[o];a<r?(i=o,t=o+1):n=o-1}return i}function km(e,t,n,r,i){for(var o=t-1;t<=n;){var a=t+n>>>1,l=e[a];i(l,r)<0?(o=a,t=a+1):n=a-1}return o}function Pm(e,t,n,r,i){return typeof n=="function"?km(e,r===void 0?0:r|0,i===void 0?e.length-1:i|0,t,n):Em(e,n===void 0?0:n|0,r===void 0?e.length-1:r|0,t)}function Om(e,t,n,r){for(var i=t-1;t<=n;){var o=t+n>>>1,a=e[o];a<=r?(i=o,t=o+1):n=o-1}return i}function Nm(e,t,n,r,i){for(var o=t-1;t<=n;){var a=t+n>>>1,l=e[a];i(l,r)<=0?(o=a,t=a+1):n=a-1}return o}function Am(e,t,n,r,i){return typeof n=="function"?Nm(e,r===void 0?0:r|0,i===void 0?e.length-1:i|0,t,n):Om(e,n===void 0?0:n|0,r===void 0?e.length-1:r|0,t)}function Mm(e,t,n,r){for(;t<=n;){var i=t+n>>>1,o=e[i];if(o===r)return i;o<=r?t=i+1:n=i-1}return-1}function Lm(e,t,n,r,i){for(;t<=n;){var o=t+n>>>1,a=e[o],l=i(a,r);if(l===0)return o;l<=0?t=o+1:n=o-1}return-1}function zm(e,t,n,r,i){return typeof n=="function"?Lm(e,r===void 0?0:r|0,i===void 0?e.length-1:i|0,t,n):Mm(e,n===void 0?0:n|0,r===void 0?e.length-1:r|0,t)}const Gn={ge:Rm,gt:Tm,lt:Pm,le:Am,eq:zm};var tr=0,Nt=1,Tn=2;function Vo(e,t,n,r,i){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=i,this.count=(t?t.count:0)+(n?n.count:0)+r.length}var rn=Vo.prototype;function Ci(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function Su(e,t){var n=Wr(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function Ol(e,t){var n=e.intervals([]);n.push(t),Su(e,n)}function Nl(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?tr:(n.splice(r,1),Su(e,n),Nt)}rn.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e};rn.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?Ol(this,e):this.left.insert(e):this.left=Wr([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Ol(this,e):this.right.insert(e):this.right=Wr([e]);else{var n=Gn.ge(this.leftPoints,e,qo),r=Gn.ge(this.rightPoints,e,Ko);this.leftPoints.splice(n,0,e),this.rightPoints.splice(r,0,e)}};rn.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid){if(!this.left)return tr;var n=this.right?this.right.count:0;if(4*n>3*(t-1))return Nl(this,e);var r=this.left.remove(e);return r===Tn?(this.left=null,this.count-=1,Nt):(r===Nt&&(this.count-=1),r)}else if(e[0]>this.mid){if(!this.right)return tr;var i=this.left?this.left.count:0;if(4*i>3*(t-1))return Nl(this,e);var r=this.right.remove(e);return r===Tn?(this.right=null,this.count-=1,Nt):(r===Nt&&(this.count-=1),r)}else{if(this.count===1)return this.leftPoints[0]===e?Tn:tr;if(this.leftPoints.length===1&&this.leftPoints[0]===e){if(this.left&&this.right){for(var o=this,a=this.left;a.right;)o=a,a=a.right;if(o===this)a.right=this.right;else{var l=this.left,r=this.right;o.count-=a.count,o.right=a.left,a.left=l,a.right=r}Ci(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Ci(this,this.left):Ci(this,this.right);return Nt}for(var l=Gn.ge(this.leftPoints,e,qo);l<this.leftPoints.length&&this.leftPoints[l][0]===e[0];++l)if(this.leftPoints[l]===e){this.count-=1,this.leftPoints.splice(l,1);for(var r=Gn.ge(this.rightPoints,e,Ko);r<this.rightPoints.length&&this.rightPoints[r][1]===e[1];++r)if(this.rightPoints[r]===e)return this.rightPoints.splice(r,1),Nt}return tr}};function wu(e,t,n){for(var r=0;r<e.length&&e[r][0]<=t;++r){var i=n(e[r]);if(i)return i}}function Cu(e,t,n){for(var r=e.length-1;r>=0&&e[r][1]>=t;--r){var i=n(e[r]);if(i)return i}}function Iu(e,t){for(var n=0;n<e.length;++n){var r=t(e[n]);if(r)return r}}rn.queryPoint=function(e,t){if(e<this.mid){if(this.left){var n=this.left.queryPoint(e,t);if(n)return n}return wu(this.leftPoints,e,t)}else if(e>this.mid){if(this.right){var n=this.right.queryPoint(e,t);if(n)return n}return Cu(this.rightPoints,e,t)}else return Iu(this.leftPoints,t)};rn.queryInterval=function(e,t,n){if(e<this.mid&&this.left){var r=this.left.queryInterval(e,t,n);if(r)return r}if(t>this.mid&&this.right){var r=this.right.queryInterval(e,t,n);if(r)return r}return t<this.mid?wu(this.leftPoints,t,n):e>this.mid?Cu(this.rightPoints,e,n):Iu(this.leftPoints,n)};function jm(e,t){return e-t}function qo(e,t){var n=e[0]-t[0];return n||e[1]-t[1]}function Ko(e,t){var n=e[1]-t[1];return n||e[0]-t[0]}function Wr(e){if(e.length===0)return null;for(var t=[],n=0;n<e.length;++n)t.push(e[n][0],e[n][1]);t.sort(jm);for(var r=t[t.length>>1],i=[],o=[],a=[],n=0;n<e.length;++n){var l=e[n];l[1]<r?i.push(l):r<l[0]?o.push(l):a.push(l)}var s=a,c=a.slice();return s.sort(qo),c.sort(Ko),new Vo(r,Wr(i),Wr(o),s,c)}function Ru(e){this.root=e}var pr=Ru.prototype;pr.insert=function(e){this.root?this.root.insert(e):this.root=new Vo(e[0],null,null,[e],[e])};pr.remove=function(e){if(this.root){var t=this.root.remove(e);return t===Tn&&(this.root=null),t!==tr}return!1};pr.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)};pr.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)};Object.defineProperty(pr,"count",{get:function(){return this.root?this.root.count:0}});Object.defineProperty(pr,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});function Fm(e){return new Ru(null)}var Ii=(function(){function e(){Ie(this,e),M(this,"_columnSizeMap",{}),M(this,"_intervalTree",Fm()),M(this,"_leftMap",{})}return we(e,[{key:"estimateTotalHeight",value:function(n,r,i){var o=n-this.count;return this.tallestColumnSize+Math.ceil(o/r)*i}},{key:"range",value:function(n,r,i){var o=this;this._intervalTree.queryInterval(n,n+r,function(a){var l=wm(a,3),s=l[0];l[1];var c=l[2];return i(c,o._leftMap[c],s)})}},{key:"setPosition",value:function(n,r,i,o){this._intervalTree.insert([i,i+o,n]),this._leftMap[n]=r;var a=this._columnSizeMap,l=a[r];l===void 0?a[r]=i+o:a[r]=Math.max(l,i+o)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var n=this._columnSizeMap,r=0;for(var i in n){var o=n[i];r=r===0?o:Math.min(r,o)}return r}},{key:"tallestColumnSize",get:function(){var n=this._columnSizeMap,r=0;for(var i in n){var o=n[i];r=Math.max(r,o)}return r}}])})();function Al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Al(Object(n),!0).forEach(function(r){M(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $m(e,t,n){return t=he(t),$e(e,_u()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function _u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_u=function(){return!!e})()}var Gm={},Wm=150,Du=(function(e){function t(){var n;Ie(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=$m(this,t,[].concat(i)),M(n,"state",{isScrolling:!1,scrollTop:0}),M(n,"_debounceResetIsScrollingId",void 0),M(n,"_invalidateOnUpdateStartIndex",null),M(n,"_invalidateOnUpdateStopIndex",null),M(n,"_positionCache",new Ii),M(n,"_startIndex",null),M(n,"_startIndexMemoized",null),M(n,"_stopIndex",null),M(n,"_stopIndexMemoized",null),M(n,"_debounceResetIsScrollingCallback",function(){n.setState({isScrolling:!1})}),M(n,"_setScrollingContainerRef",function(a){n._scrollingContainer=a}),M(n,"_onScroll",function(a){var l=n.props.height,s=a.currentTarget.scrollTop,c=Math.min(Math.max(0,n._getEstimatedTotalHeight()-l),s);s===c&&(n._debounceResetIsScrolling(),n.state.scrollTop!==c&&n.setState({isScrolling:!0,scrollTop:c}))}),n}return Be(t,e),we(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Ii,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(r){var i=r.rowIndex;this._invalidateOnUpdateStartIndex===null?(this._invalidateOnUpdateStartIndex=i,this._invalidateOnUpdateStopIndex=i):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,i),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,i))}},{key:"recomputeCellPositions",value:function(){var r=this._positionCache.count-1;this._positionCache=new Ii,this._populatePositionCache(0,r),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(r,i){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==r.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&sr(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var r=this,i=this.props,o=i.autoHeight,a=i.cellCount,l=i.cellMeasurerCache,s=i.cellRenderer,c=i.className,u=i.height,d=i.id,f=i.keyMapper,p=i.overscanByPixels,h=i.role,m=i.style,b=i.tabIndex,y=i.width,x=i.rowDirection,R=this.state,T=R.isScrolling,E=R.scrollTop,C=[],D=this._getEstimatedTotalHeight(),w=this._positionCache.shortestColumnSize,_=this._positionCache.count,I=0,P;if(this._positionCache.range(Math.max(0,E-p),u+p*2,function(W,O,F){typeof P>"u"?(I=W,P=W):(I=Math.min(I,W),P=Math.max(P,W)),C.push(s({index:W,isScrolling:T,key:f(W),parent:r,style:M(M(M(M({height:l.getHeight(W)},x==="ltr"?"left":"right",O),"position","absolute"),"top",F),"width",l.getWidth(W))}))}),w<E+u+p&&_<a)for(var L=Math.min(a-_,Math.ceil((E+u+p-w)/l.defaultHeight*y/l.defaultWidth)),N=_;N<_+L;N++)P=N,C.push(s({index:N,isScrolling:T,key:f(N),parent:this,style:{width:l.getWidth(N)}}));return this._startIndex=I,this._stopIndex=P,v.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:rt("ReactVirtualized__Masonry",c),id:d,onScroll:this._onScroll,role:h,style:Bm({boxSizing:"border-box",direction:"ltr",height:o?"auto":u,overflowX:"hidden",overflowY:D<u?"hidden":"auto",position:"relative",width:y,WebkitOverflowScrolling:"touch",willChange:"transform"},m),tabIndex:b},v.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:D,maxWidth:"100%",maxHeight:D,overflow:"hidden",pointerEvents:T?"none":"",position:"relative"}},C))}},{key:"_checkInvalidateOnUpdate",value:function(){if(typeof this._invalidateOnUpdateStartIndex=="number"){var r=this._invalidateOnUpdateStartIndex,i=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(r,i),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var r=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&sr(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=Uo(this._debounceResetIsScrollingCallback,r)}},{key:"_getEstimatedTotalHeight",value:function(){var r=this.props,i=r.cellCount,o=r.cellMeasurerCache,a=r.width,l=Math.max(1,Math.floor(a/o.defaultWidth));return this._positionCache.estimateTotalHeight(i,l,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var r=this.props,i=r.height,o=r.onScroll,a=this.state.scrollTop;this._onScrollMemoized!==a&&(o({clientHeight:i,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:a}),this._onScrollMemoized=a)}},{key:"_invokeOnCellsRenderedCallback",value:function(){if(this._startIndexMemoized!==this._startIndex||this._stopIndexMemoized!==this._stopIndex){var r=this.props.onCellsRendered;r({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex}}},{key:"_populatePositionCache",value:function(r,i){for(var o=this.props,a=o.cellMeasurerCache,l=o.cellPositioner,s=r;s<=i;s++){var c=l(s),u=c.left,d=c.top;this._positionCache.setPosition(s,u,d,a.getHeight(s))}}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.scrollTop!==void 0&&i.scrollTop!==r.scrollTop?{isScrolling:!0,scrollTop:r.scrollTop}:null}}])})(v.PureComponent);M(Du,"defaultProps",{autoHeight:!1,keyMapper:Hm,onCellsRendered:Ml,onScroll:Ml,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:Wm,style:Gm,tabIndex:0,rowDirection:"ltr"});function Hm(e){return e}function Ml(){}tn(Du);var Ri=(function(){function e(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ie(this,e),M(this,"_cellMeasurerCache",void 0),M(this,"_columnIndexOffset",void 0),M(this,"_rowIndexOffset",void 0),M(this,"columnWidth",function(s){var c=s.index;t._cellMeasurerCache.columnWidth({index:c+t._columnIndexOffset})}),M(this,"rowHeight",function(s){var c=s.index;t._cellMeasurerCache.rowHeight({index:c+t._rowIndexOffset})});var r=n.cellMeasurerCache,i=n.columnIndexOffset,o=i===void 0?0:i,a=n.rowIndexOffset,l=a===void 0?0:a;this._cellMeasurerCache=r,this._columnIndexOffset=o,this._rowIndexOffset=l}return we(e,[{key:"clear",value:function(n,r){this._cellMeasurerCache.clear(n+this._rowIndexOffset,r+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getHeight(n+this._rowIndexOffset,r+this._columnIndexOffset)}},{key:"getWidth",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getWidth(n+this._rowIndexOffset,r+this._columnIndexOffset)}},{key:"has",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.has(n+this._rowIndexOffset,r+this._columnIndexOffset)}},{key:"set",value:function(n,r,i,o){this._cellMeasurerCache.set(n+this._rowIndexOffset,r+this._columnIndexOffset,i,o)}}])})(),Um=["rowIndex"],Vm=["columnIndex","rowIndex"],qm=["columnIndex"],Km=["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"];function Ll(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ll(Object(n),!0).forEach(function(r){M(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ll(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ym(e,t,n){return t=he(t),$e(e,Tu()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function Tu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tu=function(){return!!e})()}var zl=20,Yo=(function(e){function t(n,r){var i;Ie(this,t),i=Ym(this,t,[n,r]),M(i,"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),M(i,"_deferredInvalidateColumnIndex",null),M(i,"_deferredInvalidateRowIndex",null),M(i,"_bottomLeftGridRef",function(s){i._bottomLeftGrid=s}),M(i,"_bottomRightGridRef",function(s){i._bottomRightGrid=s}),M(i,"_cellRendererBottomLeftGrid",function(s){var c=s.rowIndex,u=er(s,Um),d=i.props,f=d.cellRenderer,p=d.fixedRowCount,h=d.rowCount;return c===h-p?v.createElement("div",{key:u.key,style:me(me({},u.style),{},{height:zl})}):f(me(me({},u),{},{parent:i,rowIndex:c+p}))}),M(i,"_cellRendererBottomRightGrid",function(s){var c=s.columnIndex,u=s.rowIndex,d=er(s,Vm),f=i.props,p=f.cellRenderer,h=f.fixedColumnCount,m=f.fixedRowCount;return p(me(me({},d),{},{columnIndex:c+h,parent:i,rowIndex:u+m}))}),M(i,"_cellRendererTopRightGrid",function(s){var c=s.columnIndex,u=er(s,qm),d=i.props,f=d.cellRenderer,p=d.columnCount,h=d.fixedColumnCount;return c===p-h?v.createElement("div",{key:u.key,style:me(me({},u.style),{},{width:zl})}):f(me(me({},u),{},{columnIndex:c+h,parent:i}))}),M(i,"_columnWidthRightGrid",function(s){var c=s.index,u=i.props,d=u.columnCount,f=u.fixedColumnCount,p=u.columnWidth,h=i.state,m=h.scrollbarSize,b=h.showHorizontalScrollbar;return b&&c===d-f?m:typeof p=="function"?p({index:c+f}):p}),M(i,"_onScroll",function(s){var c=s.scrollLeft,u=s.scrollTop;i.setState({scrollLeft:c,scrollTop:u});var d=i.props.onScroll;d&&d(s)}),M(i,"_onScrollbarPresenceChange",function(s){var c=s.horizontal,u=s.size,d=s.vertical,f=i.state,p=f.showHorizontalScrollbar,h=f.showVerticalScrollbar;if(c!==p||d!==h){i.setState({scrollbarSize:u,showHorizontalScrollbar:c,showVerticalScrollbar:d});var m=i.props.onScrollbarPresenceChange;typeof m=="function"&&m({horizontal:c,size:u,vertical:d})}}),M(i,"_onScrollLeft",function(s){var c=s.scrollLeft;i._onScroll({scrollLeft:c,scrollTop:i.state.scrollTop})}),M(i,"_onScrollTop",function(s){var c=s.scrollTop;i._onScroll({scrollTop:c,scrollLeft:i.state.scrollLeft})}),M(i,"_rowHeightBottomGrid",function(s){var c=s.index,u=i.props,d=u.fixedRowCount,f=u.rowCount,p=u.rowHeight,h=i.state,m=h.scrollbarSize,b=h.showVerticalScrollbar;return b&&c===f-d?m:typeof p=="function"?p({index:c+d}):p}),M(i,"_topLeftGridRef",function(s){i._topLeftGrid=s}),M(i,"_topRightGridRef",function(s){i._topRightGrid=s});var o=n.deferredMeasurementCache,a=n.fixedColumnCount,l=n.fixedRowCount;return i._maybeCalculateCachedStyles(!0),o&&(i._deferredMeasurementCacheBottomLeftGrid=l>0?new Ri({cellMeasurerCache:o,columnIndexOffset:0,rowIndexOffset:l}):o,i._deferredMeasurementCacheBottomRightGrid=a>0||l>0?new Ri({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:l}):o,i._deferredMeasurementCacheTopRightGrid=a>0?new Ri({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:0}):o),i}return Be(t,e),we(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.columnIndex,o=i===void 0?0:i,a=r.rowIndex,l=a===void 0?0:a;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,l):l}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.columnIndex,o=i===void 0?0:i,a=r.rowIndex,l=a===void 0?0:a,s=this.props,c=s.fixedColumnCount,u=s.fixedRowCount,d=Math.max(0,o-c),f=Math.max(0,l-u);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:f}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:d,rowIndex:f}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:l}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:d,rowIndex:l}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var r=this.props,i=r.scrollLeft,o=r.scrollTop;if(i>0||o>0){var a={};i>0&&(a.scrollLeft=i),o>0&&(a.scrollTop=o),this.setState(a)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var r=this.props,i=r.onScroll,o=r.onSectionRendered;r.onScrollbarPresenceChange,r.scrollLeft;var a=r.scrollToColumn;r.scrollTop;var l=r.scrollToRow,s=er(r,Km);if(this._prepareForRender(),this.props.width===0||this.props.height===0)return null;var c=this.state,u=c.scrollLeft,d=c.scrollTop;return v.createElement("div",{style:this._containerOuterStyle},v.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(s),this._renderTopRightGrid(me(me({},s),{},{onScroll:i,scrollLeft:u}))),v.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(me(me({},s),{},{onScroll:i,scrollTop:d})),this._renderBottomRightGrid(me(me({},s),{},{onScroll:i,onSectionRendered:o,scrollLeft:u,scrollToColumn:a,scrollToRow:l,scrollTop:d}))))}},{key:"_getBottomGridHeight",value:function(r){var i=r.height,o=this._getTopGridHeight(r);return i-o}},{key:"_getLeftGridWidth",value:function(r){var i=r.fixedColumnCount,o=r.columnWidth;if(this._leftGridWidth==null)if(typeof o=="function"){for(var a=0,l=0;l<i;l++)a+=o({index:l});this._leftGridWidth=a}else this._leftGridWidth=o*i;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(r){var i=r.width,o=this._getLeftGridWidth(r);return i-o}},{key:"_getTopGridHeight",value:function(r){var i=r.fixedRowCount,o=r.rowHeight;if(this._topGridHeight==null)if(typeof o=="function"){for(var a=0,l=0;l<i;l++)a+=o({index:l});this._topGridHeight=a}else this._topGridHeight=o*i;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"){var r=this._deferredInvalidateColumnIndex,i=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:r,rowIndex:i}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(r){var i=this.props,o=i.columnWidth,a=i.enableFixedColumnScroll,l=i.enableFixedRowScroll,s=i.height,c=i.fixedColumnCount,u=i.fixedRowCount,d=i.rowHeight,f=i.style,p=i.styleBottomLeftGrid,h=i.styleBottomRightGrid,m=i.styleTopLeftGrid,b=i.styleTopRightGrid,y=i.width,x=r||s!==this._lastRenderedHeight||y!==this._lastRenderedWidth,R=r||o!==this._lastRenderedColumnWidth||c!==this._lastRenderedFixedColumnCount,T=r||u!==this._lastRenderedFixedRowCount||d!==this._lastRenderedRowHeight;(r||x||f!==this._lastRenderedStyle)&&(this._containerOuterStyle=me({height:s,overflow:"visible",width:y},f)),(r||x||T)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:y},this._containerBottomStyle={height:s-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:y}),(r||p!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=me({left:0,overflowX:"hidden",overflowY:a?"auto":"hidden",position:"absolute"},p)),(r||R||h!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=me({left:this._getLeftGridWidth(this.props),position:"absolute"},h)),(r||m!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=me({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},m)),(r||R||b!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=me({left:this._getLeftGridWidth(this.props),overflowX:l?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},b)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=c,this._lastRenderedFixedRowCount=u,this._lastRenderedHeight=s,this._lastRenderedRowHeight=d,this._lastRenderedStyle=f,this._lastRenderedStyleBottomLeftGrid=p,this._lastRenderedStyleBottomRightGrid=h,this._lastRenderedStyleTopLeftGrid=m,this._lastRenderedStyleTopRightGrid=b,this._lastRenderedWidth=y}},{key:"_prepareForRender",value:function(){(this._lastRenderedColumnWidth!==this.props.columnWidth||this._lastRenderedFixedColumnCount!==this.props.fixedColumnCount)&&(this._leftGridWidth=null),(this._lastRenderedFixedRowCount!==this.props.fixedRowCount||this._lastRenderedRowHeight!==this.props.rowHeight)&&(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(r){var i=r.enableFixedColumnScroll,o=r.fixedColumnCount,a=r.fixedRowCount,l=r.rowCount,s=r.hideBottomLeftGridScrollbar,c=this.state.showVerticalScrollbar;if(!o)return null;var u=c?1:0,d=this._getBottomGridHeight(r),f=this._getLeftGridWidth(r),p=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,h=s?f+p:f,m=v.createElement(bt,q({},r,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:d,onScroll:i?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,l-a)+u,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:h}));return s?v.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:me(me({},this._bottomLeftGridStyle),{},{height:d,width:f,overflowY:"hidden"})},m):m}},{key:"_renderBottomRightGrid",value:function(r){var i=r.columnCount,o=r.fixedColumnCount,a=r.fixedRowCount,l=r.rowCount,s=r.scrollToColumn,c=r.scrollToRow;return v.createElement(bt,q({},r,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,i-o),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(r),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,l-a),rowHeight:this._rowHeightBottomGrid,scrollToColumn:s-o,scrollToRow:c-a,style:this._bottomRightGridStyle,width:this._getRightGridWidth(r)}))}},{key:"_renderTopLeftGrid",value:function(r){var i=r.fixedColumnCount,o=r.fixedRowCount;return!i||!o?null:v.createElement(bt,q({},r,{className:this.props.classNameTopLeftGrid,columnCount:i,height:this._getTopGridHeight(r),ref:this._topLeftGridRef,rowCount:o,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(r)}))}},{key:"_renderTopRightGrid",value:function(r){var i=r.columnCount,o=r.enableFixedRowScroll,a=r.fixedColumnCount,l=r.fixedRowCount,s=r.scrollLeft,c=r.hideTopRightGridScrollbar,u=this.state,d=u.showHorizontalScrollbar,f=u.scrollbarSize;if(!l)return null;var p=d?1:0,h=this._getTopGridHeight(r),m=this._getRightGridWidth(r),b=d?f:0,y=h,x=this._topRightGridStyle;c&&(y=h+b,x=me(me({},this._topRightGridStyle),{},{left:0}));var R=v.createElement(bt,q({},r,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,i-a)+p,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:y,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:l,scrollLeft:s,style:x,tabIndex:null,width:m}));return c?v.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:me(me({},this._topRightGridStyle),{},{height:h,width:m,overflowX:"hidden"})},R):R}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.scrollLeft!==i.scrollLeft||r.scrollTop!==i.scrollTop?{scrollLeft:r.scrollLeft!=null&&r.scrollLeft>=0?r.scrollLeft:i.scrollLeft,scrollTop:r.scrollTop!=null&&r.scrollTop>=0?r.scrollTop:i.scrollTop}:null}}])})(v.PureComponent);M(Yo,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1});Yo.propTypes={};tn(Yo);function Jm(e,t,n){return t=he(t),$e(e,Eu()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function Eu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Eu=function(){return!!e})()}var Xm=(function(e){function t(n,r){var i;return Ie(this,t),i=Jm(this,t,[n,r]),i.state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},i._onScroll=i._onScroll.bind(i),i}return Be(t,e),we(t,[{key:"render",value:function(){var r=this.props.children,i=this.state,o=i.clientHeight,a=i.clientWidth,l=i.scrollHeight,s=i.scrollLeft,c=i.scrollTop,u=i.scrollWidth;return r({clientHeight:o,clientWidth:a,onScroll:this._onScroll,scrollHeight:l,scrollLeft:s,scrollTop:c,scrollWidth:u})}},{key:"_onScroll",value:function(r){var i=r.clientHeight,o=r.clientWidth,a=r.scrollHeight,l=r.scrollLeft,s=r.scrollTop,c=r.scrollWidth;this.setState({clientHeight:i,clientWidth:o,scrollHeight:a,scrollLeft:l,scrollTop:s,scrollWidth:c})}}])})(v.PureComponent);Xm.propTypes={};function Qm(e){var t=e.dataKey,n=e.rowData;return typeof n.get=="function"?n.get(t):n[t]}function Zm(e){var t=e.cellData;return t==null?"":String(t)}function eb(e){var t=e.className,n=e.columns,r=e.style;return v.createElement("div",{className:t,role:"row",style:r},n)}var yt={ASC:"ASC",DESC:"DESC"};function ku(e){var t=e.sortDirection,n=rt("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===yt.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===yt.DESC});return v.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},t===yt.ASC?v.createElement("path",{d:"M7 14l5-5 5 5z"}):v.createElement("path",{d:"M7 10l5 5 5-5z"}),v.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}ku.propTypes={};function tb(e){var t=e.dataKey,n=e.label,r=e.sortBy,i=e.sortDirection,o=r===t,a=[v.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof n=="string"?n:null},n)];return o&&a.push(v.createElement(ku,{key:"SortIndicator",sortDirection:i})),a}function rb(e){var t=e.className,n=e.columns,r=e.index,i=e.key,o=e.onRowClick,a=e.onRowDoubleClick,l=e.onRowMouseOut,s=e.onRowMouseOver,c=e.onRowRightClick,u=e.rowData,d=e.style,f={"aria-rowindex":r+1};return(o||a||l||s||c)&&(f["aria-label"]="row",f.tabIndex=0,o&&(f.onClick=function(p){return o({event:p,index:r,rowData:u})}),a&&(f.onDoubleClick=function(p){return a({event:p,index:r,rowData:u})}),l&&(f.onMouseOut=function(p){return l({event:p,index:r,rowData:u})}),s&&(f.onMouseOver=function(p){return s({event:p,index:r,rowData:u})}),c&&(f.onContextMenu=function(p){return c({event:p,index:r,rowData:u})})),v.createElement("div",q({},f,{className:t,key:i,role:"row",style:d}),n)}function nb(e,t,n){return t=he(t),$e(e,Pu()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function Pu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pu=function(){return!!e})()}var Jo=(function(e){function t(){return Ie(this,t),nb(this,t,arguments)}return Be(t,e),we(t)})(v.Component);M(Jo,"defaultProps",{cellDataGetter:Qm,cellRenderer:Zm,defaultSortDirection:yt.ASC,flexGrow:0,flexShrink:1,headerRenderer:tb,style:{}});Jo.propTypes={};function jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jl(Object(n),!0).forEach(function(r){M(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ib(e,t,n){return t=he(t),$e(e,Ou()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function Ou(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ou=function(){return!!e})()}var Nu=(function(e){function t(n){var r;return Ie(this,t),r=ib(this,t,[n]),r.state={scrollbarWidth:0},r._createColumn=r._createColumn.bind(r),r._createRow=r._createRow.bind(r),r._onScroll=r._onScroll.bind(r),r._onSectionRendered=r._onSectionRendered.bind(r),r._setRef=r._setRef.bind(r),r._setGridElementRef=r._setGridElementRef.bind(r),r}return Be(t,e),we(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(r){var i=r.alignment,o=r.index;if(this.Grid){var a=this.Grid.getOffsetForCell({alignment:i,rowIndex:o}),l=a.scrollTop;return l}return 0}},{key:"invalidateCellSizeAfterRender",value:function(r){var i=r.columnIndex,o=r.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:i})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.columnIndex,o=i===void 0?0:i,a=r.rowIndex,l=a===void 0?0:a;this.Grid&&this.Grid.recomputeGridSize({rowIndex:l,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r})}},{key:"scrollToPosition",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:r})}},{key:"scrollToRow",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:r})}},{key:"getScrollbarWidth",value:function(){if(this.GridElement){var r=this.GridElement,i=r.clientWidth||0,o=r.offsetWidth||0;return o-i}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var r=this,i=this.props,o=i.children,a=i.className,l=i.disableHeader,s=i.gridClassName,c=i.gridStyle,u=i.headerHeight,d=i.headerRowRenderer,f=i.height,p=i.id,h=i.noRowsRenderer,m=i.rowClassName,b=i.rowStyle,y=i.scrollToIndex,x=i.style,R=i.width,T=this.state.scrollbarWidth,E=l?f:f-u,C=typeof m=="function"?m({index:-1}):m,D=typeof b=="function"?b({index:-1}):b;return this._cachedColumnStyles=[],v.Children.toArray(o).forEach(function(w,_){var I=r._getFlexStyleForColumn(w,w.props.style||Jo.defaultProps.style);r._cachedColumnStyles[_]=it({overflow:"hidden"},I)}),v.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":v.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:rt("ReactVirtualized__Table",a),id:p,role:"grid",style:x},!l&&d({className:rt("ReactVirtualized__Table__headerRow",C),columns:this._getHeaderColumns(),style:it({height:u,overflow:"hidden",paddingRight:T,width:R},D)}),v.createElement(bt,q({},this.props,{elementRef:this._setGridElementRef,"aria-readonly":null,autoContainerWidth:!0,className:rt("ReactVirtualized__Table__Grid",s),cellRenderer:this._createRow,columnWidth:R,columnCount:1,height:E,id:void 0,noContentRenderer:h,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:T,scrollToRow:y,style:it(it({},c),{},{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(r){var i=r.column,o=r.columnIndex,a=r.isScrolling,l=r.parent,s=r.rowData,c=r.rowIndex,u=this.props.onColumnClick,d=i.props,f=d.cellDataGetter,p=d.cellRenderer,h=d.className,m=d.columnData,b=d.dataKey,y=d.id,x=f({columnData:m,dataKey:b,rowData:s}),R=p({cellData:x,columnData:m,columnIndex:o,dataKey:b,isScrolling:a,parent:l,rowData:s,rowIndex:c}),T=function(w){u&&u({columnData:m,dataKey:b,event:w})},E=this._cachedColumnStyles[o],C=typeof R=="string"?R:null;return v.createElement("div",{"aria-colindex":o+1,"aria-describedby":y,className:rt("ReactVirtualized__Table__rowColumn",h),key:"Row"+c+"-Col"+o,onClick:T,role:"gridcell",style:E,title:C},R)}},{key:"_createHeader",value:function(r){var i=r.column,o=r.index,a=this.props,l=a.headerClassName,s=a.headerStyle,c=a.onHeaderClick,u=a.sort,d=a.sortBy,f=a.sortDirection,p=i.props,h=p.columnData,m=p.dataKey,b=p.defaultSortDirection,y=p.disableSort,x=p.headerRenderer,R=p.id,T=p.label,E=!y&&u,C=rt("ReactVirtualized__Table__headerColumn",l,i.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:E}),D=this._getFlexStyleForColumn(i,it(it({},s),i.props.headerStyle)),w=x({columnData:h,dataKey:m,disableSort:y,label:T,sortBy:d,sortDirection:f}),_,I,P,L,N;if(E||c){var W=d!==m,O=W?b:f===yt.DESC?yt.ASC:yt.DESC,F=function(Y){E&&u({defaultSortDirection:b,event:Y,sortBy:m,sortDirection:O}),c&&c({columnData:h,dataKey:m,event:Y})},G=function(Y){(Y.key==="Enter"||Y.key===" ")&&F(Y)};N=i.props["aria-label"]||T||m,L="none",P=0,_=F,I=G}return d===m&&(L=f===yt.ASC?"ascending":"descending"),v.createElement("div",{"aria-label":N,"aria-sort":L,className:C,id:R,key:"Header-Col"+o,onClick:_,onKeyDown:I,role:"columnheader",style:D,tabIndex:P},w)}},{key:"_createRow",value:function(r){var i=this,o=r.rowIndex,a=r.isScrolling,l=r.key,s=r.parent,c=r.style,u=this.props,d=u.children,f=u.onRowClick,p=u.onRowDoubleClick,h=u.onRowRightClick,m=u.onRowMouseOver,b=u.onRowMouseOut,y=u.rowClassName,x=u.rowGetter,R=u.rowRenderer,T=u.rowStyle,E=this.state.scrollbarWidth,C=typeof y=="function"?y({index:o}):y,D=typeof T=="function"?T({index:o}):T,w=x({index:o}),_=v.Children.toArray(d).map(function(L,N){return i._createColumn({column:L,columnIndex:N,isScrolling:a,parent:s,rowData:w,rowIndex:o,scrollbarWidth:E})}),I=rt("ReactVirtualized__Table__row",C),P=it(it({},c),{},{height:this._getRowHeight(o),overflow:"hidden",paddingRight:E},D);return R({className:I,columns:_,index:o,isScrolling:a,key:l,onRowClick:f,onRowDoubleClick:p,onRowRightClick:h,onRowMouseOver:m,onRowMouseOut:b,rowData:w,style:P})}},{key:"_getFlexStyleForColumn",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o="".concat(r.props.flexGrow," ").concat(r.props.flexShrink," ").concat(r.props.width,"px"),a=it(it({},i),{},{flex:o,msFlex:o,WebkitFlex:o});return r.props.maxWidth&&(a.maxWidth=r.props.maxWidth),r.props.minWidth&&(a.minWidth=r.props.minWidth),a}},{key:"_getHeaderColumns",value:function(){var r=this,i=this.props,o=i.children,a=i.disableHeader,l=a?[]:v.Children.toArray(o);return l.map(function(s,c){return r._createHeader({column:s,index:c})})}},{key:"_getRowHeight",value:function(r){var i=this.props.rowHeight;return typeof i=="function"?i({index:r}):i}},{key:"_onScroll",value:function(r){var i=r.clientHeight,o=r.scrollHeight,a=r.scrollTop,l=this.props.onScroll;l({clientHeight:i,scrollHeight:o,scrollTop:a})}},{key:"_onSectionRendered",value:function(r){var i=r.rowOverscanStartIndex,o=r.rowOverscanStopIndex,a=r.rowStartIndex,l=r.rowStopIndex,s=this.props.onRowsRendered;s({overscanStartIndex:i,overscanStopIndex:o,startIndex:a,stopIndex:l})}},{key:"_setRef",value:function(r){this.Grid=r}},{key:"_setGridElementRef",value:function(r){this.GridElement=r}},{key:"_setScrollbarWidth",value:function(){var r=this.getScrollbarWidth();this.setState({scrollbarWidth:r})}}])})(v.PureComponent);M(Nu,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:gu,overscanRowCount:10,rowRenderer:rb,headerRowRenderer:eb,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}});Nu.propTypes={};var xt=[],Mr=null,jt=null;function Au(){jt&&(jt=null,document.body&&Mr!=null&&(document.body.style.pointerEvents=Mr),Mr=null)}function ob(){Au(),xt.forEach(function(e){return e.__resetIsScrolling()})}function ab(){jt&&sr(jt);var e=0;xt.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),jt=Uo(ob,e)}function Mu(e){e.currentTarget===window&&Mr==null&&document.body&&(Mr=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),ab(),xt.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function Fl(e,t){xt.some(function(n){return n.props.scrollElement===t})||t.addEventListener("scroll",Mu),xt.push(e)}function Bl(e,t){xt=xt.filter(function(n){return n!==e}),xt.length||(t.removeEventListener("scroll",Mu),jt&&(sr(jt),Au()))}var Xo=function(t){return t===window},Er=function(t){return t.getBoundingClientRect()};function $l(e,t){if(e)if(Xo(e)){var n=window,r=n.innerHeight,i=n.innerWidth;return{height:typeof r=="number"?r:0,width:typeof i=="number"?i:0}}else return Er(e);else return{height:t.serverHeight,width:t.serverWidth}}function lb(e,t){if(Xo(t)&&document.documentElement){var n=document.documentElement,r=Er(e),i=Er(n);return{top:r.top-i.top,left:r.left-i.left}}else{var o=Lu(t),a=Er(e),l=Er(t);return{top:a.top+o.top-l.top,left:a.left+o.left-l.left}}}function Lu(e){return Xo(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function Gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gl(Object(n),!0).forEach(function(r){M(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sb(e,t,n){return t=he(t),$e(e,zu()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function zu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zu=function(){return!!e})()}var cb=150,ju=function(){return typeof window<"u"?window:void 0},ub=(function(e){function t(){var n;Ie(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=sb(this,t,[].concat(i)),M(n,"_window",ju()),M(n,"_isMounted",!1),M(n,"_positionFromTop",0),M(n,"_positionFromLeft",0),M(n,"_detectElementResize",void 0),M(n,"_child",void 0),M(n,"_windowScrollerRef",v.createRef()),M(n,"state",Wl(Wl({},$l(n.props.scrollElement,n.props)),{},{isScrolling:!1,scrollLeft:0,scrollTop:0})),M(n,"_registerChild",function(a){a&&!(a instanceof Element)&&console.warn("WindowScroller registerChild expects to be passed Element or null"),n._child=a,n.updatePosition()}),M(n,"_onChildScroll",function(a){var l=a.scrollTop;if(n.state.scrollTop!==l){var s=n.props.scrollElement;s&&(typeof s.scrollTo=="function"?s.scrollTo(0,l+n._positionFromTop):s.scrollTop=l+n._positionFromTop)}}),M(n,"_registerResizeListener",function(a){a===window?window.addEventListener("resize",n._onResize,!1):n._detectElementResize.addResizeListener(a,n._onResize)}),M(n,"_unregisterResizeListener",function(a){a===window?window.removeEventListener("resize",n._onResize,!1):a&&n._detectElementResize.removeResizeListener(a,n._onResize)}),M(n,"_onResize",function(){n.updatePosition()}),M(n,"__handleWindowScrollEvent",function(){if(n._isMounted){var a=n.props.onScroll,l=n.props.scrollElement;if(l){var s=Lu(l),c=Math.max(0,s.left-n._positionFromLeft),u=Math.max(0,s.top-n._positionFromTop);n.setState({isScrolling:!0,scrollLeft:c,scrollTop:u}),a({scrollLeft:c,scrollTop:u})}}}),M(n,"__resetIsScrolling",function(){n.setState({isScrolling:!1})}),n}return Be(t,e),we(t,[{key:"updatePosition",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollElement,i=this.props.onResize,o=this.state,a=o.height,l=o.width,s=this._child||this._windowScrollerRef.current;if(s instanceof Element&&r){var c=lb(s,r);this._positionFromTop=c.top,this._positionFromLeft=c.left}var u=$l(r,this.props);(a!==u.height||l!==u.width)&&(this.setState({height:u.height,width:u.width}),i({height:u.height,width:u.width})),this.props.updateScrollTopOnUpdatePosition===!0&&(this.__handleWindowScrollEvent(),this.__resetIsScrolling())}},{key:"componentDidMount",value:function(){var r=this.props.scrollElement;this._detectElementResize=ou(),this.updatePosition(r),r&&(Fl(this,r),this._registerResizeListener(r)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(r,i){var o=this.props.scrollElement,a=r.scrollElement;a!==o&&a!=null&&o!=null&&(this.updatePosition(o),Bl(this,a),Fl(this,o),this._unregisterResizeListener(a),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var r=this.props.scrollElement;r&&(Bl(this,r),this._unregisterResizeListener(r)),this._isMounted=!1}},{key:"render",value:function(){var r=this.props.children,i=this.state,o=i.isScrolling,a=i.scrollTop,l=i.scrollLeft,s=i.height,c=i.width;return v.createElement("div",{ref:this._windowScrollerRef},r({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:s,isScrolling:o,scrollLeft:l,scrollTop:a,width:c}))}}])})(v.PureComponent);M(ub,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:cb,scrollElement:ju(),serverHeight:0,serverWidth:0});function ir(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ir=function(t){return typeof t}:ir=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ir(e)}function nn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function on(e,t,n){return t&&Hl(e.prototype,t),n&&Hl(e,n),e}function db(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function St(){return St=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},St.apply(this,arguments)}function Ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ul(Object(n),!0).forEach(function(r){db(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ul(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oi(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}}),t&&ao(e,t)}function lt(e){return lt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lt(e)}function ao(e,t){return ao=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ao(e,t)}function fb(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Qo(e,t){if(e==null)return{};var n=fb(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ai(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:dt(e)}function be(e){return pb(e)||hb(e)||gb()}function pb(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function hb(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function gb(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Fu(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Bu(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function $u(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Fu.__suppressDeprecationWarning=!0;Bu.__suppressDeprecationWarning=!0;$u.__suppressDeprecationWarning=!0;function vb(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,i=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?i="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),n!==null||r!==null||i!==null){var o=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
52
-
53
- `+o+" uses "+a+" but also contains the following legacy lifecycles:"+(n!==null?`
54
- `+n:"")+(r!==null?`
55
- `+r:"")+(i!==null?`
56
- `+i:"")+`
57
-
58
- The above lifecycles should be removed. Learn more about this warning here:
59
- https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Fu,t.componentWillReceiveProps=Bu),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=$u;var l=t.componentDidUpdate;t.componentDidUpdate=function(c,u,d){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;l.call(this,c,u,f)}}return e}function Gu(e){var t=e.targetIndex,n=e.node,r=e.currentIndex,i=e.getNodeKey,o=e.path,a=o===void 0?[]:o,l=e.lowerSiblingCounts,s=l===void 0?[]:l,c=e.ignoreCollapsed,u=c===void 0?!0:c,d=e.isPseudoRoot,f=d===void 0?!1:d,p=f?[]:[].concat(be(a),[i({node:n,treeIndex:r})]);if(r===t)return{node:n,lowerSiblingCounts:s,path:p};if(!n.children||u&&n.expanded!==!0)return{nextIndex:r+1};for(var h=r+1,m=n.children.length,b=0;b<m;b+=1){var y=Gu({ignoreCollapsed:u,getNodeKey:i,targetIndex:t,node:n.children[b],currentIndex:h,lowerSiblingCounts:[].concat(be(s),[m-b-1]),path:p});if(y.node)return y;h=y.nextIndex}return{nextIndex:h}}function Zo(e){var t=e.node,n=e.ignoreCollapsed,r=n===void 0?!0:n;return Gu({getNodeKey:function(){},ignoreCollapsed:r,node:t,currentIndex:0,targetIndex:-1}).nextIndex-1}function Wu(e){var t=e.callback,n=e.getNodeKey,r=e.ignoreCollapsed,i=e.isPseudoRoot,o=i===void 0?!1:i,a=e.node,l=e.parentNode,s=l===void 0?null:l,c=e.currentIndex,u=e.path,d=u===void 0?[]:u,f=e.lowerSiblingCounts,p=f===void 0?[]:f,h=o?[]:[].concat(be(d),[n({node:a,treeIndex:c})]),m=o?null:{node:a,parentNode:s,path:h,lowerSiblingCounts:p,treeIndex:c};if(!o){var b=t(m);if(b===!1)return!1}if(!a.children||a.expanded!==!0&&r&&!o)return c;var y=c,x=a.children.length;if(typeof a.children!="function"){for(var R=0;R<x;R+=1)if(y=Wu({callback:t,getNodeKey:n,ignoreCollapsed:r,node:a.children[R],parentNode:o?null:a,currentIndex:y+1,lowerSiblingCounts:[].concat(be(p),[x-R-1]),path:h}),y===!1)return!1}return y}function Hu(e){var t=e.callback,n=e.getNodeKey,r=e.ignoreCollapsed,i=e.isPseudoRoot,o=i===void 0?!1:i,a=e.node,l=e.parentNode,s=l===void 0?null:l,c=e.currentIndex,u=e.path,d=u===void 0?[]:u,f=e.lowerSiblingCounts,p=f===void 0?[]:f,h=se({},a),m=o?[]:[].concat(be(d),[n({node:h,treeIndex:c})]),b={node:h,parentNode:s,path:m,lowerSiblingCounts:p,treeIndex:c};if(!h.children||h.expanded!==!0&&r&&!o)return{treeIndex:c,node:t(b)};var y=c,x=h.children.length;return typeof h.children!="function"&&(h.children=h.children.map(function(R,T){var E=Hu({callback:t,getNodeKey:n,ignoreCollapsed:r,node:R,parentNode:o?null:h,currentIndex:y+1,lowerSiblingCounts:[].concat(be(p),[x-T-1]),path:m});return y=E.treeIndex,E.node})),{node:t(b),treeIndex:y}}function Uu(e){var t=e.treeData,n=e.getNodeKey,r=e.callback,i=e.ignoreCollapsed,o=i===void 0?!0:i;!t||t.length<1||Wu({callback:r,getNodeKey:n,ignoreCollapsed:o,isPseudoRoot:!0,node:{children:t},currentIndex:-1,path:[],lowerSiblingCounts:[]})}function mb(e){var t=e.treeData,n=e.getNodeKey,r=e.callback,i=e.ignoreCollapsed,o=i;return!t||t.length<1?[]:Hu({callback:r,getNodeKey:n,ignoreCollapsed:o,isPseudoRoot:!0,node:{children:t},currentIndex:-1,path:[],lowerSiblingCounts:[]}).node.children}function bb(e){var t=e.treeData,n=e.expanded,r=n===void 0?!0:n;return mb({treeData:t,callback:function(o){var a=o.node;return se(se({},a),{},{expanded:r})},getNodeKey:function(o){var a=o.treeIndex;return a},ignoreCollapsed:!1})}function kr(e){var t=e.treeData,n=e.path,r=e.newNode,i=e.getNodeKey,o=e.ignoreCollapsed,a=o===void 0?!0:o,l="RESULT_MISS",s=function u(d){var f=d.isPseudoRoot,p=f===void 0?!1:f,h=d.node,m=d.currentTreeIndex,b=d.pathIndex;if(!p&&i({node:h,treeIndex:m})!==n[b])return l;if(b>=n.length-1)return typeof r=="function"?r({node:h,treeIndex:m}):r;if(!h.children)throw new Error("Path referenced children of node with no children.");for(var y=m+1,x=0;x<h.children.length;x+=1){var R=u({node:h.children[x],currentTreeIndex:y,pathIndex:b+1});if(R!==l)return R?se(se({},h),{},{children:[].concat(be(h.children.slice(0,x)),[R],be(h.children.slice(x+1)))}):se(se({},h),{},{children:[].concat(be(h.children.slice(0,x)),be(h.children.slice(x+1)))});y+=1+Zo({node:h.children[x],ignoreCollapsed:a})}return l},c=s({node:{children:t},currentTreeIndex:-1,pathIndex:-1,isPseudoRoot:!0});if(c===l)throw new Error("No node found at the given path.");return c.children}function yb(e){var t=e.treeData,n=e.path,r=e.getNodeKey,i=e.ignoreCollapsed,o=i===void 0?!0:i,a=null,l=null,s=kr({treeData:t,path:n,getNodeKey:r,ignoreCollapsed:o,newNode:function(u){var d=u.node,f=u.treeIndex;return a=d,l=f,null}});return{treeData:s,node:a,treeIndex:l}}function Vu(e){var t=e.targetDepth,n=e.minimumTreeIndex,r=e.newNode,i=e.ignoreCollapsed,o=e.expandParent,a=e.isPseudoRoot,l=a===void 0?!1:a,s=e.isLastChild,c=e.node,u=e.currentIndex,d=e.currentDepth,f=e.getNodeKey,p=e.path,h=p===void 0?[]:p,m=function(O){return l?[]:[].concat(be(h),[f({node:O,treeIndex:u})])};if(u>=n-1||s&&!(c.children&&c.children.length)){if(typeof c.children=="function")throw new Error("Cannot add to children defined by a function");var b=o?{expanded:!0}:{},y=se(se(se({},c),b),{},{children:c.children?[r].concat(be(c.children)):[r]});return{node:y,nextIndex:u+2,insertedTreeIndex:u+1,parentPath:m(y),parentNode:l?null:y}}if(d>=t-1){if(!c.children||typeof c.children=="function"||c.expanded!==!0&&i&&!l)return{node:c,nextIndex:u+1};for(var x=u+1,R=null,T=null,E=0;E<c.children.length;E+=1){if(x>=n){R=x,T=E;break}x+=1+Zo({node:c.children[E],ignoreCollapsed:i})}if(T===null){if(x<n&&!s)return{node:c,nextIndex:x};R=x,T=c.children.length}var C=se(se({},c),{},{children:[].concat(be(c.children.slice(0,T)),[r],be(c.children.slice(T)))});return{node:C,nextIndex:x,insertedTreeIndex:R,parentPath:m(C),parentNode:l?null:C}}if(!c.children||typeof c.children=="function"||c.expanded!==!0&&i&&!l)return{node:c,nextIndex:u+1};var D=null,w=null,_=null,I=u+1,P=c.children;typeof P!="function"&&(P=P.map(function(W,O){if(D!==null)return W;var F=Vu({targetDepth:t,minimumTreeIndex:n,newNode:r,ignoreCollapsed:i,expandParent:o,isLastChild:s&&O===P.length-1,node:W,currentIndex:I,currentDepth:d+1,getNodeKey:f,path:[]});return"insertedTreeIndex"in F&&(D=F.insertedTreeIndex,_=F.parentNode,w=F.parentPath),I=F.nextIndex,F.node}));var L=se(se({},c),{},{children:P}),N={node:L,nextIndex:I};return D!==null&&(N.insertedTreeIndex=D,N.parentPath=[].concat(be(m(L)),be(w)),N.parentNode=_),N}function qu(e){var t=e.treeData,n=e.depth,r=e.minimumTreeIndex,i=e.newNode,o=e.getNodeKey,a=o===void 0?function(){}:o,l=e.ignoreCollapsed,s=l===void 0?!0:l,c=e.expandParent,u=c===void 0?!1:c;if(!t&&n===0)return{treeData:[i],treeIndex:0,path:[a({node:i,treeIndex:0})],parentNode:null};var d=Vu({targetDepth:n,minimumTreeIndex:r,newNode:i,ignoreCollapsed:s,expandParent:u,getNodeKey:a,isPseudoRoot:!0,isLastChild:!0,node:{children:t},currentIndex:-1,currentDepth:-1});if(!("insertedTreeIndex"in d))throw new Error("No suitable position found to insert.");var f=d.insertedTreeIndex;return{treeData:d.node.children,treeIndex:f,path:[].concat(be(d.parentPath),[a({node:i,treeIndex:f})]),parentNode:d.parentNode}}function xb(e){var t=e.treeData,n=e.getNodeKey,r=e.ignoreCollapsed,i=r===void 0?!0:r;if(!t||t.length<1)return[];var o=[];return Uu({treeData:t,getNodeKey:n,ignoreCollapsed:i,callback:function(l){o.push(l)}}),o}function Ku(e,t){return!!e.children&&typeof e.children!="function"&&e.children.some(function(n){return n===t||Ku(n,t)})}function Yu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?typeof e.children=="function"?t+1:e.children.reduce(function(n,r){return Math.max(n,Yu(r,t+1))},t):t}function Sb(e){var t=e.getNodeKey,n=e.treeData,r=e.searchQuery,i=e.searchMethod,o=e.searchFocusOffset,a=e.expandAllMatchPaths,l=a===void 0?!1:a,s=e.expandFocusMatchPaths,c=s===void 0?!0:s,u=0,d=function p(h){var m=h.isPseudoRoot,b=m===void 0?!1:m,y=h.node,x=h.currentIndex,R=h.path,T=R===void 0?[]:R,E=[],C=!1,D=!1,w=b?[]:[].concat(be(T),[t({node:y,treeIndex:x})]),_=b?null:{path:w,treeIndex:x},I=y.children&&typeof y.children!="function"&&y.children.length>0;!b&&i(se(se({},_),{},{node:y,searchQuery:r}))&&(u===o&&(D=!0),u+=1,C=!0);var P=x,L=se({},y);return I&&(L.children=L.children.map(function(N){var W=p({node:N,currentIndex:P+1,path:w});return W.node.expanded?P=W.treeIndex:P+=1,(W.matches.length>0||W.hasFocusMatch)&&(E=[].concat(be(E),be(W.matches)),W.hasFocusMatch&&(D=!0),(l&&W.matches.length>0||(l||c)&&W.hasFocusMatch)&&(L.expanded=!0)),W.node})),!b&&!L.expanded&&(E=E.map(function(N){return se(se({},N),{},{treeIndex:null})})),C&&(E=[se(se({},_),{},{node:L})].concat(be(E))),{node:E.length>0?L:y,matches:E,hasFocusMatch:D,treeIndex:P}},f=d({node:{children:n},isPseudoRoot:!0,currentIndex:-1});return{matches:f.matches,treeData:f.node.children}}function Ue(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}function wb(e){function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}return function(){var n=lt(e),r;if(t()){var i=lt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ai(this,r)}}var ea=(function(e){oi(n,e);var t=wb(n);function n(){return nn(this,n),t.apply(this,arguments)}return on(n,[{key:"render",value:function(){var i=this.props,o=i.scaffoldBlockPxWidth,a=i.toggleChildrenVisibility,l=i.connectDragPreview,s=i.connectDragSource,c=i.isDragging,u=i.canDrop,d=i.canDrag,f=i.node,p=i.title,h=i.subtitle,m=i.draggedNode,b=i.path,y=i.treeIndex,x=i.isSearchMatch,R=i.isSearchFocus,T=i.buttons,E=i.className,C=i.style,D=i.didDrop;i.treeId,i.isOver,i.parentNode;var w=i.rowDirection,_=Qo(i,["scaffoldBlockPxWidth","toggleChildrenVisibility","connectDragPreview","connectDragSource","isDragging","canDrop","canDrag","node","title","subtitle","draggedNode","path","treeIndex","isSearchMatch","isSearchFocus","buttons","className","style","didDrop","treeId","isOver","parentNode","rowDirection"]),I=p||f.title,P=h||f.subtitle,L=w==="rtl"?"rst__rtl":null,N;d&&(typeof f.children=="function"&&f.expanded?N=Q.createElement("div",{className:"rst__loadingHandle"},Q.createElement("div",{className:"rst__loadingCircle"},be(new Array(12)).map(function(G,H){return Q.createElement("div",{key:H,className:Ue("rst__loadingCirclePoint",L)})}))):N=s(Q.createElement("div",{className:"rst__moveHandle"}),{dropEffect:"copy"}));var W=m&&Ku(m,f),O=!D&&c,F={left:-.5*o};return w==="rtl"&&(F={right:-.5*o}),Q.createElement("div",St({style:{height:"100%"}},_),a&&f.children&&(f.children.length>0||typeof f.children=="function")&&Q.createElement("div",null,Q.createElement("button",{type:"button","aria-label":f.expanded?"Collapse":"Expand",className:Ue(f.expanded?"rst__collapseButton":"rst__expandButton",L),style:F,onClick:function(){return a({node:f,path:b,treeIndex:y})}}),f.expanded&&!c&&Q.createElement("div",{style:{width:o},className:Ue("rst__lineChildren",L)})),Q.createElement("div",{className:Ue("rst__rowWrapper",L)},l(Q.createElement("div",{className:Ue("rst__row",O&&"rst__rowLandingPad",O&&!u&&"rst__rowCancelPad",x&&"rst__rowSearchMatch",R&&"rst__rowSearchFocus",L,E),style:se({opacity:W?.5:1},C)},N,Q.createElement("div",{className:Ue("rst__rowContents",!d&&"rst__rowContentsDragDisabled",L)},Q.createElement("div",{className:Ue("rst__rowLabel",L)},Q.createElement("span",{className:Ue("rst__rowTitle",f.subtitle&&"rst__rowTitleWithSubtitle")},typeof I=="function"?I({node:f,path:b,treeIndex:y}):I),P&&Q.createElement("span",{className:"rst__rowSubtitle"},typeof P=="function"?P({node:f,path:b,treeIndex:y}):P)),Q.createElement("div",{className:"rst__rowToolbar"},T.map(function(G,H){return Q.createElement("div",{key:H,className:"rst__toolbarButton"},G)})))))))}}]),n})(v.Component);ea.defaultProps={isSearchMatch:!1,isSearchFocus:!1,canDrag:!1,toggleChildrenVisibility:null,buttons:[],className:"",style:{},parentNode:null,draggedNode:null,canDrop:!1,title:null,subtitle:null,rowDirection:"ltr"};ea.propTypes={node:S.shape({}).isRequired,title:S.oneOfType([S.func,S.node]),subtitle:S.oneOfType([S.func,S.node]),path:S.arrayOf(S.oneOfType([S.string,S.number])).isRequired,treeIndex:S.number.isRequired,treeId:S.string.isRequired,isSearchMatch:S.bool,isSearchFocus:S.bool,canDrag:S.bool,scaffoldBlockPxWidth:S.number.isRequired,toggleChildrenVisibility:S.func,buttons:S.arrayOf(S.node),className:S.string,style:S.shape({}),connectDragPreview:S.func.isRequired,connectDragSource:S.func.isRequired,parentNode:S.shape({}),isDragging:S.bool.isRequired,didDrop:S.bool.isRequired,draggedNode:S.shape({}),isOver:S.bool.isRequired,canDrop:S.bool,rowDirection:S.string};var ta=function(t){var n=t.isOver,r=t.canDrop;return Q.createElement("div",{className:Ue("rst__placeholder",r&&"rst__placeholderLandingPad",r&&!n&&"rst__placeholderCancelPad")})};ta.defaultProps={isOver:!1,canDrop:!1};ta.propTypes={isOver:S.bool,canDrop:S.bool};function Cb(e){function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}return function(){var n=lt(e),r;if(t()){var i=lt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ai(this,r)}}var ra=(function(e){oi(n,e);var t=Cb(n);function n(){return nn(this,n),t.apply(this,arguments)}return on(n,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.listIndex,l=i.swapFrom,s=i.swapLength,c=i.swapDepth,u=i.scaffoldBlockPxWidth,d=i.lowerSiblingCounts,f=i.connectDropTarget,p=i.isOver,h=i.draggedNode,m=i.canDrop,b=i.treeIndex;i.treeId,i.getPrevRow,i.node,i.path;var y=i.rowDirection,x=Qo(i,["children","listIndex","swapFrom","swapLength","swapDepth","scaffoldBlockPxWidth","lowerSiblingCounts","connectDropTarget","isOver","draggedNode","canDrop","treeIndex","treeId","getPrevRow","node","path","rowDirection"]),R=y==="rtl"?"rst__rtl":null,T=d.length,E=[];d.forEach(function(D,w){var _="";if(D>0?a===0?_="rst__lineHalfHorizontalRight rst__lineHalfVerticalBottom":w===T-1?_="rst__lineHalfHorizontalRight rst__lineFullVertical":_="rst__lineFullVertical":a===0?_="rst__lineHalfHorizontalRight":w===T-1&&(_="rst__lineHalfVerticalTop rst__lineHalfHorizontalRight"),E.push(Q.createElement("div",{key:"pre_".concat(1+w),style:{width:u},className:Ue("rst__lineBlock",_,R)})),b!==a&&w===c){var I="";a===l+s-1?I="rst__highlightBottomLeftCorner":b===l?I="rst__highlightTopLeftCorner":I="rst__highlightLineVertical";var P;y==="rtl"?P={width:u,right:u*w}:P={width:u,left:u*w},E.push(Q.createElement("div",{key:w,style:P,className:Ue("rst__absoluteLineBlock",I,R)}))}});var C;return y==="rtl"?C={right:u*T}:C={left:u*T},f(Q.createElement("div",St({},x,{className:Ue("rst__node",R)}),E,Q.createElement("div",{className:"rst__nodeContent",style:C},v.Children.map(o,function(D){return v.cloneElement(D,{isOver:p,canDrop:m,draggedNode:h})}))))}}]),n})(v.Component);ra.defaultProps={swapFrom:null,swapDepth:null,swapLength:null,canDrop:!1,draggedNode:null,rowDirection:"ltr"};ra.propTypes={treeIndex:S.number.isRequired,treeId:S.string.isRequired,swapFrom:S.number,swapDepth:S.number,swapLength:S.number,scaffoldBlockPxWidth:S.number.isRequired,lowerSiblingCounts:S.arrayOf(S.number).isRequired,listIndex:S.number.isRequired,children:S.node.isRequired,connectDropTarget:S.func.isRequired,isOver:S.bool.isRequired,canDrop:S.bool,draggedNode:S.shape({}),getPrevRow:S.func.isRequired,node:S.shape({}).isRequired,path:S.arrayOf(S.oneOfType([S.string,S.number])).isRequired,rowDirection:S.string};function Ib(e){function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}return function(){var n=lt(e),r;if(t()){var i=lt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ai(this,r)}}var na=(function(e){oi(n,e);var t=Ib(n);function n(){return nn(this,n),t.apply(this,arguments)}return on(n,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.connectDropTarget;i.treeId,i.drop;var l=Qo(i,["children","connectDropTarget","treeId","drop"]);return a(Q.createElement("div",null,v.Children.map(o,function(s){return v.cloneElement(s,se({},l))})))}}]),n})(v.Component);na.defaultProps={canDrop:!1,draggedNode:null};na.propTypes={children:S.node.isRequired,connectDropTarget:S.func.isRequired,isOver:S.bool.isRequired,canDrop:S.bool,draggedNode:S.shape({}),treeId:S.string.isRequired,drop:S.func.isRequired};function Rb(e){var t=e.treeIndex;return t}function Ju(e){return typeof e=="string"?e:e===null||ir(e)!=="object"||!e.props||!e.props.children||typeof e.props.children!="string"&&ir(e.props.children)!=="object"?"":typeof e.props.children=="string"?e.props.children:e.props.children.map(function(t){return Ju(t)}).join("")}function Vl(e,t,n,r,i){return typeof n[e]=="function"?String(n[e]({node:n,path:r,treeIndex:i})).indexOf(t)>-1:ir(n[e])==="object"?Ju(n[e]).indexOf(t)>-1:n[e]&&String(n[e]).indexOf(t)>-1}function _b(e){var t=e.node,n=e.path,r=e.treeIndex,i=e.searchQuery;return Vl("title",i,t,n,r)||Vl("subtitle",i,t,n,r)}var ia=function(t){var n=[],r=[],i=null;return function(o){var a=Object.keys(o).sort(),l=a.map(function(s){return o[s]});return(l.length!==n.length||l.some(function(s,c){return s!==n[c]})||a.some(function(s,c){return s!==r[c]}))&&(n=l,r=a,i=t(o)),i}},lo=ia(qu),Db=ia(xb),Tb=ia(Zo),Eb=(function(){function e(t){nn(this,e),this.treeRef=t}return on(e,[{key:"getTargetDepth",value:function(n,r,i){var o=0,a=n.getPrevRow();if(a){var l=a.path,s=!this.treeRef.canNodeHaveChildren(a.node);s&&(l=l.slice(0,l.length-1)),o=Math.min(l.length,n.path.length)}var c,u=(r.getItem().path||[]).length;if(r.getItem().treeId!==this.treeId)if(u=0,i){var d=wc.findDOMNode(i).getBoundingClientRect(),f=r.getSourceClientOffset().x-d.left;c=Math.round(f/n.scaffoldBlockPxWidth)}else c=n.path.length;else{var p=n.rowDirection==="rtl"?-1:1;c=Math.round(p*r.getDifferenceFromInitialOffset().x/n.scaffoldBlockPxWidth)}var h=Math.min(o,Math.max(0,u+c-1));if(typeof this.maxDepth<"u"&&this.maxDepth!==null){var m=r.getItem().node,b=Yu(m);h=Math.max(0,Math.min(h,this.maxDepth-b-1))}return h}},{key:"canDrop",value:function(n,r){if(!r.isOver())return!1;var i=n.getPrevRow(),o=i?i.path:[],a=i?i.node:{},l=this.getTargetDepth(n,r,null);if(l>=o.length&&typeof a.children=="function")return!1;if(typeof this.customCanDrop=="function"){var s=r.getItem(),c=s.node,u=lo({treeData:this.treeData,newNode:c,depth:l,getNodeKey:this.getNodeKey,minimumTreeIndex:n.listIndex,expandParent:!0});return this.customCanDrop({node:c,prevPath:r.getItem().path,prevParent:r.getItem().parentNode,prevTreeIndex:r.getItem().treeIndex,nextPath:u.path,nextParent:u.parentNode,nextTreeIndex:u.treeIndex})}return!0}},{key:"wrapSource",value:function(n){var r=this,i={beginDrag:function(l){return r.startDrag(l),{node:l.node,parentNode:l.parentNode,path:l.path,treeIndex:l.treeIndex,treeId:l.treeId}},endDrag:function(l,s){r.endDrag(s.getDropResult())},isDragging:function(l,s){var c=s.getItem().node,u=l.node;return u===c}};function o(a,l){return{connectDragSource:a.dragSource(),connectDragPreview:a.dragPreview(),isDragging:l.isDragging(),didDrop:l.didDrop()}}return sg(this.dndType,i,o)(n)}},{key:"wrapTarget",value:function(n){var r=this,i={drop:function(l,s,c){var u={node:s.getItem().node,path:s.getItem().path,treeIndex:s.getItem().treeIndex,treeId:r.treeId,minimumTreeIndex:l.treeIndex,depth:r.getTargetDepth(l,s,c)};return r.drop(u),u},hover:function(l,s,c){var u=r.getTargetDepth(l,s,c),d=s.getItem().node,f=l.node!==d||u!==l.path.length-1;f&&(cancelAnimationFrame(r.rafId),r.rafId=requestAnimationFrame(function(){r.dragHover({node:d,path:s.getItem().path,minimumTreeIndex:l.listIndex,depth:u})}))},canDrop:this.canDrop.bind(this)};function o(a,l){var s=l.getItem();return{connectDropTarget:a.dropTarget(),isOver:l.isOver(),canDrop:l.canDrop(),draggedNode:s?s.node:null}}return el(this.dndType,i,o)(n)}},{key:"wrapPlaceholder",value:function(n){var r=this,i={drop:function(l,s){var c=s.getItem(),u=c.node,d=c.path,f=c.treeIndex,p={node:u,path:d,treeIndex:f,treeId:r.treeId,minimumTreeIndex:0,depth:0};return r.drop(p),p}};function o(a,l){var s=l.getItem();return{connectDropTarget:a.dropTarget(),isOver:l.isOver(),canDrop:l.canDrop(),draggedNode:s?s.node:null}}return el(this.dndType,i,o)(n)}},{key:"startDrag",get:function(){return this.treeRef.startDrag}},{key:"dragHover",get:function(){return this.treeRef.dragHover}},{key:"endDrag",get:function(){return this.treeRef.endDrag}},{key:"drop",get:function(){return this.treeRef.drop}},{key:"treeId",get:function(){return this.treeRef.treeId}},{key:"dndType",get:function(){return this.treeRef.dndType}},{key:"treeData",get:function(){return this.treeRef.state.draggingTreeData||this.treeRef.props.treeData}},{key:"getNodeKey",get:function(){return this.treeRef.props.getNodeKey}},{key:"customCanDrop",get:function(){return this.treeRef.props.canDrop}},{key:"maxDepth",get:function(){return this.treeRef.props.maxDepth}}]),e})();function kb(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,i=[].concat(be(e.slice(0,t)),be(e.slice(t+r)));return[].concat(be(i.slice(0,n)),be(e.slice(t,t+r)),be(i.slice(n)))}function Pb(e){function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}return function(){var n=lt(e),r;if(t()){var i=lt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ai(this,r)}}var ql=1,_i=function(t){var n=se(se({},t),{},{style:se(se({},t.theme.style),t.style),innerStyle:se(se({},t.theme.innerStyle),t.innerStyle),reactVirtualizedListProps:se(se({},t.theme.reactVirtualizedListProps),t.reactVirtualizedListProps)}),r={nodeContentRenderer:ea,placeholderRenderer:ta,rowHeight:62,scaffoldBlockPxWidth:44,slideRegionSize:100,treeNodeRenderer:ra};return Object.keys(r).forEach(function(i){t[i]===null&&(n[i]=typeof t.theme[i]<"u"?t.theme[i]:r[i])}),n},li=(function(e){oi(n,e);var t=Pb(n);function n(r){var i;nn(this,n),i=t.call(this,r);var o=_i(r),a=o.dndType,l=o.nodeContentRenderer,s=o.treeNodeRenderer,c=o.isVirtualized,u=o.slideRegionSize;return i.dndManager=new Eb(dt(i)),i.treeId="rst__".concat(ql),ql+=1,i.dndType=a||i.treeId,i.nodeContentRenderer=i.dndManager.wrapSource(l),i.treePlaceholderRenderer=i.dndManager.wrapPlaceholder(na),i.treeNodeRenderer=i.dndManager.wrapTarget(s),c&&(i.scrollZoneVirtualList=(Dn.createScrollingComponent||Pv)(xu),i.vStrength=Dn.createVerticalStrength(u),i.hStrength=Dn.createHorizontalStrength(u)),i.state={draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,searchMatches:[],searchFocusTreeIndex:null,dragging:!1,instanceProps:{treeData:[],ignoreOneTreeUpdate:!1,searchQuery:null,searchFocusOffset:null}},i.toggleChildrenVisibility=i.toggleChildrenVisibility.bind(dt(i)),i.moveNode=i.moveNode.bind(dt(i)),i.startDrag=i.startDrag.bind(dt(i)),i.dragHover=i.dragHover.bind(dt(i)),i.endDrag=i.endDrag.bind(dt(i)),i.drop=i.drop.bind(dt(i)),i.handleDndMonitorChange=i.handleDndMonitorChange.bind(dt(i)),i}return on(n,[{key:"componentDidMount",value:function(){n.loadLazyChildren(this.props,this.state);var i=n.search(this.props,this.state,!0,!0,!1);this.setState(i),this.clearMonitorSubscription=this.props.dragDropManager.getMonitor().subscribeToStateChange(this.handleDndMonitorChange)}},{key:"componentDidUpdate",value:function(i,o){this.state.dragging!==o.dragging&&this.props.onDragStateChanged&&this.props.onDragStateChanged({isDragging:this.state.dragging,draggedNode:this.state.draggedNode})}},{key:"componentWillUnmount",value:function(){this.clearMonitorSubscription()}},{key:"getRows",value:function(i){return Db({ignoreCollapsed:!0,getNodeKey:this.props.getNodeKey,treeData:i})}},{key:"handleDndMonitorChange",value:function(){var i=this.props.dragDropManager.getMonitor();!i.isDragging()&&this.state.draggingTreeData&&this.endDrag()}},{key:"toggleChildrenVisibility",value:function(i){var o=i.node,a=i.path,l=this.state.instanceProps,s=kr({treeData:l.treeData,path:a,newNode:function(u){var d=u.node;return se(se({},d),{},{expanded:!d.expanded})},getNodeKey:this.props.getNodeKey});this.props.onChange(s),this.props.onVisibilityToggle({treeData:s,node:o,expanded:!o.expanded,path:a})}},{key:"moveNode",value:function(i){var o=i.node,a=i.path,l=i.treeIndex,s=i.depth,c=i.minimumTreeIndex,u=qu({treeData:this.state.draggingTreeData,newNode:o,depth:s,minimumTreeIndex:c,expandParent:!0,getNodeKey:this.props.getNodeKey}),d=u.treeData,f=u.treeIndex,p=u.path,h=u.parentNode;this.props.onChange(d),this.props.onMoveNode({treeData:d,node:o,treeIndex:f,path:p,nextPath:p,nextTreeIndex:f,prevPath:a,prevTreeIndex:l,nextParentNode:h})}},{key:"startDrag",value:function(i){var o=this,a=i.path;this.setState(function(l){var s=yb({treeData:l.instanceProps.treeData,path:a,getNodeKey:o.props.getNodeKey}),c=s.treeData,u=s.node,d=s.treeIndex;return{draggingTreeData:c,draggedNode:u,draggedDepth:a.length-1,draggedMinimumTreeIndex:d,dragging:!0}})}},{key:"dragHover",value:function(i){var o=this,a=i.node,l=i.depth,s=i.minimumTreeIndex;this.state.draggedDepth===l&&this.state.draggedMinimumTreeIndex===s||this.setState(function(c){var u=c.draggingTreeData,d=c.instanceProps,f=u||d.treeData,p=lo({treeData:f,newNode:a,depth:l,minimumTreeIndex:s,expandParent:!0,getNodeKey:o.props.getNodeKey}),h=o.getRows(p.treeData),m=h[p.treeIndex].path;return{draggedNode:a,draggedDepth:l,draggedMinimumTreeIndex:s,draggingTreeData:kr({treeData:f,path:m.slice(0,-1),newNode:function(y){var x=y.node;return se(se({},x),{},{expanded:!0})},getNodeKey:o.props.getNodeKey}),searchFocusTreeIndex:null,dragging:!0}})}},{key:"endDrag",value:function(i){var o=this,a=this.state.instanceProps,l=function(){return o.setState({draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,dragging:!1})};if(!i)l();else if(i.treeId!==this.treeId){var s=i.node,c=i.path,u=i.treeIndex,d=this.props.shouldCopyOnOutsideDrop;typeof d=="function"&&(d=d({node:s,prevTreeIndex:u,prevPath:c}));var f=this.state.draggingTreeData||a.treeData;d&&(f=kr({treeData:a.treeData,path:c,newNode:function(h){var m=h.node;return se({},m)},getNodeKey:this.props.getNodeKey})),this.props.onChange(f),this.props.onMoveNode({treeData:f,node:s,treeIndex:null,path:null,nextPath:null,nextTreeIndex:null,prevPath:c,prevTreeIndex:u})}}},{key:"drop",value:function(i){this.moveNode(i)}},{key:"canNodeHaveChildren",value:function(i){var o=this.props.canNodeHaveChildren;return o?o(i):!0}},{key:"renderRow",value:function(i,o){var a=o.listIndex,l=o.style,s=o.getPrevRow,c=o.matchKeys,u=o.swapFrom,d=o.swapDepth,f=o.swapLength,p=i.node,h=i.parentNode,m=i.path,b=i.lowerSiblingCounts,y=i.treeIndex,x=_i(this.props),R=x.canDrag,T=x.generateNodeProps,E=x.scaffoldBlockPxWidth,C=x.searchFocusOffset,D=x.rowDirection,w=this.treeNodeRenderer,_=this.nodeContentRenderer,I=m[m.length-1],P=I in c,L=P&&c[I]===C,N={node:p,parentNode:h,path:m,lowerSiblingCounts:b,treeIndex:y,isSearchMatch:P,isSearchFocus:L},W=T?T(N):{},O=typeof R!="function"?R:R(N),F={treeIndex:y,scaffoldBlockPxWidth:E,node:p,path:m,treeId:this.treeId,rowDirection:D};return Q.createElement(w,St({style:l,key:I,listIndex:a,getPrevRow:s,lowerSiblingCounts:b,swapFrom:u,swapLength:f,swapDepth:d},F),Q.createElement(_,St({parentNode:h,isSearchMatch:P,isSearchFocus:L,canDrag:O,toggleChildrenVisibility:this.toggleChildrenVisibility},F,W)))}},{key:"render",value:function(){var i=this,o=_i(this.props),a=o.dragDropManager,l=o.style,s=o.className,c=o.innerStyle,u=o.rowHeight,d=o.isVirtualized,f=o.placeholderRenderer,p=o.reactVirtualizedListProps,h=o.getNodeKey,m=o.rowDirection,b=this.state,y=b.searchMatches,x=b.searchFocusTreeIndex,R=b.draggedNode,T=b.draggedDepth,E=b.draggedMinimumTreeIndex,C=b.instanceProps,D=this.state.draggingTreeData||C.treeData,w=m==="rtl"?"rst__rtl":null,_,I=null,P=null;if(R&&E!==null){var L=lo({treeData:D,newNode:R,depth:T,minimumTreeIndex:E,expandParent:!0,getNodeKey:h}),N=E;I=L.treeIndex,P=1+Tb({node:R}),_=kb(this.getRows(L.treeData),I,N,P)}else _=this.getRows(D);var W={};y.forEach(function(J,Z){var U=J.path;W[U[U.length-1]]=Z});var O=x!==null?{scrollToIndex:x}:{},F=l,G;if(_.length<1){var H=this.treePlaceholderRenderer,Y=f;G=Q.createElement(H,{treeId:this.treeId,drop:this.drop},Q.createElement(Y,null))}else if(d){F=se({height:"100%"},F);var ee=this.scrollZoneVirtualList;G=Q.createElement(lu,null,function(J){var Z=J.height,U=J.width;return Q.createElement(ee,St({},O,{dragDropManager:a,verticalStrength:i.vStrength,horizontalStrength:i.hStrength,speed:30,scrollToAlignment:"start",className:"rst__virtualScrollOverride",width:U,onScroll:function(ie){var ce=ie.scrollTop;i.scrollTop=ce},height:Z,style:c,rowCount:_.length,estimatedRowSize:typeof u!="function"?u:void 0,rowHeight:typeof u!="function"?u:function(ne){var ie=ne.index;return u({index:ie,treeIndex:ie,node:_[ie].node,path:_[ie].path})},rowRenderer:function(ie){var ce=ie.index,B=ie.style;return i.renderRow(_[ce],{listIndex:ce,style:B,getPrevRow:function(){return _[ce-1]||null},matchKeys:W,swapFrom:I,swapDepth:T,swapLength:P})}},p))})}else G=_.map(function(J,Z){return i.renderRow(J,{listIndex:Z,style:{height:typeof u!="function"?u:u({index:Z,treeIndex:Z,node:J.node,path:J.path})},getPrevRow:function(){return _[Z-1]||null},matchKeys:W,swapFrom:I,swapDepth:T,swapLength:P})});return Q.createElement("div",{className:Ue("rst__tree",s,w),style:F},G)}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.instanceProps,l={},s=yl(a.treeData,i.treeData);return a.treeData=i.treeData,s?yl(a.searchQuery,i.searchQuery)?a.searchFocusOffset!==i.searchFocusOffset&&Object.assign(l,n.search(i,o,!0,!0,!0)):Object.assign(l,n.search(i,o,!0,!0,!1)):(a.ignoreOneTreeUpdate?a.ignoreOneTreeUpdate=!1:(l.searchFocusTreeIndex=null,n.loadLazyChildren(i,o),Object.assign(l,n.search(i,o,!1,!1,!1))),l.draggingTreeData=null,l.draggedNode=null,l.draggedMinimumTreeIndex=null,l.draggedDepth=null,l.dragging=!1),a.searchQuery=i.searchQuery,a.searchFocusOffset=i.searchFocusOffset,l.instanceProps=se(se({},a),l.instanceProps),l}},{key:"search",value:function(i,o,a,l,s){var c=i.onChange,u=i.getNodeKey,d=i.searchFinishCallback,f=i.searchQuery,p=i.searchMethod,h=i.searchFocusOffset,m=i.onlyExpandSearchedNodes,b=o.instanceProps;if(!f&&!p)return d&&d([]),{searchMatches:[]};var y={instanceProps:{}},x=Sb({getNodeKey:u,treeData:m?bb({treeData:b.treeData,expanded:!1}):b.treeData,searchQuery:f,searchMethod:p||_b,searchFocusOffset:h,expandAllMatchPaths:l&&!s,expandFocusMatchPaths:!!l}),R=x.treeData,T=x.matches;l&&(y.instanceProps.ignoreOneTreeUpdate=!0,c(R)),d&&d(T);var E=null;return a&&h!==null&&h<T.length&&(E=T[h].treeIndex),y.searchMatches=T,y.searchFocusTreeIndex=E,y}},{key:"loadLazyChildren",value:function(i,o){var a=o.instanceProps;Uu({treeData:a.treeData,getNodeKey:i.getNodeKey,callback:function(s){var c=s.node,u=s.path,d=s.lowerSiblingCounts,f=s.treeIndex;c.children&&typeof c.children=="function"&&(c.expanded||i.loadCollapsedLazyChildren)&&c.children({node:c,path:u,lowerSiblingCounts:d,treeIndex:f,done:function(h){return i.onChange(kr({treeData:a.treeData,path:u,newNode:function(b){var y=b.node;return y===c?se(se({},y),{},{children:h}):y},getNodeKey:i.getNodeKey}))}})}})}}]),n})(v.Component);li.propTypes={dragDropManager:S.shape({getMonitor:S.func}).isRequired,treeData:S.arrayOf(S.object).isRequired,style:S.shape({}),className:S.string,innerStyle:S.shape({}),rowHeight:S.oneOfType([S.number,S.func]),slideRegionSize:S.number,reactVirtualizedListProps:S.shape({}),scaffoldBlockPxWidth:S.number,maxDepth:S.number,searchMethod:S.func,searchQuery:S.any,searchFocusOffset:S.number,searchFinishCallback:S.func,generateNodeProps:S.func,isVirtualized:S.bool,treeNodeRenderer:S.func,nodeContentRenderer:S.func,placeholderRenderer:S.func,theme:S.shape({style:S.shape({}),innerStyle:S.shape({}),reactVirtualizedListProps:S.shape({}),scaffoldBlockPxWidth:S.number,slideRegionSize:S.number,rowHeight:S.oneOfType([S.number,S.func]),treeNodeRenderer:S.func,nodeContentRenderer:S.func,placeholderRenderer:S.func}),getNodeKey:S.func,onChange:S.func.isRequired,onMoveNode:S.func,canDrag:S.oneOfType([S.func,S.bool]),canDrop:S.func,canNodeHaveChildren:S.func,shouldCopyOnOutsideDrop:S.oneOfType([S.func,S.bool]),onVisibilityToggle:S.func,dndType:S.string,onDragStateChanged:S.func,onlyExpandSearchedNodes:S.bool,rowDirection:S.string};li.defaultProps={canDrag:!0,canDrop:null,canNodeHaveChildren:function(){return!0},className:"",dndType:null,generateNodeProps:null,getNodeKey:Rb,innerStyle:{},isVirtualized:!0,maxDepth:null,treeNodeRenderer:null,nodeContentRenderer:null,onMoveNode:function(){},onVisibilityToggle:function(){},placeholderRenderer:null,reactVirtualizedListProps:{},rowHeight:null,scaffoldBlockPxWidth:null,searchFinishCallback:null,searchFocusOffset:null,searchMethod:null,searchQuery:null,shouldCopyOnOutsideDrop:!1,slideRegionSize:null,style:{},theme:{},onDragStateChanged:function(){},onlyExpandSearchedNodes:!1,rowDirection:"ltr"};vb(li);var Ob=function(t){return Q.createElement(lg.Consumer,null,function(n){var r=n.dragDropManager;return r===void 0?null:Q.createElement(li,St({},t,{dragDropManager:r}))})},En={exports:{}},Kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},an=(typeof window>"u"?"undefined":Kl(window))==="object"&&(typeof document>"u"?"undefined":Kl(document))==="object"&&document.nodeType===9,Nb={}.constructor;function so(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(so);if(e.constructor!==Nb)return e;var t={};for(var n in e)t[n]=so(e[n]);return t}function oa(e,t,n){e===void 0&&(e="unnamed");var r=n.jss,i=so(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var Yl=function(t,n){for(var r="",i=0;i<t.length&&t[i]!=="!important";i++)r&&(r+=n),r+=t[i];return r},Ft=function(t){if(!Array.isArray(t))return t;var n="";if(Array.isArray(t[0]))for(var r=0;r<t.length&&t[r]!=="!important";r++)n&&(n+=", "),n+=Yl(t[r]," ");else n=Yl(t,", ");return t[t.length-1]==="!important"&&(n+=" !important"),n};function hr(e){return e&&e.format===!1?{linebreak:"",space:""}:{linebreak:`
60
- `,space:" "}}function wr(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Hr(e,t,n){n===void 0&&(n={});var r="";if(!t)return r;var i=n,o=i.indent,a=o===void 0?0:o,l=t.fallbacks;n.format===!1&&(a=-1/0);var s=hr(n),c=s.linebreak,u=s.space;if(e&&a++,l)if(Array.isArray(l))for(var d=0;d<l.length;d++){var f=l[d];for(var p in f){var h=f[p];h!=null&&(r&&(r+=c),r+=wr(p+":"+u+Ft(h)+";",a))}}else for(var m in l){var b=l[m];b!=null&&(r&&(r+=c),r+=wr(m+":"+u+Ft(b)+";",a))}for(var y in t){var x=t[y];x!=null&&y!=="fallbacks"&&(r&&(r+=c),r+=wr(y+":"+u+Ft(x)+";",a))}return!r&&!n.allowEmpty||!e?r:(a--,r&&(r=""+c+r+c),wr(""+e+u+"{"+r,a)+wr("}",a))}var Ab=/([[\].#*$><+~=|^:(),"'`\s])/g,Jl=typeof CSS<"u"&&CSS.escape,aa=(function(e){return Jl?Jl(e):e.replace(Ab,"\\$1")}),Xu=(function(){function e(n,r,i){this.type="style",this.isProcessed=!1;var o=i.sheet,a=i.Renderer;this.key=n,this.options=i,this.style=r,o?this.renderer=o.renderer:a&&(this.renderer=new a)}var t=e.prototype;return t.prop=function(r,i,o){if(i===void 0)return this.style[r];var a=o?o.force:!1;if(!a&&this.style[r]===i)return this;var l=i;(!o||o.process!==!1)&&(l=this.options.jss.plugins.onChangeValue(i,r,this));var s=l==null||l===!1,c=r in this.style;if(s&&!c&&!a)return this;var u=s&&c;if(u?delete this.style[r]:this.style[r]=l,this.renderable&&this.renderer)return u?this.renderer.removeProperty(this.renderable,r):this.renderer.setProperty(this.renderable,r,l),this;var d=this.options.sheet;return d&&d.attached,this},e})(),co=(function(e){ri(t,e);function t(r,i,o){var a;a=e.call(this,r,i,o)||this;var l=o.selector,s=o.scoped,c=o.sheet,u=o.generateId;return l?a.selectorText=l:s!==!1&&(a.id=u(Ha(Ha(a)),c),a.selectorText="."+aa(a.id)),a}var n=t.prototype;return n.applyTo=function(i){var o=this.renderer;if(o){var a=this.toJSON();for(var l in a)o.setProperty(i,l,a[l])}return this},n.toJSON=function(){var i={};for(var o in this.style){var a=this.style[o];typeof a!="object"?i[o]=a:Array.isArray(a)&&(i[o]=Ft(a))}return i},n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,l=a?q({},i,{allowEmpty:!0}):i;return Hr(this.selectorText,this.style,l)},we(t,[{key:"selector",set:function(i){if(i!==this.selectorText){this.selectorText=i;var o=this.renderer,a=this.renderable;if(!(!a||!o)){var l=o.setSelector(a,i);l||o.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),t})(Xu),Mb={onCreateRule:function(t,n,r){return t[0]==="@"||r.parent&&r.parent.type==="keyframes"?null:new co(t,n,r)}},Di={indent:1,children:!0},Lb=/@([\w-]+)/,zb=(function(){function e(n,r,i){this.type="conditional",this.isProcessed=!1,this.key=n;var o=n.match(Lb);this.at=o?o[1]:"unknown",this.query=i.name||"@"+this.at,this.options=i,this.rules=new si(q({},i,{parent:this}));for(var a in r)this.rules.add(a,r[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(r){return this.rules.get(r)},t.indexOf=function(r){return this.rules.indexOf(r)},t.addRule=function(r,i,o){var a=this.rules.add(r,i,o);return a?(this.options.jss.plugins.onProcessRule(a),a):null},t.replaceRule=function(r,i,o){var a=this.rules.replace(r,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.toString=function(r){r===void 0&&(r=Di);var i=hr(r),o=i.linebreak;if(r.indent==null&&(r.indent=Di.indent),r.children==null&&(r.children=Di.children),r.children===!1)return this.query+" {}";var a=this.rules.toString(r);return a?this.query+" {"+o+a+o+"}":""},e})(),jb=/@container|@media|@supports\s+/,Fb={onCreateRule:function(t,n,r){return jb.test(t)?new zb(t,n,r):null}},Ti={indent:1,children:!0},Bb=/@keyframes\s+([\w-]+)/,uo=(function(){function e(n,r,i){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=n.match(Bb);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=i;var a=i.scoped,l=i.sheet,s=i.generateId;this.id=a===!1?this.name:aa(s(this,l)),this.rules=new si(q({},i,{parent:this}));for(var c in r)this.rules.add(c,r[c],q({},i,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(r){r===void 0&&(r=Ti);var i=hr(r),o=i.linebreak;if(r.indent==null&&(r.indent=Ti.indent),r.children==null&&(r.children=Ti.children),r.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(r);return a&&(a=""+o+a+o),this.at+" "+this.id+" {"+a+"}"},e})(),$b=/@keyframes\s+/,Gb=/\$([\w-]+)/g,fo=function(t,n){return typeof t=="string"?t.replace(Gb,function(r,i){return i in n?n[i]:r}):t},Xl=function(t,n,r){var i=t[n],o=fo(i,r);o!==i&&(t[n]=o)},Wb={onCreateRule:function(t,n,r){return typeof t=="string"&&$b.test(t)?new uo(t,n,r):null},onProcessStyle:function(t,n,r){return n.type!=="style"||!r||("animation-name"in t&&Xl(t,"animation-name",r.keyframes),"animation"in t&&Xl(t,"animation",r.keyframes)),t},onChangeValue:function(t,n,r){var i=r.options.sheet;if(!i)return t;switch(n){case"animation":return fo(t,i.keyframes);case"animation-name":return fo(t,i.keyframes);default:return t}}},Hb=(function(e){ri(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,l=a?q({},i,{allowEmpty:!0}):i;return Hr(this.key,this.style,l)},t})(Xu),Ub={onCreateRule:function(t,n,r){return r.parent&&r.parent.type==="keyframes"?new Hb(t,n,r):null}},Vb=(function(){function e(n,r,i){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=n,this.style=r,this.options=i}var t=e.prototype;return t.toString=function(r){var i=hr(r),o=i.linebreak;if(Array.isArray(this.style)){for(var a="",l=0;l<this.style.length;l++)a+=Hr(this.at,this.style[l]),this.style[l+1]&&(a+=o);return a}return Hr(this.at,this.style,r)},e})(),qb=/@font-face/,Kb={onCreateRule:function(t,n,r){return qb.test(t)?new Vb(t,n,r):null}},Yb=(function(){function e(n,r,i){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=n,this.style=r,this.options=i}var t=e.prototype;return t.toString=function(r){return Hr(this.key,this.style,r)},e})(),Jb={onCreateRule:function(t,n,r){return t==="@viewport"||t==="@-ms-viewport"?new Yb(t,n,r):null}},Xb=(function(){function e(n,r,i){this.type="simple",this.isProcessed=!1,this.key=n,this.value=r,this.options=i}var t=e.prototype;return t.toString=function(r){if(Array.isArray(this.value)){for(var i="",o=0;o<this.value.length;o++)i+=this.key+" "+this.value[o]+";",this.value[o+1]&&(i+=`
61
- `);return i}return this.key+" "+this.value+";"},e})(),Qb={"@charset":!0,"@import":!0,"@namespace":!0},Zb={onCreateRule:function(t,n,r){return t in Qb?new Xb(t,n,r):null}},Ql=[Mb,Fb,Wb,Ub,Kb,Jb,Zb],ey={process:!0},Zl={force:!0,process:!0},si=(function(){function e(n){this.map={},this.raw={},this.index=[],this.counter=0,this.options=n,this.classes=n.classes,this.keyframes=n.keyframes}var t=e.prototype;return t.add=function(r,i,o){var a=this.options,l=a.parent,s=a.sheet,c=a.jss,u=a.Renderer,d=a.generateId,f=a.scoped,p=q({classes:this.classes,parent:l,sheet:s,jss:c,Renderer:u,generateId:d,scoped:f,name:r,keyframes:this.keyframes,selector:void 0},o),h=r;r in this.raw&&(h=r+"-d"+this.counter++),this.raw[h]=i,h in this.classes&&(p.selector="."+aa(this.classes[h]));var m=oa(h,i,p);if(!m)return null;this.register(m);var b=p.index===void 0?this.index.length:p.index;return this.index.splice(b,0,m),m},t.replace=function(r,i,o){var a=this.get(r),l=this.index.indexOf(a);a&&this.remove(a);var s=o;return l!==-1&&(s=q({},o,{index:l})),this.add(r,i,s)},t.get=function(r){return this.map[r]},t.remove=function(r){this.unregister(r),delete this.raw[r.key],this.index.splice(this.index.indexOf(r),1)},t.indexOf=function(r){return this.index.indexOf(r)},t.process=function(){var r=this.options.jss.plugins;this.index.slice(0).forEach(r.onProcessRule,r)},t.register=function(r){this.map[r.key]=r,r instanceof co?(this.map[r.selector]=r,r.id&&(this.classes[r.key]=r.id)):r instanceof uo&&this.keyframes&&(this.keyframes[r.name]=r.id)},t.unregister=function(r){delete this.map[r.key],r instanceof co?(delete this.map[r.selector],delete this.classes[r.key]):r instanceof uo&&delete this.keyframes[r.name]},t.update=function(){var r,i,o;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(r=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],o=arguments.length<=2?void 0:arguments[2]):(i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],r=null),r)this.updateOne(this.get(r),i,o);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],i,o)},t.updateOne=function(r,i,o){o===void 0&&(o=ey);var a=this.options,l=a.jss.plugins,s=a.sheet;if(r.rules instanceof e){r.rules.update(i,o);return}var c=r.style;if(l.onUpdate(i,r,s,o),o.process&&c&&c!==r.style){l.onProcessStyle(r.style,r,s);for(var u in r.style){var d=r.style[u],f=c[u];d!==f&&r.prop(u,d,Zl)}for(var p in c){var h=r.style[p],m=c[p];h==null&&h!==m&&r.prop(p,null,Zl)}}},t.toString=function(r){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,l=hr(r),s=l.linebreak,c=0;c<this.index.length;c++){var u=this.index[c],d=u.toString(r);!d&&!a||(i&&(i+=s),i+=d)}return i},e})(),Qu=(function(){function e(n,r){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=q({},r,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),r.Renderer&&(this.renderer=new r.Renderer(this)),this.rules=new si(this.options);for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(r,i,o){var a=this.queue;this.attached&&!a&&(this.queue=[]);var l=this.rules.add(r,i,o);return l?(this.options.jss.plugins.onProcessRule(l),this.attached?(this.deployed&&(a?a.push(l):(this.insertRule(l),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),l):(this.deployed=!1,l)):null},t.replaceRule=function(r,i,o){var a=this.rules.get(r);if(!a)return this.addRule(r,i,o);var l=this.rules.replace(r,i,o);return l&&this.options.jss.plugins.onProcessRule(l),this.attached?(this.deployed&&this.renderer&&(l?a.renderable&&this.renderer.replaceRule(a.renderable,l):this.renderer.deleteRule(a)),l):(this.deployed=!1,l)},t.insertRule=function(r){this.renderer&&this.renderer.insertRule(r)},t.addRules=function(r,i){var o=[];for(var a in r){var l=this.addRule(a,r[a],i);l&&o.push(l)}return o},t.getRule=function(r){return this.rules.get(r)},t.deleteRule=function(r){var i=typeof r=="object"?r:this.rules.get(r);return!i||this.attached&&!i.renderable?!1:(this.rules.remove(i),this.attached&&i.renderable&&this.renderer?this.renderer.deleteRule(i.renderable):!0)},t.indexOf=function(r){return this.rules.indexOf(r)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var r;return(r=this.rules).update.apply(r,arguments),this},t.updateOne=function(r,i,o){return this.rules.updateOne(r,i,o),this},t.toString=function(r){return this.rules.toString(r)},e})(),ty=(function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(r,i,o){for(var a=0;a<this.registry.onCreateRule.length;a++){var l=this.registry.onCreateRule[a](r,i,o);if(l)return l}return null},t.onProcessRule=function(r){if(!r.isProcessed){for(var i=r.options.sheet,o=0;o<this.registry.onProcessRule.length;o++)this.registry.onProcessRule[o](r,i);r.style&&this.onProcessStyle(r.style,r,i),r.isProcessed=!0}},t.onProcessStyle=function(r,i,o){for(var a=0;a<this.registry.onProcessStyle.length;a++)i.style=this.registry.onProcessStyle[a](i.style,i,o)},t.onProcessSheet=function(r){for(var i=0;i<this.registry.onProcessSheet.length;i++)this.registry.onProcessSheet[i](r)},t.onUpdate=function(r,i,o,a){for(var l=0;l<this.registry.onUpdate.length;l++)this.registry.onUpdate[l](r,i,o,a)},t.onChangeValue=function(r,i,o){for(var a=r,l=0;l<this.registry.onChangeValue.length;l++)a=this.registry.onChangeValue[l](a,i,o);return a},t.use=function(r,i){i===void 0&&(i={queue:"external"});var o=this.plugins[i.queue];o.indexOf(r)===-1&&(o.push(r),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,l){for(var s in l)s in a&&a[s].push(l[s]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e})(),ry=(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(r){var i=this.registry,o=r.options.index;if(i.indexOf(r)===-1){if(i.length===0||o>=this.index){i.push(r);return}for(var a=0;a<i.length;a++)if(i[a].options.index>o){i.splice(a,0,r);return}}},t.reset=function(){this.registry=[]},t.remove=function(r){var i=this.registry.indexOf(r);this.registry.splice(i,1)},t.toString=function(r){for(var i=r===void 0?{}:r,o=i.attached,a=ar(i,["attached"]),l=hr(a),s=l.linebreak,c="",u=0;u<this.registry.length;u++){var d=this.registry[u];o!=null&&d.attached!==o||(c&&(c+=s),c+=d.toString(a))}return c},we(e,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e})(),Lr=new ry,po=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),ho="2f1acc6c3a606b082e5eef5e54414ffb";po[ho]==null&&(po[ho]=0);var es=po[ho]++,ts=function(t){t===void 0&&(t={});var n=0,r=function(o,a){n+=1;var l="",s="";return a&&(a.options.classNamePrefix&&(s=a.options.classNamePrefix),a.options.jss.id!=null&&(l=String(a.options.jss.id))),t.minify?""+(s||"c")+es+l+n:s+o.key+"-"+es+(l?"-"+l:"")+"-"+n};return r},Zu=function(t){var n;return function(){return n||(n=t()),n}},ny=function(t,n){try{return t.attributeStyleMap?t.attributeStyleMap.get(n):t.style.getPropertyValue(n)}catch{return""}},iy=function(t,n,r){try{var i=r;if(Array.isArray(r)&&(i=Ft(r)),t.attributeStyleMap)t.attributeStyleMap.set(n,i);else{var o=i?i.indexOf("!important"):-1,a=o>-1?i.substr(0,o-1):i;t.style.setProperty(n,a,o>-1?"important":"")}}catch{return!1}return!0},oy=function(t,n){try{t.attributeStyleMap?t.attributeStyleMap.delete(n):t.style.removeProperty(n)}catch{}},ay=function(t,n){return t.selectorText=n,t.selectorText===n},ed=Zu(function(){return document.querySelector("head")});function ly(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}function sy(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}function cy(e){for(var t=ed(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(r.nodeType===8&&r.nodeValue.trim()===e)return r}return null}function uy(e){var t=Lr.registry;if(t.length>0){var n=ly(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=sy(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&typeof r=="string"){var i=cy(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}function dy(e,t){var n=t.insertionPoint,r=uy(t);if(r!==!1&&r.parent){r.parent.insertBefore(e,r.node);return}if(n&&typeof n.nodeType=="number"){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling);return}ed().appendChild(e)}var fy=Zu(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),rs=function(t,n,r){try{"insertRule"in t?t.insertRule(n,r):"appendRule"in t&&t.appendRule(n)}catch{return!1}return t.cssRules[r]},ns=function(t,n){var r=t.cssRules.length;return n===void 0||n>r?r:n},py=function(){var t=document.createElement("style");return t.textContent=`
62
- `,t},hy=(function(){function e(n){this.getPropertyValue=ny,this.setProperty=iy,this.removeProperty=oy,this.setSelector=ay,this.hasInsertedRules=!1,this.cssRules=[],n&&Lr.add(n),this.sheet=n;var r=this.sheet?this.sheet.options:{},i=r.media,o=r.meta,a=r.element;this.element=a||py(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),o&&this.element.setAttribute("data-meta",o);var l=fy();l&&this.element.setAttribute("nonce",l)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){dy(this.element,this.sheet.options);var r=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&r&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var r=this.element.parentNode;r&&r.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
63
- `)}},t.deploy=function(){var r=this.sheet;if(r){if(r.options.link){this.insertRules(r.rules);return}this.element.textContent=`
64
- `+r.toString()+`
65
- `}},t.insertRules=function(r,i){for(var o=0;o<r.index.length;o++)this.insertRule(r.index[o],o,i)},t.insertRule=function(r,i,o){if(o===void 0&&(o=this.element.sheet),r.rules){var a=r,l=o;if(r.type==="conditional"||r.type==="keyframes"){var s=ns(o,i);if(l=rs(o,a.toString({children:!1}),s),l===!1)return!1;this.refCssRule(r,s,l)}return this.insertRules(a.rules,l),l}var c=r.toString();if(!c)return!1;var u=ns(o,i),d=rs(o,c,u);return d===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(r,u,d),d)},t.refCssRule=function(r,i,o){r.renderable=o,r.options.parent instanceof Qu&&this.cssRules.splice(i,0,o)},t.deleteRule=function(r){var i=this.element.sheet,o=this.indexOf(r);return o===-1?!1:(i.deleteRule(o),this.cssRules.splice(o,1),!0)},t.indexOf=function(r){return this.cssRules.indexOf(r)},t.replaceRule=function(r,i){var o=this.indexOf(r);return o===-1?!1:(this.element.sheet.deleteRule(o),this.cssRules.splice(o,1),this.insertRule(i,o))},t.getRules=function(){return this.element.sheet.cssRules},e})(),gy=0,vy=(function(){function e(n){this.id=gy++,this.version="10.10.0",this.plugins=new ty,this.options={id:{minify:!1},createGenerateId:ts,Renderer:an?hy:null,plugins:[]},this.generateId=ts({minify:!1});for(var r=0;r<Ql.length;r++)this.plugins.use(Ql[r],{queue:"internal"});this.setup(n)}var t=e.prototype;return t.setup=function(r){return r===void 0&&(r={}),r.createGenerateId&&(this.options.createGenerateId=r.createGenerateId),r.id&&(this.options.id=q({},this.options.id,r.id)),(r.createGenerateId||r.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),r.insertionPoint!=null&&(this.options.insertionPoint=r.insertionPoint),"Renderer"in r&&(this.options.Renderer=r.Renderer),r.plugins&&this.use.apply(this,r.plugins),this},t.createStyleSheet=function(r,i){i===void 0&&(i={});var o=i,a=o.index;typeof a!="number"&&(a=Lr.index===0?0:Lr.index+1);var l=new Qu(r,q({},i,{jss:this,generateId:i.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(l),l},t.removeStyleSheet=function(r){return r.detach(),Lr.remove(r),this},t.createRule=function(r,i,o){if(i===void 0&&(i={}),o===void 0&&(o={}),typeof r=="object")return this.createRule(void 0,r,i);var a=q({},o,{name:r,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var l=oa(r,i,a);return l&&this.plugins.onProcessRule(l),l},t.use=function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.forEach(function(l){r.plugins.use(l)}),this},e})(),td=function(t){return new vy(t)},la=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function rd(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if(i==="function")t||(t={}),t[n]=r;else if(i==="object"&&r!==null&&!Array.isArray(r)){var o=rd(r);o&&(t||(t={}),t[n]=o)}}return t}td();function Ei(e){return e&&Vc(e)==="object"&&e.constructor===Object}function nd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},r=n.clone?q({},e):e;return Ei(e)&&Ei(t)&&Object.keys(t).forEach(function(i){i!=="__proto__"&&(Ei(t[i])&&i in e?r[i]=nd(e[i],t[i],n):r[i]=t[i])}),r}function id(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=q({},t);return Object.keys(n).forEach(function(i){n[i]&&(r[i]="".concat(t[i]," ").concat(n[i]))}),r}var rr={set:function(t,n,r,i){var o=t.get(n);o||(o=new Map,t.set(n,o)),o.set(r,i)},get:function(t,n,r){var i=t.get(n);return i?i.get(r):void 0},delete:function(t,n,r){var i=t.get(n);i.delete(r)}},my=Q.createContext(null);function by(){var e=Q.useContext(my);return e}var yy=typeof Symbol=="function"&&Symbol.for;const xy=yy?Symbol.for("mui.nested"):"__THEME_NESTED__";var Sy=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function wy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.disableGlobal,n=t===void 0?!1:t,r=e.productionPrefix,i=r===void 0?"jss":r,o=e.seed,a=o===void 0?"":o,l=a===""?"":"".concat(a,"-"),s=0,c=function(){return s+=1,s};return function(u,d){var f=d.options.name;if(f&&f.indexOf("Mui")===0&&!d.options.link&&!n){if(Sy.indexOf(u.key)!==-1)return"Mui-".concat(u.key);var p="".concat(l).concat(f,"-").concat(u.key);return!d.options.theme[xy]||a!==""?p:"".concat(p,"-").concat(c())}return"".concat(l).concat(i).concat(c())}}var od=Date.now(),ki="fnValues"+od,Pi="fnStyle"+ ++od,Cy=function(){return{onCreateRule:function(n,r,i){if(typeof r!="function")return null;var o=oa(n,{},i);return o[Pi]=r,o},onProcessStyle:function(n,r){if(ki in r||Pi in r)return n;var i={};for(var o in n){var a=n[o];typeof a=="function"&&(delete n[o],i[o]=a)}return r[ki]=i,n},onUpdate:function(n,r,i,o){var a=r,l=a[Pi];l&&(a.style=l(n)||{});var s=a[ki];if(s)for(var c in s)a.prop(c,s[c](n),o)}}},wt="@global",go="@global ",Iy=(function(){function e(n,r,i){this.type="global",this.at=wt,this.isProcessed=!1,this.key=n,this.options=i,this.rules=new si(q({},i,{parent:this}));for(var o in r)this.rules.add(o,r[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(r){return this.rules.get(r)},t.addRule=function(r,i,o){var a=this.rules.add(r,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.replaceRule=function(r,i,o){var a=this.rules.replace(r,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.indexOf=function(r){return this.rules.indexOf(r)},t.toString=function(r){return this.rules.toString(r)},e})(),Ry=(function(){function e(n,r,i){this.type="global",this.at=wt,this.isProcessed=!1,this.key=n,this.options=i;var o=n.substr(go.length);this.rule=i.jss.createRule(o,r,q({},i,{parent:this}))}var t=e.prototype;return t.toString=function(r){return this.rule?this.rule.toString(r):""},e})(),_y=/\s*,\s*/g;function ad(e,t){for(var n=e.split(_y),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function Dy(e,t){var n=e.options,r=e.style,i=r?r[wt]:null;if(i){for(var o in i)t.addRule(o,i[o],q({},n,{selector:ad(o,e.selector)}));delete r[wt]}}function Ty(e,t){var n=e.options,r=e.style;for(var i in r)if(!(i[0]!=="@"||i.substr(0,wt.length)!==wt)){var o=ad(i.substr(wt.length),e.selector);t.addRule(o,r[i],q({},n,{selector:o})),delete r[i]}}function Ey(){function e(n,r,i){if(!n)return null;if(n===wt)return new Iy(n,r,i);if(n[0]==="@"&&n.substr(0,go.length)===go)return new Ry(n,r,i);var o=i.parent;return o&&(o.type==="global"||o.options.parent&&o.options.parent.type==="global")&&(i.scoped=!1),!i.selector&&i.scoped===!1&&(i.selector=n),null}function t(n,r){n.type!=="style"||!r||(Dy(n,r),Ty(n,r))}return{onCreateRule:e,onProcessRule:t}}var is=/\s*,\s*/g,ky=/&/g,Py=/\$([\w-]+)/g;function Oy(){function e(i,o){return function(a,l){var s=i.getRule(l)||o&&o.getRule(l);return s?s.selector:l}}function t(i,o){for(var a=o.split(is),l=i.split(is),s="",c=0;c<a.length;c++)for(var u=a[c],d=0;d<l.length;d++){var f=l[d];s&&(s+=", "),s+=f.indexOf("&")!==-1?f.replace(ky,u):u+" "+f}return s}function n(i,o,a){if(a)return q({},a,{index:a.index+1});var l=i.options.nestingLevel;l=l===void 0?1:l+1;var s=q({},i.options,{nestingLevel:l,index:o.indexOf(i)+1});return delete s.name,s}function r(i,o,a){if(o.type!=="style")return i;var l=o,s=l.options.parent,c,u;for(var d in i){var f=d.indexOf("&")!==-1,p=d[0]==="@";if(!(!f&&!p)){if(c=n(l,s,c),f){var h=t(d,l.selector);u||(u=e(s,a)),h=h.replace(Py,u);var m=l.key+"-"+d;"replaceRule"in s?s.replaceRule(m,i[d],q({},c,{selector:h})):s.addRule(m,i[d],q({},c,{selector:h}))}else p&&s.addRule(d,{},c).addRule(l.key,i[d],{selector:l.selector});delete i[d]}}return i}return{onProcessStyle:r}}var Ny=/[A-Z]/g,Ay=/^ms-/,Oi={};function My(e){return"-"+e.toLowerCase()}function ld(e){if(Oi.hasOwnProperty(e))return Oi[e];var t=e.replace(Ny,My);return Oi[e]=Ay.test(t)?"-"+t:t}function Wn(e){var t={};for(var n in e){var r=n.indexOf("--")===0?n:ld(n);t[r]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Wn):t.fallbacks=Wn(e.fallbacks)),t}function Ly(){function e(n){if(Array.isArray(n)){for(var r=0;r<n.length;r++)n[r]=Wn(n[r]);return n}return Wn(n)}function t(n,r,i){if(r.indexOf("--")===0)return n;var o=ld(r);return r===o?n:(i.prop(o,n),null)}return{onProcessStyle:e,onChangeValue:t}}var z=la&&CSS?CSS.px:"px",mn=la&&CSS?CSS.ms:"ms",Kt=la&&CSS?CSS.percent:"%",zy={"animation-delay":mn,"animation-duration":mn,"background-position":z,"background-position-x":z,"background-position-y":z,"background-size":z,border:z,"border-bottom":z,"border-bottom-left-radius":z,"border-bottom-right-radius":z,"border-bottom-width":z,"border-left":z,"border-left-width":z,"border-radius":z,"border-right":z,"border-right-width":z,"border-top":z,"border-top-left-radius":z,"border-top-right-radius":z,"border-top-width":z,"border-width":z,"border-block":z,"border-block-end":z,"border-block-end-width":z,"border-block-start":z,"border-block-start-width":z,"border-block-width":z,"border-inline":z,"border-inline-end":z,"border-inline-end-width":z,"border-inline-start":z,"border-inline-start-width":z,"border-inline-width":z,"border-start-start-radius":z,"border-start-end-radius":z,"border-end-start-radius":z,"border-end-end-radius":z,margin:z,"margin-bottom":z,"margin-left":z,"margin-right":z,"margin-top":z,"margin-block":z,"margin-block-end":z,"margin-block-start":z,"margin-inline":z,"margin-inline-end":z,"margin-inline-start":z,padding:z,"padding-bottom":z,"padding-left":z,"padding-right":z,"padding-top":z,"padding-block":z,"padding-block-end":z,"padding-block-start":z,"padding-inline":z,"padding-inline-end":z,"padding-inline-start":z,"mask-position-x":z,"mask-position-y":z,"mask-size":z,height:z,width:z,"min-height":z,"max-height":z,"min-width":z,"max-width":z,bottom:z,left:z,top:z,right:z,inset:z,"inset-block":z,"inset-block-end":z,"inset-block-start":z,"inset-inline":z,"inset-inline-end":z,"inset-inline-start":z,"box-shadow":z,"text-shadow":z,"column-gap":z,"column-rule":z,"column-rule-width":z,"column-width":z,"font-size":z,"font-size-delta":z,"letter-spacing":z,"text-decoration-thickness":z,"text-indent":z,"text-stroke":z,"text-stroke-width":z,"word-spacing":z,motion:z,"motion-offset":z,outline:z,"outline-offset":z,"outline-width":z,perspective:z,"perspective-origin-x":Kt,"perspective-origin-y":Kt,"transform-origin":Kt,"transform-origin-x":Kt,"transform-origin-y":Kt,"transform-origin-z":Kt,"transition-delay":mn,"transition-duration":mn,"vertical-align":z,"flex-basis":z,"shape-margin":z,size:z,gap:z,grid:z,"grid-gap":z,"row-gap":z,"grid-row-gap":z,"grid-column-gap":z,"grid-template-rows":z,"grid-template-columns":z,"grid-auto-rows":z,"grid-auto-columns":z,"box-shadow-x":z,"box-shadow-y":z,"box-shadow-blur":z,"box-shadow-spread":z,"font-line-height":z,"text-shadow-x":z,"text-shadow-y":z,"text-shadow-blur":z};function sd(e){var t=/(-[a-z])/g,n=function(a){return a[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var jy=sd(zy);function zr(e,t,n){if(t==null)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=zr(e,t[r],n);else if(typeof t=="object")if(e==="fallbacks")for(var i in t)t[i]=zr(i,t[i],n);else for(var o in t)t[o]=zr(e+"-"+o,t[o],n);else if(typeof t=="number"&&isNaN(t)===!1){var a=n[e]||jy[e];return a&&!(t===0&&a===z)?typeof a=="function"?a(t).toString():""+t+a:t.toString()}return t}function Fy(e){e===void 0&&(e={});var t=sd(e);function n(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=zr(a,i[a],t);return i}function r(i,o){return zr(o,i,t)}return{onProcessStyle:n,onChangeValue:r}}var Pr="",vo="",cd="",ud="",By=an&&"ontouchstart"in document.documentElement;if(an){var Ni={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},$y=document.createElement("p"),Ai=$y.style,Gy="Transform";for(var Mi in Ni)if(Mi+Gy in Ai){Pr=Mi,vo=Ni[Mi];break}Pr==="Webkit"&&"msHyphens"in Ai&&(Pr="ms",vo=Ni.ms,ud="edge"),Pr==="Webkit"&&"-apple-trailing-word"in Ai&&(cd="apple")}var le={js:Pr,css:vo,vendor:cd,browser:ud,isTouch:By};function Wy(e){return e[1]==="-"||le.js==="ms"?e:"@"+le.css+"keyframes"+e.substr(10)}var Hy={noPrefill:["appearance"],supportedProperty:function(t){return t!=="appearance"?!1:le.js==="ms"?"-webkit-"+t:le.css+t}},Uy={noPrefill:["color-adjust"],supportedProperty:function(t){return t!=="color-adjust"?!1:le.js==="Webkit"?le.css+"print-"+t:t}},Vy=/[-\s]+(.)?/g;function qy(e,t){return t?t.toUpperCase():""}function sa(e){return e.replace(Vy,qy)}function Dt(e){return sa("-"+e)}var Ky={noPrefill:["mask"],supportedProperty:function(t,n){if(!/^mask/.test(t))return!1;if(le.js==="Webkit"){var r="mask-image";if(sa(r)in n)return t;if(le.js+Dt(r)in n)return le.css+t}return t}},Yy={noPrefill:["text-orientation"],supportedProperty:function(t){return t!=="text-orientation"?!1:le.vendor==="apple"&&!le.isTouch?le.css+t:t}},Jy={noPrefill:["transform"],supportedProperty:function(t,n,r){return t!=="transform"?!1:r.transform?t:le.css+t}},Xy={noPrefill:["transition"],supportedProperty:function(t,n,r){return t!=="transition"?!1:r.transition?t:le.css+t}},Qy={noPrefill:["writing-mode"],supportedProperty:function(t){return t!=="writing-mode"?!1:le.js==="Webkit"||le.js==="ms"&&le.browser!=="edge"?le.css+t:t}},Zy={noPrefill:["user-select"],supportedProperty:function(t){return t!=="user-select"?!1:le.js==="Moz"||le.js==="ms"||le.vendor==="apple"?le.css+t:t}},e0={supportedProperty:function(t,n){if(!/^break-/.test(t))return!1;if(le.js==="Webkit"){var r="WebkitColumn"+Dt(t);return r in n?le.css+"column-"+t:!1}if(le.js==="Moz"){var i="page"+Dt(t);return i in n?"page-"+t:!1}return!1}},t0={supportedProperty:function(t,n){if(!/^(border|margin|padding)-inline/.test(t))return!1;if(le.js==="Moz")return t;var r=t.replace("-inline","");return le.js+Dt(r)in n?le.css+r:!1}},r0={supportedProperty:function(t,n){return sa(t)in n?t:!1}},n0={supportedProperty:function(t,n){var r=Dt(t);return t[0]==="-"||t[0]==="-"&&t[1]==="-"?t:le.js+r in n?le.css+t:le.js!=="Webkit"&&"Webkit"+r in n?"-webkit-"+t:!1}},i0={supportedProperty:function(t){return t.substring(0,11)!=="scroll-snap"?!1:le.js==="ms"?""+le.css+t:t}},o0={supportedProperty:function(t){return t!=="overscroll-behavior"?!1:le.js==="ms"?le.css+"scroll-chaining":t}},a0={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},l0={supportedProperty:function(t,n){var r=a0[t];return r&&le.js+Dt(r)in n?le.css+r:!1}},dd={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},s0=Object.keys(dd),c0=function(t){return le.css+t},u0={supportedProperty:function(t,n,r){var i=r.multiple;if(s0.indexOf(t)>-1){var o=dd[t];if(!Array.isArray(o))return le.js+Dt(o)in n?le.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(le.js+Dt(o[0])in n))return!1;return o.map(c0)}return!1}},fd=[Hy,Uy,Ky,Yy,Jy,Xy,Qy,Zy,e0,t0,r0,n0,i0,o0,l0,u0],os=fd.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),d0=fd.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,vu(t.noPrefill)),e},[]),Or,Mt={};if(an){Or=document.createElement("p");var Li=window.getComputedStyle(document.documentElement,"");for(var zi in Li)isNaN(zi)||(Mt[Li[zi]]=Li[zi]);d0.forEach(function(e){return delete Mt[e]})}function mo(e,t){if(t===void 0&&(t={}),!Or)return e;if(Mt[e]!=null)return Mt[e];(e==="transition"||e==="transform")&&(t[e]=e in Or.style);for(var n=0;n<os.length&&(Mt[e]=os[n](e,Or.style,t),!Mt[e]);n++);try{Or.style[e]=""}catch{return!1}return Mt[e]}var Yt={},f0={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},p0=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,mt;function h0(e,t,n){if(t==="var")return"var";if(t==="all")return"all";if(n==="all")return", all";var r=t?mo(t):", "+mo(n);return r||t||n}an&&(mt=document.createElement("p"));function as(e,t){var n=t;if(!mt||e==="content")return t;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var r=e+n;if(Yt[r]!=null)return Yt[r];try{mt.style[e]=n}catch{return Yt[r]=!1,!1}if(f0[e])n=n.replace(p0,h0);else if(mt.style[e]===""&&(n=le.css+n,n==="-ms-flex"&&(mt.style[e]="-ms-flexbox"),mt.style[e]=n,mt.style[e]===""))return Yt[r]=!1,!1;return mt.style[e]="",Yt[r]=n,Yt[r]}function g0(){function e(i){if(i.type==="keyframes"){var o=i;o.at=Wy(o.at)}}function t(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(t);continue}var l=!1,s=mo(o);s&&s!==o&&(l=!0);var c=!1,u=as(s,Ft(a));u&&u!==a&&(c=!0),(l||c)&&(l&&delete i[o],i[s||o]=u||a)}return i}function n(i,o){return o.type!=="style"?i:t(i)}function r(i,o){return as(o,Ft(i))||i}return{onProcessRule:e,onProcessStyle:n,onChangeValue:r}}function v0(){var e=function(n,r){return n.length===r.length?n>r?1:-1:n.length-r.length};return{onProcessStyle:function(n,r){if(r.type!=="style")return n;for(var i={},o=Object.keys(n).sort(e),a=0;a<o.length;a++)i[o[a]]=n[o[a]];return i}}}function m0(){return{plugins:[Cy(),Ey(),Oy(),Ly(),Fy(),typeof window>"u"?null:g0(),v0()]}}var b0=td(m0()),y0=wy(),x0=new Map,S0={disableGeneration:!1,generateClassName:y0,jss:b0,sheetsCache:null,sheetsManager:x0,sheetsRegistry:null},w0=Q.createContext(S0),ls=-1e9;function C0(){return ls+=1,ls}var I0={};function R0(e){var t=typeof e=="function";return{create:function(r,i){var o;try{o=t?e(r):e}catch(s){throw s}if(!i||!r.overrides||!r.overrides[i])return o;var a=r.overrides[i],l=q({},o);return Object.keys(a).forEach(function(s){l[s]=nd(l[s],a[s])}),l},options:{}}}function _0(e,t,n){var r=e.state,i=e.stylesOptions;if(i.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=id({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function D0(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var l=rr.get(i.sheetsManager,o,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},rr.set(i.sheetsManager,o,r,l));var s=q({},o.options,i,{theme:r,flip:typeof i.flip=="boolean"?i.flip:r.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;var c=i.sheetsRegistry;if(l.refs===0){var u;i.sheetsCache&&(u=rr.get(i.sheetsCache,o,r));var d=o.create(r,a);u||(u=i.jss.createStyleSheet(d,q({link:!1},s)),u.attach(),i.sheetsCache&&rr.set(i.sheetsCache,o,r,u)),c&&c.add(u),l.staticSheet=u,l.dynamicStyles=rd(d)}if(l.dynamicStyles){var f=i.jss.createStyleSheet(l.dynamicStyles,q({link:!0},s));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=id({baseClasses:l.staticSheet.classes,newClasses:f.classes}),c&&c.add(f)}else n.classes=l.staticSheet.classes;l.refs+=1}}function T0(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function E0(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=rr.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;o.refs===0&&(rr.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function k0(e,t){var n=Q.useRef([]),r,i=Q.useMemo(function(){return{}},t);n.current!==i&&(n.current=i,r=e()),Q.useEffect(function(){return function(){r&&r()}},[i])}function P0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.name,r=t.classNamePrefix,i=t.Component,o=t.defaultTheme,a=o===void 0?I0:o,l=er(t,["name","classNamePrefix","Component","defaultTheme"]),s=R0(e),c=n||r||"makeStyles";s.options={index:C0(),name:n,meta:c,classNamePrefix:c};var u=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=by()||a,h=q({},Q.useContext(w0),l),m=Q.useRef(),b=Q.useRef();k0(function(){var x={name:n,state:{},stylesCreator:s,stylesOptions:h,theme:p};return D0(x,f),b.current=!1,m.current=x,function(){E0(x)}},[p,s]),Q.useEffect(function(){b.current&&T0(m.current,f),b.current=!0});var y=_0(m.current,f.classes,i);return y};return u}const O0=Object.freeze(Object.defineProperty({__proto__:null,default:P0},Symbol.toStringTag,{value:"Module"})),N0=ei(O0);var A0=En.exports,ss;function M0(){return ss||(ss=1,(function(e,t){(function(n,r){e.exports=r()})(typeof self<"u"?self:A0,function(){return(function(n){function r(o){if(i[o])return i[o].exports;var a=i[o]={i:o,l:!1,exports:{}};return n[o].call(a.exports,a,a.exports,r),a.l=!0,a.exports}var i={};return r.m=n,r.c=i,r.d=function(o,a,l){r.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:l})},r.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(a,"a",a),a},r.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},r.p="",r(r.s=3)})([function(n,r){n.exports=xc()},function(n,r){n.exports=Sc()},function(n,r){n.exports=N0},function(n,r,i){function o(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(r,"__esModule",{value:!0});var a=i(4),l=o(a),s=i(6),c=o(s);r.default={isVirtualized:!1,nodeContentRenderer:l.default,scaffoldBlockPxWidth:25,treeNodeRenderer:c.default}},function(n,r,i){function o(x){return x&&x.__esModule?x:{default:x}}function a(x,R){return!!x.children&&typeof x.children!="function"&&x.children.some(function(T){return T===R||a(T,R)})}function l(x){var R=x.scaffoldBlockPxWidth,T=x.connectDragPreview,E=x.connectDragSource,C=x.isDragging,D=x.canDrop,w=x.canDrag,_=x.node,I=x.title,P=x.draggedNode,L=x.path,N=x.treeIndex,W=x.isSearchMatch,O=x.isSearchFocus,F=x.icons,G=x.buttons,H=x.className,Y=x.style,ee=x.didDrop,J=x.lowerSiblingCounts,Z=x.listIndex,U=x.swapFrom,ne=x.swapLength,ie=x.swapDepth,ce=x.onItemClick,B=y(),$=I||_.title,k=P&&a(P,_),A=!ee&&C,j=[];J.forEach(function(te,ae){if(ae>0&&(j.push(u.default.createElement("div",{className:B.lineBlock,key:"pre_"+(1+ae),style:{width:R}})),N!==Z&&ae===ie)){var fe="";fe=Z===U+ne-1?B.highlightBottomLeftCorner:N===U?B.highlightTopLeftCorner:B.highlightLineVertical,j.push(u.default.createElement("div",{className:B.absoluteLineBlock+" "+fe,key:"highlight_"+(1+ae),style:{left:R*ae,width:R}}))}});var V=u.default.createElement("div",{className:B.contentNode},T(u.default.createElement("div",{className:B.row+(_.active?" "+B.activeRow:"")+(A?" "+B.rowLandingPad:"")+(C?" "+B.rowLandingPadDisable:"")+(A&&!D?" "+B.rowCancelPad:"")+(W?" "+B.rowSearchMatch:"")+(O?" "+B.rowSearchFocus:"")+(w?"":" "+B.rowWrapperDragDisabled)+(H?" "+H:""),onClick:function(){return ce?ce(s({},_,{index:N})):null},style:s({opacity:k?.5:1},Y)},_.type==="divider"?u.default.createElement("div",{className:B.divider}):u.default.createElement(c.Fragment,null,j,u.default.createElement("div",{className:B.rowIcon},F),u.default.createElement("div",{className:B.rowLabel},typeof $=="string"?u.default.createElement("span",{className:B.rowTitle},$):typeof $=="function"?$({node:_,path:L,treeIndex:N}):$),u.default.createElement("div",{className:B.rowToolbar},G)))));return w?E(V,{dropEffect:"copy"}):V}Object.defineProperty(r,"__esModule",{value:!0});var s=Object.assign||function(x){for(var R=1;R<arguments.length;R++){var T=arguments[R];for(var E in T)Object.prototype.hasOwnProperty.call(T,E)&&(x[E]=T[E])}return x},c=i(0),u=o(c),d=i(1),f=o(d),p=i(2),h=o(p),m=i(5),b=o(m),y=(0,h.default)(b.default,{name:"MuiNodeContent"});l.defaultProps={buttons:null,canDrag:!1,canDrop:!1,className:"",draggedNode:null,icons:null,isSearchFocus:!1,isSearchMatch:!1,parentNode:null,style:{},swapDepth:null,swapFrom:null,swapLength:null,title:null,toggleChildrenVisibility:null},l.propTypes={buttons:f.default.node,canDrag:f.default.bool,canDrop:f.default.bool,className:f.default.string,connectDragPreview:f.default.func.isRequired,connectDragSource:f.default.func.isRequired,didDrop:f.default.bool.isRequired,draggedNode:f.default.shape({}),icons:f.default.node,isDragging:f.default.bool.isRequired,isOver:f.default.bool.isRequired,isSearchFocus:f.default.bool,isSearchMatch:f.default.bool,listIndex:f.default.number.isRequired,lowerSiblingCounts:f.default.arrayOf(f.default.number).isRequired,node:f.default.shape({}).isRequired,parentNode:f.default.shape({}),path:f.default.arrayOf(f.default.oneOfType([f.default.string,f.default.number])).isRequired,rowDirection:f.default.string.isRequired,scaffoldBlockPxWidth:f.default.number.isRequired,style:f.default.shape({}),swapDepth:f.default.number,swapFrom:f.default.number,swapLength:f.default.number,title:f.default.oneOfType([f.default.func,f.default.node]),toggleChildrenVisibility:f.default.func,treeId:f.default.string.isRequired,treeIndex:f.default.number.isRequired},r.default=l},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){return{"@keyframes arrow-pulse":{"0%":{opacity:0,transform:"translate(0, 0)"},"100%":{opacity:0,transform:"translate(0, 1000%)"},"30%":{opacity:1,transform:"translate(0, 300%)"},"70%":{opacity:1,transform:"translate(0, 700%)"}},absoluteLineBlock:{position:"absolute",top:0},activeRow:{},collapseButton:{},contentNode:{width:"100%"},divider:{backgroundColor:"#D8D8D8",height:1,width:"100%"},expandButton:{},highlightBottomLeftCorner:{zIndex:3},highlightLineVertical:{zIndex:3},highlightTopLeftCorner:{},lineBlock:{display:"inline-block",flex:"0 0 auto",height:"100%",position:"relative"},lineChildren:{display:"inline-block",height:"100%"},nodeContent:{"& $collapseButton, & $expandButton":{"&::after":{border:"solid transparent 10px",borderLeftWidth:7,borderRightWidth:7,borderTopColor:"gray",content:'""',position:"absolute",transform:"translate3d(-50%, -20%, 0)",transformOrigin:"7px 4px"},"&:focus":{"&::after":{filter:"drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9)"},outline:"none"},"&:hover::after":{borderTopColor:"black"},appearance:"none",background:"transparent",border:"none",cursor:"pointer",height:30,padding:0,position:"absolute",top:"45%",transform:"translate3d(-50%, -50%, 0)",width:30,zIndex:2},"& $lineBlock, & $absoluteLineBlock":{display:"inline-block",flex:"0 0 auto",height:"100%",position:"relative"},"& $rowContents":{alignItems:"center",borderRadius:"3px",color:"#595959",display:"flex",height:"100%",justifyContent:"space-between",padding:10,position:"relative"}},row:{"& $rowIcon, & $rowLabel,& $rowToolbar":{alignItems:"center",display:"flex"},"& $rowLabel":{flex:1,overflow:"hidden",padding:"0px 6px"},"& $rowToolbar":{cursor:"pointer"},"&$activeRow":{backgroundColor:"#F3FBFF",color:"#1890FF"},"&$rowCancelPad":{"&::before":{backgroundColor:"#ffd2d6",border:"2px dotted #e6a8ad"}},"&$rowLandingPad":{"&::before":{backgroundColor:"#dddddd",border:"2px dotted #b5b5b5"}},"&$rowLandingPad, &$rowCancelPad":{"& *":{opacity:".6 !important"},"&::before":{bottom:0,content:'""',left:0,position:"absolute",right:0,top:0,zIndex:-1},backgroundColor:"transparent",border:"none",boxShadow:"none",outline:"none"},"&$rowLandingPadDisable":{"&:hover":{backgroundColor:"white"}},backgroundColor:"white",cursor:"grab",display:"flex",flex:1,padding:6,position:"relative"},rowCancelPad:{},rowContents:{},rowIcon:{color:"#D9D9D9"},rowLabel:{},rowLandingPad:{},rowLandingPadDisable:{},rowSearchFocus:{boxShadow:"inset 0 -7px 7px -3px #fc6421"},rowSearchMatch:{boxShadow:"inset 0 -7px 7px -3px #0080ff"},rowToolbar:{},rowWrapper:{"&:active":{backgroundColor:"transparent"},"&:hover":{backgroundColor:"#F3FBFF"},boxSizing:"border-box",cursor:"grab",display:"flex",height:"100%"},rowWrapperDragDisabled:{cursor:"default"}}}},function(n,r,i){function o(b){return b&&b.__esModule?b:{default:b}}function a(b){var y=b.children,x=b.listIndex,R=b.swapFrom,T=b.swapLength,E=b.swapDepth,C=b.lowerSiblingCounts,D=b.connectDropTarget,w=b.isOver,_=b.draggedNode,I=b.canDrop,P=m();return D(s.default.createElement("div",{className:P.node},l.Children.map(y,function(L){return(0,l.cloneElement)(L,{canDrop:I,draggedNode:_,isOver:w,listIndex:x,lowerSiblingCounts:C,swapDepth:E,swapFrom:R,swapLength:T})})))}Object.defineProperty(r,"__esModule",{value:!0});var l=i(0),s=o(l),c=i(1),u=o(c),d=i(2),f=o(d),p=i(7),h=o(p),m=(0,f.default)(h.default,{name:"MuiTreeNode"});a.defaultProps={canDrop:!1,draggedNode:null,swapDepth:null,swapFrom:null,swapLength:null},a.propTypes={canDrop:u.default.bool,children:u.default.node.isRequired,connectDropTarget:u.default.func.isRequired,draggedNode:u.default.shape({}),getPrevRow:u.default.func.isRequired,isOver:u.default.bool.isRequired,listIndex:u.default.number.isRequired,lowerSiblingCounts:u.default.arrayOf(u.default.number).isRequired,node:u.default.shape({}).isRequired,path:u.default.arrayOf(u.default.oneOfType([u.default.string,u.default.number])).isRequired,rowDirection:u.default.string.isRequired,scaffoldBlockPxWidth:u.default.number.isRequired,swapDepth:u.default.number,swapFrom:u.default.number,swapLength:u.default.number,treeId:u.default.string.isRequired,treeIndex:u.default.number.isRequired},r.default=a},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){return{node:{display:"flex"}}}}])})})(En)),En.exports}var L0=M0();const z0=ti(L0);const pd=Object.freeze({left:0,top:0,width:16,height:16}),Hn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ln=Object.freeze({...pd,...Hn}),bo=Object.freeze({...ln,body:"",hidden:!1}),j0=Object.freeze({width:null,height:null}),hd=Object.freeze({...j0,...Hn});function F0(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/i,o%1===0?r(o):0)}}return t}const B0=/[\s,]+/;function $0(e,t){t.split(B0).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const gd={...hd,preserveAspectRatio:""};function cs(e){const t={...gd},n=(r,i)=>e.getAttribute(r)||i;return t.width=n("width",null),t.height=n("height",null),t.rotate=F0(n("rotate","")),$0(t,n("flip","")),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}function G0(e,t){for(const n in gd)if(e[n]!==t[n])return!0;return!1}const jr=/^[a-z0-9]+(-[a-z0-9]+)*$/,sn=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const l=i.pop(),s=i.pop(),c={provider:i.length>0?i[0]:r,prefix:s,name:l};return t&&!kn(c)?null:c}const o=i[0],a=o.split("-");if(a.length>1){const l={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!kn(l)?null:l}if(n&&r===""){const l={provider:r,prefix:"",name:o};return t&&!kn(l,n)?null:l}return null},kn=(e,t)=>e?!!((e.provider===""||e.provider.match(jr))&&(t&&e.prefix===""||e.prefix.match(jr))&&e.name.match(jr)):!1;function W0(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function us(e,t){const n=W0(e,t);for(const r in bo)r in Hn?r in e&&!(r in n)&&(n[r]=Hn[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function H0(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function o(a){if(n[a])return i[a]=[];if(!(a in i)){i[a]=null;const l=r[a]&&r[a].parent,s=l&&o(l);s&&(i[a]=[l].concat(s))}return i[a]}return Object.keys(n).concat(Object.keys(r)).forEach(o),i}function U0(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let o={};function a(l){o=us(r[l]||i[l],o)}return a(t),n.forEach(a),us(e,o)}function vd(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=H0(e);for(const i in r){const o=r[i];o&&(t(i,U0(e,i,o)),n.push(i))}return n}const V0={provider:"",aliases:{},not_found:{},...pd};function ji(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function md(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ji(e,V0))return null;const n=t.icons;for(const i in n){const o=n[i];if(!i.match(jr)||typeof o.body!="string"||!ji(o,bo))return null}const r=t.aliases||Object.create(null);for(const i in r){const o=r[i],a=o.parent;if(!i.match(jr)||typeof a!="string"||!n[a]&&!r[a]||!ji(o,bo))return null}return t}const Un=Object.create(null);function q0(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Tt(e,t){const n=Un[e]||(Un[e]=Object.create(null));return n[t]||(n[t]=q0(e,t))}function ca(e,t){return md(t)?vd(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function K0(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Y0(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Un)).forEach(i=>{(typeof i=="string"&&typeof t=="string"?[t]:Object.keys(Un[i]||{})).forEach(a=>{const l=Tt(i,a);n=n.concat(Object.keys(l.icons).map(s=>(i!==""?"@"+i+":":"")+a+":"+s))})}),n}let Ur=!1;function bd(e){return typeof e=="boolean"&&(Ur=e),Ur}function Vr(e){const t=typeof e=="string"?sn(e,!0,Ur):e;if(t){const n=Tt(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function yd(e,t){const n=sn(e,!0,Ur);if(!n)return!1;const r=Tt(n.provider,n.prefix);return K0(r,n.name,t)}function ds(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ur&&!t&&!e.prefix){let i=!1;return md(e)&&(e.prefix="",vd(e,(o,a)=>{a&&yd(o,a)&&(i=!0)})),i}const n=e.prefix;if(!kn({provider:t,prefix:n,name:"a"}))return!1;const r=Tt(t,n);return!!ca(r,e)}function J0(e){return!!Vr(e)}function X0(e){const t=Vr(e);return t?{...ln,...t}:null}function Q0(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const o=i.provider,a=i.prefix,l=i.name,s=n[o]||(n[o]=Object.create(null)),c=s[a]||(s[a]=Tt(o,a));let u;l in c.icons?u=t.loaded:a===""||c.missing.has(l)?u=t.missing:u=t.pending;const d={provider:o,prefix:a,name:l};u.push(d)}),t}function xd(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function Z0(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(o=>{const a=o.icons,l=a.pending.length;a.pending=a.pending.filter(s=>{if(s.prefix!==i)return!0;const c=s.name;if(e.icons[c])a.loaded.push({provider:r,prefix:i,name:c});else if(e.missing.has(c))a.missing.push({provider:r,prefix:i,name:c});else return n=!0,!0;return!1}),a.pending.length!==l&&(n||xd([e],o.id),o.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),o.abort))})}))}let ex=0;function tx(e,t,n){const r=ex++,i=xd.bind(null,n,r);if(!t.pending.length)return i;const o={id:r,icons:t,callback:e,abort:i};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(o)}),i}const yo=Object.create(null);function fs(e,t){yo[e]=t}function xo(e){return yo[e]||yo[""]}function rx(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const o=typeof i=="string"?sn(i,t,n):i;o&&r.push(o)}),r}var nx={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ix(e,t,n,r){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let C=e.resources.slice(0);for(a=[];C.length>1;){const D=Math.floor(Math.random()*C.length);a.push(C[D]),C=C.slice(0,D).concat(C.slice(D+1))}a=a.concat(C)}else a=e.resources.slice(o).concat(e.resources.slice(0,o));const l=Date.now();let s="pending",c=0,u,d=null,f=[],p=[];typeof r=="function"&&p.push(r);function h(){d&&(clearTimeout(d),d=null)}function m(){s==="pending"&&(s="aborted"),h(),f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function b(C,D){D&&(p=[]),typeof C=="function"&&p.push(C)}function y(){return{startTime:l,payload:t,status:s,queriesSent:c,queriesPending:f.length,subscribe:b,abort:m}}function x(){s="failed",p.forEach(C=>{C(void 0,u)})}function R(){f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function T(C,D,w){const _=D!=="success";switch(f=f.filter(I=>I!==C),s){case"pending":break;case"failed":if(_||!e.dataAfterTimeout)return;break;default:return}if(D==="abort"){u=w,x();return}if(_){u=w,f.length||(a.length?E():x());return}if(h(),R(),!e.random){const I=e.resources.indexOf(C.resource);I!==-1&&I!==e.index&&(e.index=I)}s="completed",p.forEach(I=>{I(w)})}function E(){if(s!=="pending")return;h();const C=a.shift();if(C===void 0){if(f.length){d=setTimeout(()=>{h(),s==="pending"&&(R(),x())},e.timeout);return}x();return}const D={status:"pending",resource:C,callback:(w,_)=>{T(D,w,_)}};f.push(D),c++,d=setTimeout(E,e.rotate),n(C,t,D.callback)}return setTimeout(E),y}function Sd(e){const t={...nx,...e};let n=[];function r(){n=n.filter(l=>l().status==="pending")}function i(l,s,c){const u=ix(t,l,s,(d,f)=>{r(),c&&c(d,f)});return n.push(u),u}function o(l){return n.find(s=>l(s))||null}return{query:i,find:o,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:r}}function ua(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ci=Object.create(null),Cr=["https://api.simplesvg.com","https://api.unisvg.com"],Pn=[];for(;Cr.length>0;)Cr.length===1||Math.random()>.5?Pn.push(Cr.shift()):Pn.push(Cr.pop());ci[""]=ua({resources:["https://api.iconify.design"].concat(Pn)});function ps(e,t){const n=ua(t);return n===null?!1:(ci[e]=n,!0)}function ui(e){return ci[e]}function ox(){return Object.keys(ci)}function hs(){}const Fi=Object.create(null);function ax(e){if(!Fi[e]){const t=ui(e);if(!t)return;const n=Sd(t),r={config:t,redundancy:n};Fi[e]=r}return Fi[e]}function wd(e,t,n){let r,i;if(typeof e=="string"){const o=xo(e);if(!o)return n(void 0,424),hs;i=o.send;const a=ax(e);a&&(r=a.redundancy)}else{const o=ua(e);if(o){r=Sd(o);const a=e.resources?e.resources[0]:"",l=xo(a);l&&(i=l.send)}}return!r||!i?(n(void 0,424),hs):r.query(t,i,n)().abort}const gs="iconify2",qr="iconify",Cd=qr+"-count",vs=qr+"-version",Id=36e5,lx=168;function So(e,t){try{return e.getItem(t)}catch{}}function da(e,t,n){try{return e.setItem(t,n),!0}catch{}}function ms(e,t){try{e.removeItem(t)}catch{}}function wo(e,t){return da(e,Cd,t.toString())}function Co(e){return parseInt(So(e,Cd))||0}const Bt={local:!0,session:!0},Rd={local:new Set,session:new Set};let fa=!1;function sx(e){fa=e}let bn=typeof window>"u"?{}:window;function _d(e){const t=e+"Storage";try{if(bn&&bn[t]&&typeof bn[t].length=="number")return bn[t]}catch{}Bt[e]=!1}function Dd(e,t){const n=_d(e);if(!n)return;const r=So(n,vs);if(r!==gs){if(r){const l=Co(n);for(let s=0;s<l;s++)ms(n,qr+s.toString())}da(n,vs,gs),wo(n,0);return}const i=Math.floor(Date.now()/Id)-lx,o=l=>{const s=qr+l.toString(),c=So(n,s);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,l))return!0}catch{}ms(n,s)}};let a=Co(n);for(let l=a-1;l>=0;l--)o(l)||(l===a-1?(a--,wo(n,a)):Rd[e].add(l))}function Td(){if(!fa){sx(!0);for(const e in Bt)Dd(e,t=>{const n=t.data,r=t.provider,i=n.prefix,o=Tt(r,i);if(!ca(o,n).length)return!1;const a=n.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,a):a,!0})}}function cx(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in Bt)Dd(r,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function ux(e,t){fa||Td();function n(r){let i;if(!Bt[r]||!(i=_d(r)))return;const o=Rd[r];let a;if(o.size)o.delete(a=Array.from(o).shift());else if(a=Co(i),!wo(i,a+1))return;const l={cached:Math.floor(Date.now()/Id),provider:e.provider,data:t};return da(i,qr+a.toString(),JSON.stringify(l))}t.lastModified&&!cx(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function bs(){}function dx(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Z0(e)}))}function fx(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;delete e.iconsToLoad;let o;if(!i||!(o=xo(n)))return;o.prepare(n,r,i).forEach(l=>{wd(n,l,s=>{if(typeof s!="object")l.icons.forEach(c=>{e.missing.add(c)});else try{const c=ca(e,s);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),ux(e,s)}catch(c){console.error(c)}dx(e)})})}))}const pa=(e,t)=>{const n=rx(e,!0,bd()),r=Q0(n);if(!r.pending.length){let s=!0;return t&&setTimeout(()=>{s&&t(r.loaded,r.missing,r.pending,bs)}),()=>{s=!1}}const i=Object.create(null),o=[];let a,l;return r.pending.forEach(s=>{const{provider:c,prefix:u}=s;if(u===l&&c===a)return;a=c,l=u,o.push(Tt(c,u));const d=i[c]||(i[c]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(s=>{const{provider:c,prefix:u,name:d}=s,f=Tt(c,u),p=f.pendingIcons||(f.pendingIcons=new Set);p.has(d)||(p.add(d),i[c][u].push(d))}),o.forEach(s=>{const{provider:c,prefix:u}=s;i[c][u].length&&fx(s,i[c][u])}),t?tx(t,r,o):bs},px=e=>new Promise((t,n)=>{const r=typeof e=="string"?sn(e,!0):e;if(!r){n(e);return}pa([r||e],i=>{if(i.length&&r){const o=Vr(r);if(o){t({...ln,...o});return}}n(e)})});function hx(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function gx(e,t){const n=typeof e=="string"?sn(e,!0,!0):null;if(!n){const o=hx(e);return{value:e,data:o}}const r=Vr(n);if(r!==void 0||!n.prefix)return{value:e,name:n,data:r};const i=pa([n],()=>t(e,n,Vr(n)));return{value:e,name:n,loading:i}}function Bi(e){return e.hasAttribute("inline")}let Ed=!1;try{Ed=navigator.vendor.indexOf("Apple")===0}catch{}function vx(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(Ed||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const mx=/(-?[0-9.]*[0-9]+[0-9.]*)/g,bx=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Io(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(mx);if(r===null||!r.length)return e;const i=[];let o=r.shift(),a=bx.test(o);for(;;){if(a){const l=parseFloat(o);isNaN(l)?i.push(o):i.push(Math.ceil(l*t*n)/n)}else i.push(o);if(o=r.shift(),o===void 0)return i.join("");a=!a}}const yx=e=>e==="unset"||e==="undefined"||e==="none";function kd(e,t){const n={...ln,...e},r={...hd,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,r].forEach(h=>{const m=[],b=h.hFlip,y=h.vFlip;let x=h.rotate;b?y?x+=2:(m.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),m.push("scale(-1 1)"),i.top=i.left=0):y&&(m.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),m.push("scale(1 -1)"),i.top=i.left=0);let R;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:R=i.height/2+i.top,m.unshift("rotate(90 "+R.toString()+" "+R.toString()+")");break;case 2:m.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:R=i.width/2+i.left,m.unshift("rotate(-90 "+R.toString()+" "+R.toString()+")");break}x%2===1&&(i.left!==i.top&&(R=i.left,i.left=i.top,i.top=R),i.width!==i.height&&(R=i.width,i.width=i.height,i.height=R)),m.length&&(o='<g transform="'+m.join(" ")+'">'+o+"</g>")});const a=r.width,l=r.height,s=i.width,c=i.height;let u,d;a===null?(d=l===null?"1em":l==="auto"?c:l,u=Io(d,s/c)):(u=a==="auto"?s:a,d=l===null?Io(u,c/s):l==="auto"?c:l);const f={},p=(h,m)=>{yx(m)||(f[h]=m.toString())};return p("width",u),p("height",d),f.viewBox=i.left.toString()+" "+i.top.toString()+" "+s.toString()+" "+c.toString(),{attributes:f,body:o}}const xx=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Vn=xx();function Sx(e){Vn=e}function wx(){return Vn}function Cx(e,t){const n=ui(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(a=>{i=Math.max(i,a.length)});const o=t+".json?icons=";r=n.maxURL-i-n.path.length-o.length}return r}function Ix(e){return e===404}const Rx=(e,t,n)=>{const r=[],i=Cx(e,t),o="icons";let a={type:o,provider:e,prefix:t,icons:[]},l=0;return n.forEach((s,c)=>{l+=s.length+1,l>=i&&c>0&&(r.push(a),a={type:o,provider:e,prefix:t,icons:[]},l=s.length),a.icons.push(s)}),r.push(a),r};function _x(e){if(typeof e=="string"){const t=ui(e);if(t)return t.path}return"/"}const Dx=(e,t,n)=>{if(!Vn){n("abort",424);return}let r=_x(t.provider);switch(t.type){case"icons":{const o=t.prefix,l=t.icons.join(","),s=new URLSearchParams({icons:l});r+=o+".json?"+s.toString();break}case"custom":{const o=t.uri;r+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let i=503;Vn(e+r).then(o=>{const a=o.status;if(a!==200){setTimeout(()=>{n(Ix(a)?"abort":"next",a)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",i)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",i)})},Tx={prepare:Rx,send:Dx};function ys(e,t){switch(e){case"local":case"session":Bt[e]=t;break;case"all":for(const n in Bt)Bt[n]=t;break}}const $i="data-style";let Pd="";function Ex(e){Pd=e}function xs(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute($i));n||(n=document.createElement("style"),n.setAttribute($i,$i),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+Pd}function Od(){fs("",Tx),bd(!0);let e;try{e=window}catch{}if(e){if(Td(),e.IconifyPreload!==void 0){const n=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!ds(i))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const n=e.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const i="IconifyProviders["+r+"] is invalid.";try{const o=n[r];if(typeof o!="object"||!o||o.resources===void 0)continue;ps(r,o)||console.error(i)}catch{console.error(i)}}}}return{enableCache:n=>ys(n,!0),disableCache:n=>ys(n,!1),iconExists:J0,getIcon:X0,listIcons:Y0,addIcon:yd,addCollection:ds,calculateSize:Io,buildIcon:kd,loadIcons:pa,loadIcon:px,addAPIProvider:ps,appendCustomStyle:Ex,_api:{getAPIConfig:ui,setAPIModule:fs,sendAPIQuery:wd,setFetch:Sx,getFetch:wx,listAPIProviders:ox}}}function Nd(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function kx(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Px(e){return"data:image/svg+xml,"+kx(e)}function Ox(e){return'url("'+Px(e)+'")'}const Ro={"background-color":"currentColor"},Ad={"background-color":"transparent"},Ss={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},ws={"-webkit-mask":Ro,mask:Ro,background:Ad};for(const e in ws){const t=ws[e];for(const n in Ss)t[e+"-"+n]=Ss[n]}function Cs(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function Nx(e,t,n){const r=document.createElement("span");let i=e.body;i.indexOf("<a")!==-1&&(i+="<!-- "+Date.now()+" -->");const o=e.attributes,a=Nd(i,{...o,width:t.width+"",height:t.height+""}),l=Ox(a),s=r.style,c={"--svg":l,width:Cs(o.width),height:Cs(o.height),...n?Ro:Ad};for(const u in c)s.setProperty(u,c[u]);return r}let Fr;function Ax(){try{Fr=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Fr=null}}function Mx(e){return Fr===void 0&&Ax(),Fr?Fr.createHTML(e):e}function Lx(e){const t=document.createElement("span"),n=e.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const i=Nd(e.body,n);return t.innerHTML=Mx(i),t.firstChild}function Is(e,t){const n=t.icon.data,r=t.customisations,i=kd(n,r);r.preserveAspectRatio&&(i.attributes.preserveAspectRatio=r.preserveAspectRatio);const o=t.renderedMode;let a;o==="svg"?a=Lx(i):a=Nx(i,{...ln,...n},o==="mask");const l=Array.from(e.childNodes).find(s=>{const c=s.tagName&&s.tagName.toUpperCase();return c==="SPAN"||c==="SVG"});l?a.tagName==="SPAN"&&l.tagName===a.tagName?l.setAttribute("style",a.getAttribute("style")):e.replaceChild(a,l):e.appendChild(a)}function Rs(e,t,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:r}}function zx(e="iconify-icon"){let t,n;try{t=window.customElements,n=window.HTMLElement}catch{return}if(!t||!n)return;const r=t.get(e);if(r)return r;const i=["icon","mode","inline","width","height","rotate","flip"],o=class extends n{_shadowRoot;_state;_checkQueued=!1;constructor(){super();const l=this._shadowRoot=this.attachShadow({mode:"open"}),s=Bi(this);xs(l,s),this._state=Rs({value:""},s),this._queueCheck()}static get observedAttributes(){return i.slice(0)}attributeChangedCallback(l){if(l==="inline"){const s=Bi(this),c=this._state;s!==c.inline&&(c.inline=s,xs(this._shadowRoot,s))}else this._queueCheck()}get icon(){const l=this.getAttribute("icon");if(l&&l.slice(0,1)==="{")try{return JSON.parse(l)}catch{}return l}set icon(l){typeof l=="object"&&(l=JSON.stringify(l)),this.setAttribute("icon",l)}get inline(){return Bi(this)}set inline(l){l?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const l=this._state;if(l.rendered){const s=this._shadowRoot;if(l.renderedMode==="svg")try{s.lastChild.setCurrentTime(0);return}catch{}Is(s,l)}}get status(){const l=this._state;return l.rendered?"rendered":l.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const l=this._state,s=this.getAttribute("icon");if(s!==l.icon.value){this._iconChanged(s);return}if(!l.rendered)return;const c=this.getAttribute("mode"),u=cs(this);(l.attrMode!==c||G0(l.customisations,u))&&this._renderIcon(l.icon,u,c)}_iconChanged(l){const s=gx(l,(c,u,d)=>{const f=this._state;if(f.rendered||this.getAttribute("icon")!==c)return;const p={value:c,name:u,data:d};p.data?this._gotIconData(p):f.icon=p});s.data?this._gotIconData(s):this._state=Rs(s,this._state.inline,this._state)}_gotIconData(l){this._checkQueued=!1,this._renderIcon(l,cs(this),this.getAttribute("mode"))}_renderIcon(l,s,c){const u=vx(l.data.body,c),d=this._state.inline;Is(this._shadowRoot,this._state={rendered:!0,icon:l,inline:d,customisations:s,attrMode:c,renderedMode:u})}};i.forEach(l=>{l in o.prototype||Object.defineProperty(o.prototype,l,{get:function(){return this.getAttribute(l)},set:function(s){s!==null?this.setAttribute(l,s):this.removeAttribute(l)}})});const a=Od();for(const l in a)o[l]=o.prototype[l]=a[l];return t.define(e,o),o}const jx=zx()||Od(),{enableCache:m_,disableCache:b_,iconExists:y_,getIcon:x_,listIcons:S_,addIcon:w_,addCollection:C_,calculateSize:I_,buildIcon:R_,loadIcons:__,loadIcon:D_,addAPIProvider:T_,_api:E_}=jx,Ut=(e,t,n="children")=>e.map(r=>Array.isArray(r[n])?t({...r,[n]:Ut(r[n],t,n)}):t(r)),Md=(e,t="children")=>{const n=[];return Ut(e,r=>n.push(r),t),n},ha=(e,t,n="children")=>e.map(r=>({...r})).filter(r=>{const i=r[n];if(Array.isArray(i)){const a=ha(i,t,n);r[n]=a?.length?a:void 0}const o={filteredChildren:r[n],isLeaf:!i?.length};return t(r,o)}),Ld=e=>/^https?:\/\//.test(e),zd=e=>/^mailto:/i.test(e.trim()),Fx=e=>{if(!e||!e?.startsWith("/"))return!1;const t=i=>i.endsWith("/")?i:`${i}/`,n=t(window.location.pathname),r=t(new URL(e,window.location.origin).pathname);return n.startsWith(r)},jd=(e=[])=>{const t=e.map((n,r)=>({path:n,index:r})).filter(n=>Fx(n.path));return t?.length?t.slice(1).reduce((n,r)=>n.path.length>=r.path.length?n:r,t[0]).index:-1},Bx=(e,t={})=>{const{columns:n=1,breakInside:r=!1,groupHeight:i=48,itemHeight:o=24,childrenKey:a="items"}=t,l=e.length,s=e.reduce((m,b)=>m+i+(b[a]?.length||0)*o,0),c=Math.ceil(s/n),u=[[]];let d=0,f=0;const p=c*.2,h=m=>f>c-p&&d<n-1&&f+m>c+p;return e.forEach(m=>{const b=i+(m[a]?.length||0)*o;r&&h(i)&&(d++,f=0,u[d]=[]),!r&&f>0&&(l<=n||h(b))&&(d++,f=0,u[d]=[]),u[d].push({...m,group:!0}),f+=i,m[a]&&m[a].forEach(y=>{r&&h(o)&&(d++,f=0,u[d]=[]),u[d].push({...y,group:!1}),f+=o})}),u};function at({icon:e,size:t=void 0,sx:n={},...r}){const i=[...Array.isArray(n)?n:[n]];t&&i.push({width:t,height:t});const[o,a]=v.useState(!1),[l,s]=v.useState(!0);if(jo(async()=>{s(!0);try{await Fo(e),a(!0)}catch{a(!1)}s(!1)},[e]),r.variant||i.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),Ld(e))return g.jsx(nr,{component:"span",...r,src:e,sx:i});const c=t?.6*t+4:0;return l?g.jsx(Se,{icon:"codicon:blank",height:c||void 0}):o?g.jsx(nr,{component:"span",...r,sx:i,children:g.jsx(Se,{icon:e,height:c||void 0})}):e&&typeof e=="string"?(i.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),g.jsx(nr,{component:"span",...r,sx:i,children:Array.from(e)[0]})):null}function ga(e=["en","zh"]){const{blocklet:t}=Wt();return v.useMemo(()=>{const r=t.environments.find(c=>c.key==="BLOCKLET_APP_LANGUAGES"),i=r?r.value.split(","):e,o=i[0]||"en",a=i.filter(c=>Ve.SUPPORTED_LANGUAGES[c]),l=a.reduce((c,u)=>(c[u]=Ve.SUPPORTED_LANGUAGES[u].nativeName,c),{}),s=a.map(c=>({code:c,name:Ve.SUPPORTED_LANGUAGES[c].nativeName}));return{locales:i,localeMap:l,defaultLocale:o,languages:s}},[t.environments,e])}const $x=e=>e.from!=="team-tmpl";function Gx({prevPath:e,nextPath:t,node:n}){if(n.from==="team-tmpl")return!1;const r=e.length,i=t.length;return!!(r===i&&nh(e.slice(0,r-1),t.slice(0,i-1)))}function Fd({treeNode:e}){const{locale:t}=Pe(),{blocklet:n}=Wt(),{defaultLocale:r}=ga(),i=n.environments.find(l=>l.key===Ve.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),o=re(l=>{if(l?.startsWith("/"))try{return new URL(l,i?.value).href}catch{console.error("Failed to parse url",{url:l,origin:i?.value})}return l});function a(){const{title:l,subtitle:s}=e;let c=l,u=s;return Qt(l)&&(c=l[t]||l[r]||l.en),!v.isValidElement(s)&&Qt(s)&&(u=s[t]||s[r]||s.en),g.jsxs(X,{sx:{display:"flex",alignItems:"center"},children:[g.jsx(ue,{variant:"subtitle1",sx:{fontSize:16},children:c}),s&&g.jsx(ue,{variant:"body2",color:"gray",sx:{ml:1.5,lineHeight:1},children:u})]})}return g.jsxs(g.Fragment,{children:[e.icon&&(Bo(o(e.icon))?g.jsx(at,{size:16,style:{marginRight:4},icon:o(e.icon)}):g.jsx(Se,{size:16,style:{marginRight:4},icon:e.icon})),a()]})}Fd.propTypes={treeNode:S.object.isRequired};const Wx=Ze(X)(({theme:e})=>({"& .MuiNodeContent-row":{backgroundColor:e.palette.background.default}}));function Bd({treeData:e,setTreeData:t=()=>{},renderActions:n=()=>{}}){const r=e.map(o=>({...o,expanded:!0})),i={};return typeof window<"u"&&(i.context=window),g.jsx(Wx,{children:g.jsx(cg,{backend:ug,...i,children:g.jsx(Ob,{generateNodeProps:o=>{const a=$x(o.node);return{buttons:n({data:o.node,className:"list-item-actions"}),icons:a?g.jsx(Se,{icon:"ic:round-drag-indicator"}):g.jsx(X,{sx:{width:16,height:16}}),title:g.jsx(Fd,{treeNode:o.node})}},maxDepth:2,isVirtualized:!1,treeData:r,onChange:t,canDrop:Gx,theme:z0})})})}Bd.propTypes={treeData:S.object.isRequired,setTreeData:S.func,renderActions:S.func};var Hx=yc();const Ux=ti(Hx);function $d({sx:e=null,onAdd:t=()=>{},onChange:n=()=>{},defaultLocale:r="en",locale:i="",locales:o=[],localeMap:a={},onRemoveLocale:l=()=>{}}){const{t:s}=Pe(),c=v.useRef(),[u,d]=v.useState(null),f=Gt({localeList:[],inputLocale:"",localeError:""}),p=v.useMemo(()=>!!u,[u]),h=v.useMemo(()=>o.includes(i)?i:r,[o,i]),m=v.useMemo(()=>f.localeList.filter(w=>!!a[w]),[f.localeList,a]),b=v.useMemo(()=>Object.keys(zt(a,[...f.localeList,r])).map(w=>({title:a[w],value:w})),[f.localeList]),y=v.useMemo(()=>`Default (${a[r]||Object.values(a)?.[0]})`,[a]),x=re(w=>w?w===r||f.localeList.includes(w)?s("navigation.form.localeExists",{value:w}):!0:s("common.requiredErrorText",{name:"Locale"})),R=re((w="")=>{const _=w?.trim(),I=x(_);return I!==!0?f.localeError=I:f.localeError="",I}),T=re(()=>{d(null),f.inputLocale="",f.localeError=""}),E=re(()=>{const w=f.inputLocale?.trim();R(w)===!0&&(T(),f.localeList.push(w),t(w))}),C=re((w,_)=>{w.preventDefault(),w.stopPropagation(),f.localeList=Xc(f.localeList,_),l(_)}),D=re(w=>{const{value:_}=w.target;R(_),f.inputLocale=_});return v.useEffect(()=>{f.localeList=[...o]},[o,f]),ig("enter",()=>{setTimeout(()=>{E()})},{target:c}),g.jsxs(g.Fragment,{children:[g.jsxs(Sg,{sx:e,value:h,onChange:(w,_)=>{n(_)},children:[g.jsx(rl,{label:y,value:r}),m.map(w=>g.jsx(rl,{sx:{position:"relative"},label:g.jsxs(g.Fragment,{children:[a[w],g.jsx(We,{size:"small",color:"inherit",sx:{position:"absolute",top:0,right:0},onClick:_=>{C(_,w)},children:g.jsx(Se,{icon:"mdi:close",height:14})})]}),value:w},w)),g.jsx(We,{color:"primary",disableFocusRipple:!0,sx:{width:"48px"},onClick:w=>{d(w.currentTarget)},children:g.jsx(Se,{icon:"mdi:plus"})})]}),g.jsx(eo,{open:p,anchorEl:u,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:g.jsxs(X,{sx:{p:2,width:"270px"},children:[g.jsx(ue,{variant:"subtitle2",children:s("navigation.form.localePlaceholder")}),g.jsx(X,{sx:{mt:1},children:g.jsx(io,{required:!0,fullWidth:!0,label:"Locale",value:f.inputLocale,options:b,onChange:D,error:!!f.localeError,helperText:f.localeError||" "})}),g.jsx(X,{sx:{display:"flex",justifyContent:"flex-end"},children:g.jsx(_t,{size:"small",variant:"contained",onClick:E,children:s("common.confirm")})})]})})]})}$d.propTypes={sx:S.any,onAdd:S.func,onChange:S.func,onRemoveLocale:S.func,defaultLocale:S.string,locale:S.string,localeMap:S.object,locales:S.array};const va=["https://api.iconify.design","https://api.unisvg.com","https://api.simplesvg.com"];async function Gd(e,t,n=5e3){for(const r of va){const i=Te(r,e);try{return await Ig.get(i,{params:t,timeout:n})}catch(o){console.warn(`Failed to fetch from ${i}:`,o)}}throw new Error(`All icon API endpoints ${e} failed`)}async function Vx({keyword:e,limit:t=999,start:n=0,palette:r=!1}){let i="",o=e;e.includes(":")&&([i,o]=e.split(":"));const{data:a}=await Gd("/search",{query:`${o} palette=${r}`||e,start:n,limit:t,...i&&{prefix:i}});return a}const yn=new Map;async function qx(e){if(yn.has(e))return yn.get(e);const t=(async()=>{const{data:n}=await Gd("/collection",{prefix:e}),r=new Set;return n.uncategorized?.forEach(i=>r.add(`${e}:${i}`)),Object.values(n.categories??{}).forEach(i=>{i.forEach(o=>r.add(`${e}:${o}`))}),Array.from(r)})();yn.set(e,t);try{return await t}catch(n){throw yn.delete(e),n}}function Kx(e){return Te(va[0],`${e}.svg`)}function Yx(e){try{const t=new URL(e);for(const n of va)if(t.origin===n)return ih(t.pathname).replace(".svg","");return""}catch{return""}}function Jx(e){let t=!0,n=e;return e&&(e.startsWith("/")?(t=!1,n=""):Bo(e)&&(n=Yx(e))),{isIconId:t,iconId:n}}const Xx=v.lazy(()=>sh(()=>import("./index-D3SOJZGy.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(e=>({default:e.Uploader}))),_s=Fe(at)(({theme:e})=>({"&&":{color:e.palette.text.primary},"> img":{filter:e.palette.mode==="dark"?"invert(1)":"none"}}));function Wd({icon:e,...t}){const[n,r]=v.useState(!1);return jo(async()=>{r(!1),await Fo(e),r(!0)},[e]),e?n?g.jsx(Se,{icon:e,...t}):g.jsx(Se,{color:"#f06f6e",icon:"ic:baseline-error",...t}):g.jsx(Se,{icon:"material-symbols-light:select-rounded",...t})}Wd.propTypes={icon:S.string.isRequired};function _o({value:e,helperText:t,label:n,placeholder:r,methods:i=["select"],iconifyShape:o="id",...a}){const{getSessionInHeader:l,prefix:s,inService:c}=Cc(),{blocklet:u}=Wt(),d=en(Z=>Z.breakpoints.down("md")),f=u.environments.find(Z=>Z.key===Ve.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),p=l(),h=v.useRef(null),m=v.useRef(null),b=v.useRef(null),{t:y,locale:x}=Pe(),{isIconId:R,iconId:T}=Jx(e),[E,C]=v.useState(null),{onChange:D,onBlur:w,sx:_,...I}=a,P=i.includes("upload"),L=i.includes("select"),N=Te(s,"/api/media/upload",u.appPid),W=Gt({showPopover:!1}),O=re(Z=>{if(Z?.startsWith("/"))try{const U=c?window.location.origin:f?.value;return new URL(Z,U).href}catch{console.error("Failed to resolve url: ",Z)}return Z},[f?.value,c]),F=re(async Z=>await h.current.getUploader().uploadFile(Z)),G=re(()=>{C(null)}),H=re(()=>{L&&C(b.current)}),Y=re(async Z=>{try{if(o==="url"){const U=Kx(Z),ne=await oh(U,{width:128,height:128}),ie=await ah(ne,Z);await F(ie)}else D?.(Z)}catch(U){console.error("Failed to pick icon:",U)}G()}),ee=re(Z=>{Z.stopPropagation(),m.current.open(),G()}),J=re(Z=>{a?.onChange?.(Z.data.url)});return g.jsxs(g.Fragment,{children:[g.jsx(pt,{helperText:t,value:e,sx:{"& .MuiInputBase-root,.MuiInputBase-input":{cursor:"pointer"},..._},onClick:L?H:void 0,...I,label:n,placeholder:r,slotProps:{input:{ref:b,readOnly:!0,startAdornment:g.jsx(Ln,{position:"start",sx:{cursor:"auto"},onMouseEnter:()=>{e&&(W.showPopover=!0)},onMouseLeave:()=>{W.showPopover=!1},children:g.jsx(_s,{size:28,icon:O(e),alt:"Error"})}),endAdornment:g.jsxs(Ln,{position:"end",children:[g.jsx(We,{sx:{visibility:e?"visible":"hidden"},onClick:Z=>{Z.stopPropagation(),D("")},children:g.jsx(Kc,{style:{fontSize:18}})}),P&&g.jsx(lh,{title:y("common.upload"),children:g.jsx(We,{disableFocusRipple:!1,disableRipple:!1,onClick:ee,children:g.jsx(Wd,{icon:"material-symbols:upload-file-outline-rounded",width:24,height:24})})}),L&&g.jsx(X,{component:Cg,sx:{mr:"-6px",fontSize:24,transform:E?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms",pointerEvents:"none"}})]})}}}),L&&g.jsx(eo,{open:!!E,anchorEl:E,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{style:{...d&&{width:"100vw",height:"100vh",boxShadow:"none"}}}},onClose:G,children:g.jsx(Hd,{label:n,placeholder:r,value:R?T:"",sx:{width:b.current?.offsetWidth??"auto"},onPick:Y,onClose:G})}),g.jsx(Do,{ref:h,locale:x,apiPath:N,headers:p,imageEditorProps:{},onUploadFinish:J}),g.jsx(Do,{ref:m,locale:x,apiPath:N,headers:p,onUploadFinish:J}),g.jsx(eo,{sx:{pointerEvents:"none"},open:W.showPopover,anchorEl:b.current,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{W.showPopover=!1},disableRestoreFocus:!0,children:g.jsx(_s,{size:120,icon:O(e),alt:"Error"})})]})}_o.propTypes={value:S.string.isRequired,label:S.any,placeholder:S.any,helperText:S.string,methods:S.arrayOf(S.oneOf(["select","upload"])),iconifyShape:S.oneOf(["id","url"])};function Hd({label:e,placeholder:t,value:n="",sx:r,onPick:i,onClose:o,...a}){const[l,s]=v.useState([]),[c,u]=v.useState(!0),[d,f]=v.useState(n),[p,h]=v.useState(!1),m=v.useRef(null),b=v.useRef([]),y=v.useRef(1),x=v.useRef(!0),{t:R}=Pe(),T=96,E=re(()=>{!x.current||c||(u(!0),setTimeout(()=>{const w=y.current+1,_=(w-1)*T,I=w*T,P=b.current.slice(_,I);s(L=>[...L,...P]),y.current=w,x.current=I<b.current.length,u(!1)},300))}),C=re(w=>{b.current=w,y.current=1,x.current=w.length>T;const _=w.slice(0,T);s(_),h(w.length===0),x.current&&E()}),{run:D}=Ic(async w=>{if(w){u(!0);try{const{icons:_}=await Vx({keyword:w});C(_)}catch(_){console.error("Failed to search icons:",_),h(!0)}finally{u(!1)}}},{wait:300,trailing:!0});return v.useEffect(()=>{const w=()=>{if(!m.current)return;const{scrollTop:I,scrollHeight:P,clientHeight:L}=m.current;(I+L>=P-150||P<=L)&&E()},_=m.current;return _&&(_.addEventListener("scroll",w),w()),()=>{_&&_.removeEventListener("scroll",w)}},[E,c]),jo(async()=>{if(d)D(d);else{u(!0);try{const w=await qx("mdi-light");C(w)}catch(w){console.error("Failed to fetch default icons:",w),h(!0)}finally{u(!1)}}},[d,D,C]),g.jsxs(Qx,{ref:m,sx:r,...a,children:[g.jsxs(X,{className:"icon-picker-input",children:[g.jsx(pt,{label:R("navigation.form.searchIcons"),placeholder:R("navigation.form.searchIconsPlaceholder"),size:"small",value:d,sx:{flexGrow:1},autoFocus:!0,onChange:w=>f(w.target.value),slotProps:{input:{endAdornment:g.jsx(We,{sx:{visibility:d?"visible":"hidden"},onClick:()=>f(""),children:g.jsx(Kc,{style:{fontSize:18}})})}}}),g.jsx(_t,{onClick:o,children:R("common.cancel")})]}),g.jsxs(X,{children:[l.length>0&&g.jsx(X,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(32px, auto))",gridAutoRows:"min-content",alignItems:"center",gap:1,p:2},children:l.map(w=>g.jsx(Zx,{$active:n===w,onClick:()=>{i(w)},children:g.jsx(Se,{icon:w,width:"32",height:"32"})},w))}),p&&g.jsx(X,{sx:{p:2,display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:g.jsx(X,{sx:{textAlign:"center"},children:"No matching results"})}),c&&g.jsx(X,{sx:{p:2,display:"flex",justifyContent:"center"},children:g.jsx(Rc,{size:20})})]})]})}Hd.propTypes={label:S.any,placeholder:S.any,value:S.string,sx:S.object,onPick:S.func.isRequired,onClose:S.func.isRequired};const Qx=Fe(X)(({theme:e})=>({minWidth:"100%",height:"100%",padding:0,overflow:"auto",[e.breakpoints.up("md")]:{minWidth:"480px",maxHeight:"400px",padding:e.spacing(1),paddingTop:0,".icon-picker-input":{paddingTop:e.spacing(2),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(2)}},".icon-picker-input":{position:"sticky",display:"flex",alignItems:"center",gap:e.spacing(1),top:0,zIndex:1,backgroundColor:e.palette.background.paper}})),Zx=Fe(We,{shouldForwardProp:e=>e!=="$active"})(({$active:e,theme:t})=>({boxSizing:"content-box",backgroundColor:e?t.palette.action.hover:"transparent",borderRadius:4,padding:1,width:32,height:32,"&:hover":{backgroundColor:t.palette.action.hover}}));function Do({ref:e=null,locale:t,apiPath:n,headers:r,imageEditorProps:i={actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:1,initialAspectRatio:1,croppedCanvasOptions:{minWidth:120,minHeight:120}}},onUploadFinish:o}){return g.jsx(v.Suspense,{children:g.jsx(Xx,{locale:t,ref:e,popup:!0,installerProps:{disabled:!0},plugins:["ImageEditor"],onUploadFinish:a=>o?.(a),coreProps:{restrictions:{allowedFileTypes:["image/*"],maxFileSize:1024*1024*1,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:i,apiPathProps:{uploader:n,disableMediaKitPrefix:!0,disableAutoPrefix:!0,disableMediaKitStatus:!0},tusProps:{headers:r}})})}Do.propTypes={ref:S.any,locale:S.string,apiPath:S.string,headers:S.object,imageEditorProps:S.object,onUploadFinish:S.func};const Ds=24,Ts=48,Es="add";S.string.isRequired;function ma({ref:e=null,section:t="",components:n=[],rawNavigations:r=[],onChange:i=()=>{},...o}){const{roles:a}=qc(),{t:l,locale:s}=Pe(),{localeMap:c,defaultLocale:u}=ga(),d=re(()=>({title:{[u]:""},description:{[u]:""},link:{[u]:""}})),f=re(k=>Xc(Array.from(new Set(xe.NAVIGATION_I18N_FIELDS.flatMap(A=>Qt(k[A])?Object.keys(k[A]):[]))),u)),p=v.useRef(()=>{}),h=Gt({isRoot:!0,type:Es,linkDisabled:!1,locale:u,formState:d(),get localeList(){return f(h.formState)}}),{handleSubmit:m,control:b,reset:y,setValue:x,clearErrors:R,formState:{errors:T}}=yg({mode:"onChange",defaultValues:{id:"",title:"",description:"",icon:"",link:"",component:"",parent:"",role:[]}});v.useEffect(()=>{xe.NAVIGATION_I18N_FIELDS.forEach(k=>x(k,h.formState[k][h.locale]))},[x,h.locale]);const E=xg({control:b}),C=E.component,D=E.title,w=E.description,_=E.link,I=E.parent;v.useEffect(()=>{h.formState.title[h.locale]=D},[D]),v.useEffect(()=>{h.formState.description[h.locale]=w},[w]),v.useEffect(()=>{h.formState.link[h.locale]=_},[_]),v.useEffect(()=>{i?.(E)},[E,i]);const P=v.useMemo(()=>r.find(A=>C?n.find(V=>V.name===C).did===A.id:A.id===I),[n,r,C,I]),L=v.useMemo(()=>{if(P?.component){const k=n.find(te=>te.name===P.component),{link:A}=k||{},j=Qt(A)?A[h.locale]:A;if(C)return to(j);const V=Qt(P.link)?P.link[h.locale]:P.link;return to(Te(j,V||"/"))}return null},[n,h.locale,P,C]),N=v.useMemo(()=>{const{component:k}=P||{},A=n.find(te=>te.name===k),{navigation:j=[]}=A||{};return Le.flattenNavigation(j,{transform(te,ae){return ae?.section&&(te.section=te.section||ae.section),te}}).filter(te=>te.link).filter(te=>Le.isMatchSection(te.section,t)).map(te=>({label:te.link,title:te.title[s]||te.title}))},[P,n,t,s]),W=re(()=>{h.isRoot=!0,h.locale=u,h.type=Es,h.linkDisabled=!1,h.formState=d(),y(),R(),p.current=()=>{}}),O=re((k={})=>(h.localeList.length>0&&xe.NAVIGATION_I18N_FIELDS.forEach(A=>{uv(h.formState[A]).length>1&&(k[A]=h.formState[A])}),$o(k.role)&&(k.role=void 0),k)),F=re(({parent:k}={},A=()=>{})=>{h.type="add",h.isRoot=!k,x("parent",k?.id),p.current=j=>{A(j)}}),G=re((k={},A=()=>{})=>{const{id:j,icon:V,parent:te,component:ae,role:fe=[]}=k;x("id",j),x("icon",V),k.from==="team-tmpl"&&(h.linkDisabled=!0);const ye=f(k),_e=(Re,Oe)=>{_c(Re)?h.formState[Oe]=ye.reduce((He,Ne)=>(He[Ne]=Re,He),{[u]:Re}):Qt(Re)?h.formState[Oe]=ot(Re):h.formState[Oe]={}};xe.NAVIGATION_I18N_FIELDS.forEach(Re=>_e(k[Re],Re)),xe.NAVIGATION_I18N_FIELDS.forEach(Re=>x(Re,h.formState[Re][h.locale])),x("component",ae),x("parent",te),x("role",fe||[]),h.type="edit",h.isRoot=!te,p.current=Re=>{const Oe=ch(Re,["id","title","description","icon","component","link","role"]);A(Oe)}}),H=re(k=>{const A=k?.trim();if(t!=="bottomNavigation"){if(!A)return l("common.requiredErrorText",{name:l("navigation.form.title")});if(A.length>Ds)return l("navigation.form.titleTooLong",{len:Ds})}return!0}),Y=re(k=>{const A=k?.trim();return A&&A.length>Ts?l("navigation.form.descriptionTooLong",{len:Ts}):!0}),ee=re(k=>k?.startsWith("/")?new URL(k,window.location.origin).href:k),J=re(async k=>{const A=k?.trim();if(A){if(Bo(ee(A)))return!0;try{await Fo(A)}catch{return l("navigation.form.invalidIcon")}}return!0}),Z=re(k=>{const A=k?.trim();return A?J(A):l("common.requiredErrorText",{name:l("navigation.form.icon")})}),U=re(k=>{const A=k?.trim();return A?Le.checkLink(A)?!0:l("navigation.form.invalidLink"):h.isRoot?!0:l("common.requiredErrorText",{name:l("navigation.form.link")})}),ne=re(k=>{h.locale=k,xe.NAVIGATION_I18N_FIELDS.forEach(A=>{h.formState[A][k]||(h.formState[A][k]="")}),setTimeout(()=>{R()})}),ie=re(()=>{const{title:k,link:A}=h.formState;if(t!=="bottomNavigation")for(const j of Object.keys(k)){const V=H(k[j]);if(V!==!0)return V}for(const j of Object.keys(A)){const V=U(A[j]);if(V!==!0)return V}return!0}),ce=re(k=>{const A=ie();A===!0?p.current(O(k)):Lt.error(A)}),B=re(k=>{h.locale=u,xe.NAVIGATION_I18N_FIELDS.forEach(A=>{h.formState[A]=zt(h.formState[A],k)}),i?.(E)}),$=re(k=>{h.locale=k,xe.NAVIGATION_I18N_FIELDS.forEach(A=>{h.formState[A][k]=h.formState[A][u]}),i?.(E),setTimeout(()=>{R()})});return v.useImperativeHandle(e,()=>({add:F,edit:G,resetImmediate:()=>W(),reset:()=>setTimeout(()=>W(),0),submit:m(ce)}),[F,W,G,m,ce]),g.jsxs(X,{...o,children:[g.jsx($d,{sx:{mb:1},onAdd:$,onChange:ne,onRemoveLocale:B,defaultLocale:u,locale:h.locale,localeMap:c,locales:h.localeList}),g.jsxs("form",{noValidate:!0,autoComplete:"off",children:[t!=="bottomNavigation"&&g.jsx(vt,{name:"title",control:b,rules:{validate:H},render:({field:k})=>g.jsx(pt,{fullWidth:!0,variant:"outlined",margin:"dense",required:!0,placeholder:l("navigation.form.titlePlaceholder"),label:l("navigation.form.title"),disabled:h.isEdit,error:!!T?.title?.message,helperText:T?.title?.message||" ",...k})}),t==="bottomNavigation"?g.jsx(vt,{name:"icon",control:b,rules:{validate:Z},render:({field:k})=>g.jsx(_o,{fullWidth:!0,required:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.iconPlaceholder"),label:l("navigation.form.icon"),error:!!T?.icon?.message,helperText:T?.icon?.message,disabled:h.locale!==u,methods:["select"],iconifyShape:"url",...k})}):g.jsx(vt,{name:"icon",control:b,rules:{validate:J},render:({field:k})=>g.jsx(_o,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.iconPlaceholder"),label:l("navigation.form.icon"),error:!!T?.icon?.message,helperText:T?.icon?.message,disabled:h.locale!==u,...k})}),h.isRoot&&g.jsx(vt,{name:"component",control:b,render:({field:k})=>g.jsx(io,{fullWidth:!0,margin:"dense",disabled:h.locale!==u&&k.value,label:l("navigation.form.component"),placeholder:l("navigation.form.componentPlaceholder"),options:n.map(A=>({title:A.title,value:A.name,description:A.link})),error:!!T?.component?.message,helperText:T?.component?.message||" ",...zt(k,"ref")})}),!h.isRoot&&["header"].includes(t)&&g.jsx(vt,{name:"description",control:b,rules:{validate:Y},render:({field:k})=>g.jsx(pt,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.descriptionPlaceholder"),label:l("navigation.form.description"),disabled:h.isEdit,error:!!T?.description?.message,helperText:T?.description?.message||" ",...k})}),g.jsx(vt,{name:"link",control:b,rules:{validate:U},render:({field:k})=>g.jsx(Dc,{fullWidth:!0,margin:"dense",children:g.jsx(Rg,{disablePortal:!0,freeSolo:!0,blurOnSelect:!0,autoSelect:!0,fullWidth:!0,disabled:h.linkDisabled,isOptionEqualToValue:A=>A.label,options:N,renderInput:A=>g.jsx(pt,{...A,placeholder:l("navigation.form.linkPlaceholder"),label:l("navigation.form.link"),error:!!T?.link?.message,helperText:T?.link?.message||"/abc/bcd or /abc or https://arcblock.io",slotProps:{input:{startAdornment:L?g.jsx(Ln,{position:"start",sx:{textDecoration:Ux(_||"")?"line-through":""},children:L}):null}}}),renderOption:(A,j)=>g.jsxs(X,{component:"li",...A,children:[j.label,g.jsx(ue,{component:"span",variant:"body2",sx:{marginLeft:1,color:"text.secondary"},children:j.title})]}),margin:"dense",...k,onChange:()=>{},onInputChange:(A,j)=>{k.onChange(j)}})})}),["dashboard","sessionManager"].includes(t)&&g.jsx(vt,{name:"role",control:b,render:({field:k})=>g.jsx(io,{fullWidth:!0,multiple:!0,margin:"dense",label:l("navigation.form.role"),placeholder:l("navigation.form.rolePlaceholder"),options:a.map(A=>({title:A.title,value:A.name})),error:!!T?.role?.message,helperText:T?.role?.message||" ",...zt(k,"ref")})}),t==="bottomNavigation"&&g.jsx(vt,{name:"title",control:b,rules:{validate:H},render:({field:k})=>g.jsx(pt,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.titlePlaceholder"),label:l("navigation.form.title"),disabled:h.isEdit,error:!!T?.title?.message,helperText:T?.title?.message||" ",...k})})]})]})}ma.propTypes={ref:S.any,section:S.string,components:S.array,rawNavigations:S.array,onChange:S.func};function ba({ref:e=null,section:t="",components:n=[],rawNavigations:r=[]}){const{t:i}=Pe(),[o,{setTrue:a,setFalse:l}]=mg(),[s,c]=v.useState("add"),u=v.useRef(null),d=v.useMemo(()=>{const b={add:i("common.create"),edit:i("common.edit")}[s];return b?`${b} ${i("navigation.navigation")}`:"--"},[i,s]),f=v.useCallback(()=>{l(),u.current?.reset()},[l]),p=v.useCallback((m={},b=()=>{})=>{c("add"),u.current?.add(m,y=>b(f,y)),a()},[a,f]),h=v.useCallback((m={},b=()=>{})=>{c("edit"),u.current?.edit(m,y=>b(f,y)),a()},[a,f]);return v.useImperativeHandle(e,()=>({add:p,edit:h,close:f}),[p,h,f]),g.jsx(Tc,{open:o,title:d,keepMounted:!0,onClose:f,sx:{".MuiDialogContent-root":{pt:0}},actions:g.jsx(zn,{color:"primary",variant:"contained",onClick:()=>u.current?.submit(),children:i("common.confirm")}),children:g.jsx(ma,{ref:u,section:t,components:n,rawNavigations:r})})}ba.propTypes={ref:S.any,section:S.string,components:S.array,rawNavigations:S.array};function Ud({className:e="",add:t=()=>{},edit:n=()=>{},toggle:r=()=>{},del:i=()=>{},data:o,section:a=""}){const{t:l}=Pe(),s=["yaml","team-tmpl"].includes(o.from),c=v.isValidElement(o.subtitle);function u(m){m.preventDefault(),m.stopPropagation()}const d=v.useCallback(m=>{u(m),t(o)},[t,o]),f=v.useCallback(m=>{u(m),n(o)},[n,o]),p=v.useCallback(m=>{u(m),r(o)},[r,o]),h=v.useCallback(m=>{u(m),i(o)},[i,o]);return g.jsxs("div",{className:e,children:[!o.parent&&["header","footer","dashboard"].includes(a)&&g.jsx("span",{title:l(c?"navigation.action.noAddSub":"navigation.action.addSub"),children:g.jsx(We,{size:"small",color:"success",onClick:d,disabled:c,children:g.jsx(Se,{icon:"mdi:plus-box-outline"})})}),g.jsx("span",{title:l(c?"navigation.action.noEdit":"navigation.action.edit"),children:g.jsx(We,{size:"small",color:"primary",onClick:f,disabled:c||o.from==="team-tmpl",children:g.jsx(Se,{icon:"mdi:pencil-outline"})})}),g.jsx("span",{title:c?l("navigation.action.noEdit"):o.visible?l("navigation.action.hide"):l("navigation.action.show"),children:g.jsx(We,{size:"small",color:"warning",onClick:p,disabled:c,children:o.visible===!1?g.jsx(Se,{icon:"mdi:eye-off-outline"}):g.jsx(Se,{icon:"mdi:eye-outline"})})}),g.jsx("span",{title:l(s&&!c?"navigation.action.noDel":"navigation.action.del"),children:g.jsx(We,{disabled:s&&!c,size:"small",color:"error",onClick:h,children:g.jsx(Se,{icon:"mdi:delete"})})})]})}Ud.propTypes={data:S.object.isRequired,className:S.string,add:S.func,edit:S.func,toggle:S.func,del:S.func,section:S.string};const On=window?.blocklet?.groupPrefix||window?.blocklet?.prefix||"/",e1=e=>{const t={...e},n=e?.background;return typeof n=="string"?t.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(t.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),t},t1=(e,t="en",n="en")=>{if(typeof e=="string"){if(Ld(e)){const i=new URL(e);return i.searchParams.set("locale",t),i.href}if(zd(e))return e;const r=new URL(e,window.location.origin);return r.searchParams.set("locale",t),r.pathname+r.search}return typeof e=="object"?e[t]||e[n]||e.en:e},or=({navigation:e,locale:t,defaultLocale:n,section:r="header"})=>{if(!e?.length)return e;const i=(o,a)=>o&&typeof o=="object"?o[a]||o[n]||o.en:o;return Ut(e,o=>({...o,title:i(o.title,t),description:i(o.description,t),link:Ho(o.items?.length?o.link:t1(o.link,t,n),r),_rawLink:o.link}),"items")},r1=e=>Ut(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),n1=e=>{if(!e?.length)return null;const t=r1(e),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(r=>{r.section?Array.isArray(r.section)?r.section.forEach(i=>{n[i]?.push(r)}):typeof r.section=="string"&&n[r.section]?.push(r):n.header.push(r)}),n},ya=e=>{if(!e)return null;const t={...e};return t.theme=e1(t.theme),t.navigation=n1(i1(t.navigation)),t},i1=(e=[])=>ha(e,(t,n)=>!!t.link||n.filteredChildren?.length,"items"),Vd=(e,t)=>ha(e,(n,r)=>{const i=!n.role||t&&(n.role.includes(t)||n.role.includes("guest"));return r.isLeaf?i:i&&r.filteredChildren?.length},"items"),o1={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},a1={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function l1({session:e,locale:t="zh",size:n=24,popperType:r="click",sx:i,...o}){const a=window?.blocklet||{},l=(a.navigation||[]).filter(p=>p.section==="sessionManager"&&!["/sessionManager"].includes(p.id)).filter(p=>!!(p?.role||[]).includes(e?.user?.role||"guest")).map(p=>{const h=(a?.componentMountPoints||[]).find(m=>p.component===m.name);return{...p,component:h}}),s=nt(),c=v.useRef(null),u=Gt({open:!1}),d=re((p=!u.open)=>{u.open=p}),f=r==="hover"?{onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1)}:{onClick:()=>d()};return l.length===0||!e?.user?null:g.jsxs(X,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",...i},...o,...f,children:[g.jsx(We,{size:"medium",ref:c,children:g.jsx(Se,{icon:o1,fontSize:n,style:{transform:"scale(1.08)"}})}),g.jsx(uh,{open:u.open,anchorEl:c.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:p})=>g.jsx(dh,{onClickAway:h=>{h.preventDefault(),h.stopPropagation(),d(!1)},children:g.jsx(Ec,{...p,timeout:350,children:g.jsxs(Ar,{variant:"outlined",sx:{borderRadius:1.5,width:350,maxWidth:"90vw",p:2},children:[g.jsx(fh,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:l.map(h=>g.jsx(ph,{disablePadding:!0,children:g.jsxs(_g,{href:Ua(h.link,t),sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:1,"&:hover":{backgroundColor:"action.hover"}},children:[h?.component?.did?g.jsx(X,{component:"img",src:`${kc}/blocklet/logo-bundle/${h.component.did}`,sx:{borderRadius:1,width:50,height:50,objectFit:"contain"},alt:"SessionBlocklet component icon"}):g.jsx(Se,{fontSize:50,icon:h.icon||a1,color:s.palette.text.secondary}),g.jsx(ue,{sx:{fontSize:"12px",color:"text.primary",textAlign:"center",lineHeight:"normal"},children:Ua(h.title,t)})]})},h.id))}),g.jsx(hh,{session:e,children:g.jsx(zn,{variant:"outlined",fullWidth:!0,href:gh,sx:{mt:1},children:t==="zh"?"管理":"Manage"})})]})})})})]})}const qd=S.shape({appLogo:S.node,appName:S.string,theme:S.shape({background:S.string}),enableConnect:S.bool,enableLocale:S.bool,navigation:S.arrayOf(S.shape({title:S.oneOfType([S.string,S.object]),link:S.oneOfType([S.string,S.object]),icon:S.string,items:S.arrayOf(S.shape({title:S.oneOfType([S.string,S.object]),link:S.oneOfType([S.string,S.object])}))}))}),Kd=S.shape({showText:S.bool,showRole:S.bool,switchDid:S.bool,switchProfile:S.bool,switchPassport:S.bool,disableLogout:S.bool,onLogin:S.func,onLogout:S.func,onSwitchDid:S.func,onSwitchProfile:S.func,onSwitchPassport:S.func,menu:S.array,menuRender:S.func,dark:S.bool,size:S.number,profileUrl:S.string}),s1=["admin","owner"],c1=e=>e.endsWith(".ip.abtnet.io"),u1=e=>e.endsWith(".did.abtnet.io"),d1={en:{guest:{title:"Notice: You are using a temporary domain",description:"You are accessing this site through a temporary domain. For a better experience, please contact the site administrator to configure a custom domain. Using a custom domain not only makes access more convenient but also ensures your access is more secure."},owner:{title:"Enhance Your Website Security",description:"Dear administrator, we recommend configuring your custom domain immediately, which will:",benefits1:"Automatically obtain HTTPS certificates to ensure secure data transmission",benefits2:"Create an exclusive brand image and increase website credibility",benefits3:"Get a shorter, more memorable access address",benefits4:"Provide visitors with a more professional experience",benefits5:"Domain configuration takes just minutes to complete, taking your website to the next level!"},skip:"Remind Me Later",bindDomain:"Configure Domain"},zh:{guest:{title:"温馨提示:当前使用的是临时域名",description:"您正在通过临时域名访问本站点。为了获得更好的访问体验,请联系站点管理员配置自定义域名。使用自定义域名不仅访问更便捷,还能确保您的访问更加安全。"},owner:{title:"提升网站安全性与专业度",description:"尊敬的管理员,我们建议您尽快配置自定义域名,这样可以:",benefits1:"自动获取 HTTPS 证书,确保数据传输安全",benefits2:"打造专属品牌形象,提升网站可信度",benefits3:"获得更简短、易记的访问地址",benefits4:"为访客提供更专业的访问体验",benefits5:"只需几分钟即可完成域名配置,全面提升您的网站品质!"},skip:"稍后提醒",bindDomain:"配置域名"}},f1=1e3*60*60*24*30,ks=".well-known/service/admin/domains";function Yd({locale:e="en",session:t={}}){const n=t?.user,r=Yc(),[i,o]=v.useState(()=>{const f=window.localStorage.getItem("domain-warning-skip");if(!f)return!0;const p=+new Date,h=+new Date(f);return p-h>f1}),a=re((f,p={})=>Zr(d1,f,e,"en",p)),l=v.useMemo(()=>{try{const{hostname:f}=new URL(window.location.href);return f}catch{return""}},[]),s=v.useMemo(()=>[a("owner.benefits1"),a("owner.benefits2"),a("owner.benefits3"),a("owner.benefits4"),a("owner.benefits5")],[a]),c=v.useCallback(()=>{window.localStorage.setItem("domain-warning-skip",new Date().toISOString()),o(!1)},[]),u=v.useCallback(()=>{const f=Te(window.location.origin,ks);f.startsWith("http")&&window.open(f,"_blank"),o(!1)},[]),d=n?.role&&s1.includes(n.role);return window.location.href.includes(ks)||r||!c1(l)&&!u1(l)?null:g.jsxs(vh,{open:i,disableEscapeKeyDown:!0,fullWidth:!0,maxWidth:"sm",onClose:()=>o(!1),children:[g.jsxs(mh,{sx:{padding:"20px !important"},children:[g.jsx(ue,{sx:{fontSize:"20px",fontWeight:"500"},children:a(d?"owner.title":"guest.title")}),g.jsx(ue,{sx:{marginTop:"20px",fontSize:"14px",color:"text.secondary"},children:a(d?"owner.description":"guest.description")}),d&&g.jsx(X,{component:"ul",children:s.map(f=>g.jsx(ue,{component:"li",sx:{fontSize:"14px",color:"text.secondary"},children:f},f))})]}),g.jsxs(bh,{sx:{px:"12px !important"},children:[g.jsx(_t,{onClick:c,children:a("skip")}),d&&g.jsx(_t,{variant:"contained",onClick:u,children:a("bindDomain")})]})]})}Yd.propTypes={locale:S.string,session:S.object};const Me={};function p1(e="admin"){let t="/";!window?.blocklet&&window?.env?.apiPrefix&&(t=window.env.apiPrefix);const n=Te(t,kc,e);return new Sh.WsClient(n,{heartbeatIntervalMs:100*1e3})}function h1(e="admin"){return Me[e]||(Me[e]=p1(e)),Me[e]}const g1=(e="admin")=>{const t=v.use(ni),{session:n}=t??{},r=De(()=>n.user?.did,[n.user]),i=yh(r);return xh(()=>{Object.keys(Me).forEach(o=>{Me[o]?.isConnected()&&Me[o]?.disconnect(),delete Me[o]})}),r?(i&&i!==r&&Object.keys(Me).forEach(o=>{Me[o]&&(Me[o].isConnected()&&Me[o].disconnect(),Me[o].connect())}),!Me[e]&&n.user&&(Me[e]=h1(e),Me[e].connect()),Me[e]):null},v1={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0"/><path d="m9 12l2 2l4-4"/></g>'},m1={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-3v4m0 3v.01"/>'},b1={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 21a9 9 0 0 0 9-9a9 9 0 0 0-9-9a9 9 0 0 0-9 9a9 9 0 0 0 9 9zM9 8l6 8m0-8l-6 8"/>'};function y1(){const e=nt();return[...e.breakpoints.keys].reverse().reduce((t,n)=>{const r=en(e.breakpoints.up(n));return!t&&r?n:t},null)||"xs"}const x1=e=>!$o(e.activity)&&!!e.activity?.type&&!!e.activity?.actor,S1=e=>{if(!e)return null;const{meta:t,target:n}=e;return{metaLink:t?.id,targetLink:n?.id}},w1=async(e,t)=>{try{return await Oc().user.getProfileUrl({did:e,locale:t})}catch(n){console.error(n);return}},C1=async(e,t)=>{const{type:n,did:r}=e;return Pc.isSameAddr(n,"did")?await w1(r,t)||jn.getLink(e):jn.getLink(e)},I1=async(e,t,n=!0)=>{const r=jn.toTextList(e);return await Promise.all(r.map(async i=>{if(i instanceof jn.Link){if(n){const o=await C1(i,t),{type:a,chainId:l,did:s}=i;return Pc.isSameAddr(a,"dapp")?`<em class="dapp" data-type="${a}" data-chain-id="${l}" data-did="${s}">${i.text}</em>`:o?`<a target="_blank" rel="noopener noreferrer" class="link" href="${o}">${i.text}</a>`:`<em class="common" data-type="${a}" data-chain-id="${l}" data-did="${s}">${i.text}</em>`}return i.text}return i})).then(i=>i.join(""))},R1=e=>wh.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),_1={comment:(e,t)=>t&&t>1?g.jsxs(g.Fragment,{children:["left ",t," comments on your ",e]}):g.jsxs(g.Fragment,{children:["commented on your ",e]}),like:e=>g.jsxs(g.Fragment,{children:["liked your ",e]}),follow:()=>g.jsx(g.Fragment,{children:"followed you"}),tips:e=>g.jsxs(g.Fragment,{children:["gave tips to your ",e]}),mention:e=>g.jsxs(g.Fragment,{children:["mentioned you in ",e]}),assign:()=>g.jsx(g.Fragment,{children:"assigned you a task"})};function Xt({user:e,color:t=void 0}){const{palette:n}=nt(),r=Qr(Te(xe.WELLKNOWN_SERVICE_PATH_PREFIX,"user"),{did:e.did}),i=t||n.text.primary;return g.jsx(Nc,{href:r,color:i,target:"_blank",onClick:o=>{o.customPreventRedirect=!0},sx:{fontWeight:600,textDecoration:"none","&:hover":{cursor:"pointer"}},children:e.fullName||"System"})}Xt.displayName="UserLink";function D1({activity:e,users:t,actors:n,extra:r={},mountPoint:i=""}){const{palette:o}=nt(),{type:a,target:l}=e||{},{type:s}=l||{},{linkColor:c=o.text.primary}=r||{},u=De(()=>{if(!Array.isArray(t))return new Map;const b=new Map;return t.forEach(y=>{y?.did&&!b.has(y.did)&&b.set(y.did,y)}),b},[t]),d=De(()=>Array.isArray(n)?n.map(b=>b?u.get(b)||{did:b,fullName:"System"}:null).filter(Boolean):[],[n,u]),f=re(()=>{if(!Array.isArray(d)||d.length===0)return null;if(d.length===1)return g.jsx(Xt,{user:d[0],color:c});const b=d.slice(0,-1),y=d[d.length-1];if(d.length===2)return g.jsxs(g.Fragment,{children:[g.jsx(Xt,{user:b[0],color:c})," and ",g.jsx(Xt,{user:y,color:c})]});const x=d.length>3,R=x?d.slice(0,2):b;return g.jsxs(g.Fragment,{children:[R.map((T,E)=>g.jsxs(Q.Fragment,{children:[g.jsx(Xt,{user:T,color:c}),E<R.length-1?", ":""]},T.did)),x?`, and ${d.length-2} others`:g.jsxs(g.Fragment,{children:[", and ",g.jsx(Xt,{user:y,color:c})]})]})}),p=re(()=>{const b=a?_1[a]:null;return b?b(s,t.length):null}),h=De(()=>{const b=f(),y=p();return!b||!y?null:g.jsxs(g.Fragment,{children:[b," ",y]})},[a,s,d,f,p]),m=De(()=>{if(!e)return null;const b=S1(e);return b?.targetLink?Te(i,b.targetLink):null},[e,i]);return!a||$o(l)?null:g.jsxs(g.Fragment,{children:[h," ",m&&g.jsx(Nc,{href:m,color:c,target:"_blank",sx:{textDecoration:"none"},onClick:b=>{b.customPreventRedirect=!0},children:l.name})]})}const T1={normal:Va,success:v1,info:Va,warning:m1,error:b1},E1=fr(_h)`
66
- font-size: 20px;
67
- `,k1=fr.div`
68
- display: flex;
69
- align-items: flex-start;
70
- gap: 8px;
71
- flex: 1;
72
- width: 0;
73
- `,P1=fr.div`
74
- display: flex;
75
- align-items: center;
76
- margin-left: auto;
77
- margin-right: -8px;
78
- width: 44px;
79
- `,O1={xl:"400px",lg:"400px",md:"400px",sm:"300px"},N1=fr(Rh)`
80
- display: flex;
81
- color: #fff;
82
- align-items: center;
83
- padding: 12px 16px;
84
- border-radius: 4px;
85
- box-shadow:
86
- 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
87
- 0px 6px 10px 0px rgba(0, 0, 0, 0.14),
88
- 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
89
-
90
- ${({severity:e,breakpoint:t})=>{const n=O1[t]||"400px";return e==="success"?`
91
- background-color: ${Ch[600]} !important;
92
- width: ${n};
93
- `:e==="error"?`
94
- background-color: #d32f2f !important;
95
- width: ${n};
96
- `:e==="info"?`
97
- background-color: #1976d2 !important;
98
- width: ${n};
99
- `:e==="warning"?`
100
- background-color: ${Ih[700]} !important;
101
- width: ${n};
102
- `:`
103
- background-color: #333;
104
- width: ${n};
105
- `}}
106
- `,A1=fr.div`
107
- cursor: pointer;
108
- display: flex;
109
- flex-direction: column;
110
- .title {
111
- overflow: hidden;
112
- text-overflow: ellipsis;
113
- display: -webkit-box;
114
- -webkit-line-clamp: 1;
115
- -webkit-box-orient: vertical;
116
- font-weight: bold;
117
- }
118
- .desc {
119
- overflow: hidden;
120
- text-overflow: ellipsis;
121
- display: -webkit-box;
122
- -webkit-line-clamp: 3;
123
- -webkit-box-orient: vertical;
124
- word-break: break-word;
125
- line-height: 1.2;
126
- .link,
127
- .dapp,
128
- .common {
129
- color: ${ro.white};
130
- }
131
- }
132
- `;function M1({ref:e=void 0,keyId:t,notification:n={},viewAllUrl:r,content:i=null}){const o=y1(),[a,l]=v.useState(n.description||""),s=T1[n.severity||""],{closeSnackbar:c}=Ac(),u=()=>c(t);v.useEffect(()=>{I1(n.description||"","en").then(b=>{l(b)})},[n.description]);const d=b=>{b.stopPropagation(),c(t),b?.customPreventRedirect||window.open(r,"_blank")},f=De(()=>x1(n),[n]),p=De(()=>n?.activity,[n]),h=De(()=>!p||p.type==="tips"?null:p?.meta,[p]),m=D1({activity:p,users:[n?.actorInfo],actors:[n?.activity?.actor],extra:{linkColor:ro.white}});return g.jsxs(N1,{ref:e,severity:n.severity,breakpoint:o,children:[g.jsxs(k1,{children:[s?g.jsx(Se,{icon:s,fontSize:24}):null,g.jsx(A1,{onClick:d,style:{width:"calc(100% - 30px)"},children:g.jsx(X,{children:f?g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"title",children:m}),h?g.jsx(ue,{variant:"subtitle2",component:"p",sx:{fontSize:16,display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:3,WebkitBoxOrient:"vertical",color:ro.white,lineHeight:1.2},children:h?.content}):null]}):g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"title",children:n.title}),i||g.jsx(ue,{component:"span",className:"desc",dangerouslySetInnerHTML:{__html:R1(a)}})]})})})]}),g.jsx(P1,{children:g.jsx(We,{"aria-label":"close",color:"inherit",onClick:u,size:"large",children:g.jsx(E1,{})},"close")})]})}const To=Te(xe.WELLKNOWN_SERVICE_PATH_PREFIX,"user","notifications"),L1=e=>Qr(To,{id:e.id,severity:e.severity||"all",componentDid:e.source==="system"?"system":e.componentDid||"all"});function Jd({session:e={}}){const{unReadCount:t,user:n,setUnReadCount:r}=e,i=De(()=>n?.did,[n]),o=De(()=>n?.role&&[xe.ROLES.ADMIN,xe.ROLES.OWNER].includes(n?.role),[n?.role]),{enqueueSnackbar:a}=Ac(),l=Mc(),s=v.useMemo(()=>!i||n?.isPreviewUser||i===window.blocklet.did,[i,n]),c=v.useMemo(()=>l.arcSphere||l.wallet,[l]),u=De(()=>window.blocklet?.serverVersion,[]),d=g1("user"),f=De(()=>`${window.blocklet.did}/${i}/${xe.EVENTS.NOTIFICATION_BLOCKLET_CREATE}`,[i]),p=De(()=>`${window.blocklet.did}/${i}/${xe.EVENTS.NOTIFICATION_BLOCKLET_READ}`,[i]),h=v.useCallback(b=>{const{receivers:y,source:x}=b??{},{receiver:R}=y[0]??{};if(R===i&&(o||x!=="system")){r(E=>E+1);const T=Dh(u,"1.16.42-beta-20250407");if(!c&&b.source==="component"&&T){const E=L1(b),{severity:C,description:D}=b||{},w=["error","warning"].includes(C)||b.sticky;a(D,{variant:C,autoHideDuration:w?null:5e3,anchorOrigin:{vertical:"top",horizontal:"center"},content:_=>g.jsx(M1,{viewAllUrl:E,keyId:_,notification:b})})}}},[i,r,a,u,c,o]),m=v.useCallback(b=>{const{receiver:y,readCount:x}=b??{};y===i&&r(R=>Math.max(R-x,0))},[i,r]);return v.useEffect(()=>(d&&!s&&(d.on(f,h),d.on(p,m)),()=>{d&&!s&&(d.off(f,h),d.off(p,m))}),[d,r,h,f,m,p,s]),!e.user||!To?null:g.jsx(We,{size:"medium",variant:"outlined",href:Qr(To,{read:t<=0}),sx:{"&:hover":{borderRadius:"50%"}},children:g.jsx(Th,{badgeContent:t,color:"error",invisible:t===0,children:g.jsx(Eh,{style:{width:"auto",height:24}})})})}Jd.propTypes={session:S.object};const Xd=e=>{const{response:t}=e;return t?`Request failed: ${t.status} ${t.statusText}: ${JSON.stringify(t.data)}`:e.message};function Qd(e){const t=Oc(),n=re(async({search:a,page:l=1,pageSize:s=20})=>{try{return await t.user.getOrgs({search:a,page:l,pageSize:s})}catch(c){return console.error(c),{orgs:[],paging:{page:l,pageSize:s,total:0}}}}),r=re(async({name:a,description:l})=>{try{return(await t.user.createOrg({name:a,description:l})).data}catch(s){return console.error(s),Lt.error(Xd(s)),null}}),i=re(async a=>{try{return await t.user.getOrg(a)}catch(l){return e.logout(),console.error(l),null}}),o=re(async a=>{try{const l=await t.user.getRole(a);return l.orgId?await i(l.orgId):null}catch(l){return console.error(l),null}});return{getOrgs:n,createOrg:r,getCurrentOrg:o}}const Zd={en:{search:"Search",orgs:"Organizations",loadingMore:"Loading more",myJoinedEmpty:"You have not joined any organizations yet",createNew:"Create New Organization",viewAll:"View All Organizations",nameEmpty:"Name cannot be empty",nameTooLong:"Name must be less than {length} characters",descriptionTooLong:"Description must be less than {length} characters",cancel:"Cancel",create:"Create",mutate:{title:"{mode} Organization",name:"Name",description:"Description"}},zh:{search:"搜索",orgs:"组织",loadingMore:"加载更多",myJoinedEmpty:"您还没有加入任何组织",createNew:"创建新组织",viewAll:"查看所有组织",nameEmpty:"名称不能为空",nameTooLong:"名称不能超过{length}个字符",descriptionTooLong:"描述不能超过{length}个字符",cancel:"取消",create:"创建",mutate:{title:"{mode}组织",name:"组织名称",description:"组织描述"}}};function ef({onSuccess:e=tt,onCancel:t=tt,locale:n="en"}){const[r,i]=v.useState(!1),[o,a]=v.useState(""),{createOrg:l}=Qd(),s=re((f,p={})=>Zr(Zd,f,n,"en",p)),c=Gt({name:"",description:""}),u=async()=>{const f=c.name.trim();if(!f){a(s("nameEmpty"));return}if(f.length>25){a(s("nameTooLong",{length:25}));return}const p=c.description.trim();if(p.length>255){a(s("descriptionTooLong",{length:25}));return}a(""),i(!0);try{await l({name:f,description:p}),e()}catch(h){console.error(h);const m=Xd(h);a(m),Lt.error(m)}finally{i(!1)}},d=g.jsxs("div",{children:[g.jsx(ue,{component:"div",style:{marginTop:16},children:g.jsx(pt,{label:s("mutate.name"),autoComplete:"off",variant:"outlined",name:"name","data-cy":"mutate-org-input-name",fullWidth:!0,autoFocus:!0,value:c.name,onChange:f=>{a(""),c.name=f.target.value},disabled:r})}),g.jsx(ue,{component:"div",style:{marginTop:16,marginBottom:16},children:g.jsx(pt,{label:s("mutate.description"),autoComplete:"off",variant:"outlined",name:"description","data-cy":"mutate-org-input-description",fullWidth:!0,value:c.description,onChange:f=>{a(""),c.description=f.target.value},disabled:r,multiline:!0,rows:3})})]});return g.jsxs(Tc,{title:s("mutate.title",{mode:s("create")}),fullWidth:!0,open:!0,onClose:t,showCloseButton:!1,actions:g.jsxs(g.Fragment,{children:[g.jsx(zn,{onClick:t,color:"inherit",children:s("cancel")}),g.jsxs(zn,{"data-cy":"mutate-org-confirm",onClick:u,color:"primary",disabled:r,variant:"contained",autoFocus:!0,children:[r&&g.jsx(Rc,{size:16}),s("create")]})]}),children:[g.jsx(kh,{component:"div",children:d}),!!o&&g.jsx(Ph,{severity:"error",style:{width:"100%",margin:0},children:o})]})}ef.propTypes={onSuccess:S.func,onCancel:S.func,locale:S.string};const Ps=20;function tf({session:e,locale:t="en"}){const[n,r]=v.useState(null),[i,o]=v.useState(""),[a,l]=v.useState(!1),s=v.useRef(null),c=re((O,F={})=>Zr(Zd,O,t,"en",F)),{getOrgs:u,getCurrentOrg:d}=Qd(e),f=v.useMemo(()=>e?.user?.role||"",[e?.user?.role]),{data:p={}}=Oh(()=>d(f),{ready:!!f,refreshDeps:[f],onError:O=>{console.error("Failed to get organization role",O)}}),h=v.useMemo(()=>p||{name:e?.user?.passports?.find(O=>O.name===f)?.title||f||"-"},[p,f,e?.user?.passports]),m=Nh(i,{wait:500}),{data:b,loadMore:y,loadingMore:x,reload:R}=Dg(async O=>{const F={page:O?Math.ceil(O.list.length/Ps)+1:1,pageSize:Ps,search:i},G=await u(F),{orgs:H=[],paging:Y}=G||{};return{list:H,total:Y?.total||0}},{reloadDeps:[m],isNoMore:O=>O?.list.length?O.list.length>=O?.total:!0,onError:O=>{console.error("Failed to fetch organizations list",O)}}),{list:T=[],total:E=0}=b||{},C=T.length<E,D=re(O=>{const F=O.target,{scrollTop:G,scrollHeight:H,clientHeight:Y}=F;H-G-Y<50&&!x&&C&&y()}),w=!!n;v.useEffect(()=>{w&&R()},[w,R]);const _=O=>{r(O.currentTarget)},I=()=>{r(null),l(!1),o("")},P=O=>{e.switchPassport(()=>{window.location.reload()},{orgId:O.id}),I()},L=()=>{l(!0)},N=()=>{const O=Qr(Te(xe.WELLKNOWN_SERVICE_PATH_PREFIX,"user/orgs"),{locale:t});window.location.href=O,I()},W=O=>g.jsxs(Fn,{onClick:()=>P(O),selected:O.id===h.id,sx:{py:1.5,px:2,"&.Mui-selected":{backgroundColor:"action.selected","&:hover":{backgroundColor:"action.hover"}}},children:[g.jsx(il,{sx:{minWidth:40},children:g.jsx(nr,{sx:{width:28,height:28,fontSize:14,bgcolor:O.isOwner?"primary.main":"grey.400"},children:O.name?.[0]})}),g.jsxs(X,{sx:{display:"flex",alignItems:"center",flex:1},children:[g.jsx(Ka,{sx:{"& .MuiListItemText-primary":{mb:0},"& .MuiListItemText-secondary":{mt:"-2px"}},primary:g.jsx(ue,{variant:"body2",sx:{fontWeight:500,lineHeight:1.2},children:O.name}),secondary:g.jsx(ue,{variant:"caption",color:"text.secondary",sx:{lineHeight:1.1},children:O.passports?.[0]?.title})}),O.id===h.id&&g.jsx(X,{sx:{display:"flex",alignItems:"center",justifyContent:"center",ml:1},children:g.jsx(ue,{variant:"caption",color:"primary",sx:{fontSize:10},children:"✓"})})]})]},O.id);return g.jsxs(X,{children:[g.jsxs(_t,{ref:s,onClick:_,endIcon:g.jsx(Tg,{}),sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:1,textTransform:"none",color:"text.primary","&:hover":{backgroundColor:"action.hover"}},"data-testid":"org-switch-button",children:[g.jsx(nr,{sx:{width:24,height:24,fontSize:12,bgcolor:"primary.main"},children:h.name?.[0]}),g.jsx(ue,{variant:"body2",sx:{fontWeight:500},children:h.name})]}),g.jsxs(Ah,{anchorEl:n,open:w,onClose:I,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{width:340,maxHeight:480,overflow:"visible",mt:.5,borderRadius:2,boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.08)",border:O=>`1px solid ${O.palette.divider}`}},MenuListProps:{sx:{py:0}},children:[g.jsx(X,{sx:{p:1.5,pb:1},children:g.jsx(pt,{fullWidth:!0,size:"small",placeholder:c("search"),value:i,onChange:O=>o(O.target.value),InputProps:{startAdornment:g.jsx(Ln,{position:"start",children:g.jsx(Eg,{fontSize:"small",color:"action"})})},onClick:O=>O.stopPropagation(),onKeyDown:O=>O.stopPropagation(),sx:{"& .MuiOutlinedInput-root":{borderRadius:1}}})}),g.jsx(X,{sx:{px:2,pb:1},children:g.jsx(ue,{variant:"subtitle2",color:"text.secondary",sx:{fontSize:11,fontWeight:600,textTransform:"uppercase",letterSpacing:.5},children:c("orgs")})}),g.jsx(X,{sx:{maxHeight:240,overflow:"auto"},onScroll:D,children:T.length>0?g.jsx(g.Fragment,{children:T.map((O,F)=>{const G=F===T.length-1;return g.jsxs(X,{children:[W(O),G&&C&&g.jsx(X,{sx:{display:"flex",justifyContent:"center",py:1,color:"text.secondary",fontSize:"0.875rem"},children:x?c("loadingMore"):""})]},O.id)})}):g.jsx(X,{sx:{px:2,py:3,textAlign:"center"},children:g.jsx(ue,{variant:"body2",color:"text.secondary",children:c("myJoinedEmpty")})})}),g.jsx(qa,{}),g.jsxs(Fn,{onClick:L,sx:{py:1.5,px:2,"&:hover":{backgroundColor:"action.hover"}},children:[g.jsx(il,{sx:{minWidth:40},children:g.jsx(nr,{sx:{width:28,height:28,bgcolor:"success.main",color:"success.contrastText"},children:g.jsx(kg,{fontSize:"small"})})}),g.jsx(Ka,{primary:g.jsx(ue,{variant:"body2",sx:{fontWeight:500},children:c("createNew")})})]}),g.jsx(qa,{}),g.jsx(X,{sx:{p:1.5},children:g.jsx(_t,{onClick:N,variant:"text",component:"a",size:"small",endIcon:g.jsx(Pg,{fontSize:"small"}),sx:{color:"primary.main",fontWeight:500,p:0,fontSize:14,minWidth:"auto","&:hover":{backgroundColor:"transparent",textDecoration:"underline"}},children:c("viewAll")})})]}),a&&g.jsx(ef,{onSuccess:N,onCancel:()=>l(!1),locale:t})]})}tf.propTypes={session:S.object.isRequired,locale:S.string};const z1=()=>!!(window?.blocklet?.navigation??[]).find(e=>e.id==="/userCenter/notification"),j1=e=>{const{settings:t={}}=e??window?.blocklet??{};return t?.org?.enabled||!1},F1=()=>{const{pathname:e=""}=window.location||{};return e.startsWith(xe.WELLKNOWN_BLOCKLET_ADMIN_PATH)};function xa({formattedBlocklet:e,addons:t=null,showDomainWarningDialog:n=!0,sessionManagerProps:r={showRole:!0}}){const i=v.use(ni),{locale:o,languages:a,defaultLocale:l}=Pe()||{},{enableConnect:s=!0,enableLocale:c=!0}=e,u=!!i?.session?.user;let d=or({navigation:e?.navigation?.sessionManager,locale:o,defaultLocale:l})||[];d=Vd(d,i?.session?.user?.role);const f=(()=>{if(t&&typeof t!="function")return Array.isArray(t)?t:[t];let m=[];if(z1()&&m.push(g.jsx(Jd,{session:i.session},"notification-addon")),c&&o&&a.length>1&&m.push(g.jsx(Mh,{showText:!1},"locale-selector")),m.push(g.jsx(Lh,{},"theme-mode-toggle")),s&&i){const b=[];u&&(d?d.slice(0,5):[]).forEach(y=>{b.push({label:y.title,icon:y.icon?g.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),m.push(g.jsx(l1,{session:i.session,locale:o},"session-blocklet")),m.push(g.jsx(zh,{session:i.session,locale:o,menu:b,showRole:!0,...r},"session-user"))}return!F1()&&j1(e)&&i?.session?.user&&m.unshift(g.jsx(tf,{session:i.session,locale:o},"orgs-switch")),typeof t=="function"&&(m=t(m)||[]),m})(),p=Array.isArray(f)?f:[f],h=[n?g.jsx(Yd,{session:i?.session,locale:o}):null,...p].filter(Boolean);return v.createElement(g.Fragment,null,...h)}xa.propTypes={formattedBlocklet:S.object.isRequired,addons:S.oneOfType([S.func,S.node]),sessionManagerProps:Kd,showDomainWarningDialog:S.bool};const rf=()=>{const e=Mc();v.useEffect(()=>{(e.wallet||e.arcSphere)&&jh.call("arcHideTopBar","{}")},[e])},B1="blocklet-ui-react-embed-mode";function nf(e){const t=e.displayName||e.name||"Component";function n(r){const[i]=zg(B1,{defaultValue:0,listenStorageChange:!0});return i===1?null:g.jsx(e,{...r})}return n.displayName=`withHideWhenEmbed(${t})`,n}const $1={en:{products:"Products"},zh:{products:"产品"},"zh-TW":{products:"產品"},ja:{products:"製品"}},G1=e=>{if(!e?.length)return{navItems:[],activeId:null};let t=1;const n=Ut(e,o=>{const a=o.icon?g.jsx(at,{icon:o.icon}):null;if(o.items)return{id:`${t++}`,label:o.title,icon:a,children:o.items};let l={};return(o.link?.startsWith("http")||o.link?.startsWith("//"))&&(l={target:"_blank",rel:"noreferrer"}),{id:`${t++}`,label:g.jsx("a",{href:Ho(o.link,"header"),...l,children:o.title}),icon:a,description:o.description,link:o.link}},"items"),r=Md(n),i=jd(r.map(o=>o.link));return{navItems:n,activeId:i>=0?r[i].id:null}};function W1({meta:e={},addons:t=void 0,sessionManagerProps:n={showRole:!0},homeLink:r=On,theme:i={},hideNavMenu:o=!1,showDomainWarningDialog:a=!0,...l}){rf();const s=nt(),{locale:c,defaultLocale:u}=Pe()||{},d=re((E,C={})=>Zr($1,E,c,"en",C)),f=v.useMemo(()=>{const E=Object.assign({},window.blocklet,e);try{return ya(E)}catch(C){return console.error("Failed to format blocklet info",C,E),E}},[e]),p=v.useMemo(()=>jc(s,i),[s,i]),h=Go({meta:e,theme:i}),{productsOrder:m,productsType:b}=v.useMemo(()=>{let{USE_ARCBLOCK_THEME:E,USE_AIGNE_THEME:C}=f;return E=parseInt(E,10),C=parseInt(C,10),ll(C)?{productsOrder:C,productsType:"AIGNE"}:ll(E)?{productsOrder:E,productsType:"ARCBLOCK"}:{productsOrder:null,productsType:null}},[f]);if(!f.appName)return null;const y=or({navigation:f?.navigation?.header,locale:c,defaultLocale:u}),x=G1(y),{navItems:R,activeId:T}=x;return b&&Number.isInteger(m)&&R.splice(m,0,{label:d("products"),children:()=>g.jsx(sv,{type:b})}),g.jsx(Fc,{theme:p,children:g.jsx(H1,{homeLink:r,logo:g.jsx("img",{src:h,alt:"logo"}),addons:g.jsx(xa,{formattedBlocklet:f,addons:typeof t=="function"?E=>t(E,{navigation:x}):t,sessionManagerProps:n,showDomainWarningDialog:a}),...zt(l,["bordered"]),$bordered:l?.bordered,$bgcolor:p.palette.background.default,className:ft("blocklet__header",l.className),children:o||!R?.length?null:({isMobile:E})=>g.jsx(Bh,{mode:E?"inline":"horizontal",activeId:T,items:R,className:"header-nav",bgColor:"transparent",textColor:p.palette.grey[500],activeTextColor:p.palette.text.primary})})})}const H1=Fe(Fh)`
133
- ${({$bgcolor:e})=>`background-color: ${e||"#fff"};`}
134
- .header-logo {
135
- min-width: 44px;
136
- }
137
- ${({$bordered:e,theme:t})=>e?`border-bottom: 1px solid ${t.palette.divider};`:""}
138
- ${e=>e.theme.breakpoints.down("md")} {
139
- .header-logo {
140
- min-width: 32px;
141
- }
142
- }
143
- `,U1=Lc(nf(W1),{FallbackComponent:zc});function of({name:e="",logo:t="",description:n="",...r}){if(!e&&!t&&!n)return null;const i=v.isValidElement(t)?t:g.jsx("img",{src:t,alt:e});return g.jsxs(V1,{...r,children:[g.jsxs("div",{children:[t&&g.jsx(X,{component:"a",href:"/",className:"footer-brand-logo",children:i}),e&&g.jsx("div",{className:"footer-brand-name",children:e})]}),n&&g.jsx("div",{className:"footer-brand-desc",children:n})]})}of.propTypes={name:S.node,logo:S.node,description:S.string};const V1=Fe("div")`
144
- display: flex;
145
- flex-direction: column;
146
- font-size: 14px;
147
- a {
148
- text-decoration: none;
149
- color: inherit;
150
- }
151
- > div:first-of-type {
152
- display: flex;
153
- align-items: center;
154
- }
155
- .footer-brand-logo {
156
- display: flex;
157
- align-items: center;
158
- margin-right: 12px;
159
- line-height: 1;
160
- img,
161
- svg {
162
- width: auto;
163
- height: 40px;
164
- max-height: 40px;
165
- }
166
- }
167
- .footer-brand-name {
168
- font-size: 18px;
169
- color: ${e=>e.theme.palette.grey[900]};
170
- }
171
- .footer-brand-desc {
172
- white-space: pre-line;
173
- margin-top: 16px;
174
- color: ${e=>e.theme.palette.text.secondary};
175
- }
176
-
177
- ${e=>e.theme.breakpoints.down("sm")} {
178
- width: auto;
179
- }
180
-
181
- ${e=>e.theme.breakpoints.down("md")} {
182
- .footer-brand-logo {
183
- img,
184
- svg {
185
- height: 32px;
186
- max-height: 32px;
187
- }
188
- }
189
- }
190
- `;function Eo({links:e=[],flowLayout:t=!1,minColumns:n=1,maxColumns:r=4,...i}){const[o,a]=v.useState(-1),l=Yc({key:"md"}),s=e.some(p=>p.items?.length),c=!l&&s&&fv(n)&&n>1&&r>=n,u=c?Math.min(Math.max(e.length,n),r):1,d=({label:p,link:h,icon:m,render:b,props:y})=>{let x=p;if(b)x=b({label:p,link:h,props:y});else if(h&&_c(h)){const R=h.startsWith("http")||h.startsWith("//"),T=zd(h)?{}:{target:R?"_blank":"_self",rel:R?"noreferrer noopener":void 0};x=g.jsx("a",{href:h,"aria-label":`Footer link for ${p}`,...T,...y,children:p})}return g.jsxs(g.Fragment,{children:[m&&g.jsx(at,{icon:m,size:20,sx:{mr:.5}}),x]})},f=De(()=>e?.length?t?e.map((p,h)=>g.jsx("span",{className:"footer-links-item",children:d(p)},h)):c?Bx(e,{columns:u}).map((p,h)=>g.jsx("div",{className:"footer-links-column",children:p.filter(m=>m.group).map((m,b)=>{const{items:y}=m;return g.jsxs("div",{className:"footer-links-group",children:[g.jsx("span",{className:"footer-links-item",children:d(m)}),!!y?.length&&g.jsx("div",{className:"footer-links-sub",children:y.map((x,R)=>g.jsx("span",{className:ft("footer-links-item",{"footer-links-item--new":x.isNew}),children:d(x)},R))})]},b)})},h)):e.map((p,h)=>{const{items:m}=p,b=h===o;return g.jsxs("div",{className:ft("footer-links-group",{"footer-links-group--active":b}),onClick:()=>a(o===h?-1:h),children:[g.jsxs("span",{className:"footer-links-item",children:[d(p),!!m?.length&&g.jsx("span",{className:"footer-links-group-expand-icon",children:g.jsx($h,{style:{transform:`rotate(${b?180:0}deg)`}})})]}),!!m?.length&&g.jsx("div",{className:"footer-links-sub",children:m.map((y,x)=>g.jsx("span",{className:ft("footer-links-item",{"footer-links-item--new":y.isNew}),children:d(y)},x))})]},h)}):null,[e,t,c,o]);return e?.length?g.jsx(q1,{columns:u,...i,className:ft(i.className,{"footer-links--grouped":s,"footer-links--flow":t,"footer-links--columns":c}),children:g.jsx("div",{className:"footer-links-inner",children:f})}):null}Eo.propTypes={links:S.arrayOf(S.shape({label:S.string,link:S.string,render:S.func,props:S.object})),flowLayout:S.bool,minColumns:S.number,maxColumns:S.number};const q1=Fe("div",{shouldForwardProp:e=>e!=="columns"})`
191
- overflow: hidden;
192
- color: ${({theme:e})=>e.palette.text.secondary};
193
- .footer-links-inner {
194
- display: flex;
195
- justify-content: space-between;
196
- margin: 0 -8px;
197
- }
198
- .footer-links-group,
199
- .footer-links-sub {
200
- display: flex;
201
- flex-direction: column;
202
- }
203
- .footer-links-group-expand-icon {
204
- display: none;
205
- position: absolute;
206
- right: 16px;
207
- top: 50%;
208
- transform: translate(0, -50%);
209
- line-height: 1;
210
- svg {
211
- width: auto;
212
- height: 0.75em;
213
- }
214
- }
215
- .footer-links-item {
216
- display: inline-flex;
217
- align-items: center;
218
- position: relative;
219
- padding: 6px 8px;
220
- font-size: 14px;
221
- white-space: nowrap;
222
- &--new::after {
223
- content: 'New';
224
- color: ${({theme:e})=>e.palette.info.main};
225
- background-color: ${({theme:e})=>e.palette.info.light};
226
- padding: 1px 8px;
227
- border-radius: 10px/50%;
228
- margin-left: 8px;
229
- }
230
- }
231
- &.footer-links--grouped {
232
- .footer-links-group {
233
- > .footer-links-item {
234
- font-weight: 600;
235
- color: ${({theme:e})=>e.palette.text.primary};
236
- }
237
- .footer-links-sub {
238
- margin-top: 8px;
239
- }
240
- }
241
- }
242
- a {
243
- display: inline-block;
244
- max-width: 150px;
245
- color: inherit;
246
- text-decoration: none;
247
- transition: color 0.2s ease-in-out;
248
- &:hover {
249
- color: ${({theme:e})=>e.palette.text.primary};
250
- }
251
- }
252
- /* columns 布局 */
253
- &.footer-links--columns {
254
- .footer-links-inner {
255
- gap: ${({columns:e})=>`${288/e}px`};
256
- }
257
- .footer-links-column {
258
- display: flex;
259
- flex-direction: column;
260
- }
261
- .footer-links-group {
262
- .footer-links-sub {
263
- margin-top: 2px;
264
- margin-bottom: 12px;
265
- }
266
- }
267
- }
268
-
269
- /* flow 布局 */
270
- &.footer-links--flow {
271
- display: inline-flex;
272
- .footer-links-inner {
273
- justify-content: center;
274
- flex-wrap: wrap;
275
- margin: 0 -8px;
276
- .footer-links-item {
277
- padding: 0 8px;
278
- }
279
- .footer-links-item + .footer-links-item::before {
280
- content: '';
281
- position: absolute;
282
- left: 0;
283
- top: 50%;
284
- transform: translate(0, -50%);
285
- height: 1em;
286
- border-left: 1px solid ${e=>e.theme.palette.text.secondary};
287
- }
288
- }
289
- }
290
-
291
- /* 移动端样式 */
292
- ${e=>e.theme.breakpoints.down("md")} {
293
- .footer-links-inner {
294
- flex-direction: column;
295
- margin: 0;
296
- }
297
- .footer-links-sub {
298
- display: none;
299
- }
300
- .footer-links-group {
301
- position: relative;
302
- padding: 12px 0;
303
- .footer-links-item .footer-links-group-expand-icon {
304
- display: inline-block;
305
- }
306
- }
307
- .footer-links-group + .footer-links-group {
308
- border-top: 1px solid ${e=>e.theme.palette.grey[200]};
309
- }
310
- .footer-links-group--active {
311
- .footer-links-sub {
312
- display: flex;
313
- flex-direction: row;
314
- flex-wrap: wrap;
315
- .footer-links-item {
316
- flex: 0 0 50%;
317
- }
318
- }
319
- }
320
- .footer-links-item {
321
- padding-left: 0;
322
- padding-right: 0;
323
- font-size: 13px;
324
- }
325
- &.footer-links--grouped {
326
- .footer-links-group {
327
- > .footer-links-item {
328
- font-size: 14px;
329
- }
330
- }
331
- }
332
-
333
- &.footer-links--flow {
334
- .footer-links-inner {
335
- flex-direction: row;
336
- }
337
- }
338
- }
339
- `;function af({items:e=null,...t}){return e?.length?g.jsx(K1,{...t,children:e.map((n,r)=>g.jsx("a",{href:n.link,target:"_blank","aria-label":`Social media icon${n.title?` for ${n.title}`:""}`,rel:"noreferrer",children:g.jsx(at,{icon:n.icon||n.title,size:24,component:"span"})},r))}):null}af.propTypes={items:S.arrayOf(S.shape({icon:S.string,link:S.string}))};const K1=Fe("div")`
340
- display: inline-flex;
341
- flex-wrap: wrap;
342
- align-items: center;
343
- justify-content: center;
344
- gap: 20px;
345
- a {
346
- color: ${e=>e.theme.palette.text.secondary};
347
- text-decoration: none;
348
- transition: color 0.2s ease-in-out;
349
- &:hover {
350
- color: ${({theme:e})=>e.palette.text.primary};
351
- }
352
- }
353
- ${e=>e.theme.breakpoints.down("md")} {
354
- gap: 12px;
355
- }
356
- `;function lf({owner:e="ArcBlock",year:t=`${new Date().getFullYear()}`,...n}){return g.jsxs(Y1,{...n,children:["Copyright © ",t," ",e]})}lf.propTypes={owner:S.string,year:S.string};const Y1=Fe("p")`
357
- display: flex;
358
- align-items: center;
359
- margin: 0;
360
- font-size: 13px;
361
- `;function Sa({children:e=null,autoCenter:t=!1,...n}){return e?g.jsx(J1,{...n,className:ft(n.className,{"footer-row-auto-center":t}),children:e}):null}Sa.propTypes={children:S.any,autoCenter:S.bool};const J1=Fe(X)`
362
- display: flex;
363
- justify-content: space-between;
364
- & + & {
365
- margin-top: 24px;
366
- }
367
- &.footer-row-auto-center > *:only-child {
368
- margin: 0 auto;
369
- }
370
-
371
- ${({theme:e})=>e.breakpoints.down("md")} {
372
- align-items: stretch;
373
- flex-direction: column;
374
- gap: ${({theme:e})=>e.spacing(1)};
375
- > * {
376
- flex: 1 0 100%;
377
- }
378
- &.footer-row-auto-center > * {
379
- margin: 0 auto;
380
- }
381
- }
382
- `;function sf({elements:e,data:t,className:n="",...r}){const i=!!t.navigation?.length;let o=null;return i?o=g.jsxs(Zt,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},justifyContent:"space-between"},children:[g.jsxs(X,{sx:{flex:"1 1 auto",paddingRight:{xs:0,md:3},display:"flex",flexDirection:"column",alignItems:"flex-start",gap:2,pb:3},children:[g.jsx(X,{children:e.brand}),g.jsx(X,{sx:{lineHeight:1},children:e.socialMedia})]}),g.jsx(X,{sx:({palette:a})=>({mb:3,borderTop:{xs:`1px solid ${a.grey[200]}`,md:0}}),children:e.navigation})]}):o=g.jsxs(Zt,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:"space-between",gap:2,pb:3},children:[g.jsx(X,{children:e.brand}),g.jsx(X,{sx:{lineHeight:1},children:e.socialMedia})]}),g.jsx(X1,{...r,className:ft({"footer--with-navs":i},n),children:g.jsxs(Zt,{style:{padding:0},children:[o,g.jsx(X,{sx:{pt:3,borderTop:1,borderColor:"divider"}}),g.jsx(Zt,{children:g.jsxs(Sa,{autoCenter:!0,children:[e.copyright,e.links]})})]})})}sf.propTypes={elements:S.shape({brand:S.element,navigation:S.element,socialMedia:S.element,copyright:S.element,links:S.element}).isRequired,data:S.object.isRequired,className:S.string};const X1=Fe("div")`
383
- padding: 32px 0 24px 0;
384
- .footer-brand-name,
385
- .footer-brand-desc {
386
- display: none;
387
- }
388
- &.footer--with-navs {
389
- ${e=>e.theme.breakpoints.up("md")} {
390
- .footer-brand-desc {
391
- max-width: 360px;
392
- display: block;
393
- }
394
- }
395
- }
396
- && .footer-brand-logo {
397
- margin-right: 0;
398
- }
399
- `;function cf({elements:e,data:t,...n}){return g.jsx(Q1,{...n,children:g.jsx(Zt,{style:{padding:0},children:g.jsxs(Zt,{className:"plain-layout-container",children:[e.links&&g.jsxs(Sa,{sx:{width:1},autoCenter:!0,children:[e.copyright,e.links]}),!e.links&&g.jsxs(g.Fragment,{children:[v.cloneElement(e.brand,{name:null,description:null}),e.copyright]})]})})})}cf.propTypes={elements:S.shape({brand:S.element,navigation:S.element,socialMedia:S.element,copyright:S.element,links:S.element}).isRequired,data:S.object.isRequired};const Q1=Fe("div")`
400
- padding: 24px 0;
401
- .plain-layout-container {
402
- display: flex;
403
- justify-content: space-between;
404
- align-items: center;
405
- flex-wrap: wrap;
406
- gap: 8px;
407
- }
408
- `,uf=[{name:"plain",support:(e,t)=>!t.navigation?.length&&!t.socialMedia?.length,component:cf},{name:"standard",support:()=>!0,component:sf}],Z1=uf.reduce((e,t)=>({...e,[t.name]:t}),{});function df({...e}){const{brand:t=null,navigation:n=null,socialMedia:r=null,copyright:i=null,links:o=null,layout:a="auto",...l}=e,s=()=>t?g.jsx(of,{...t}):null,c=()=>n?.length?g.jsx(Eo,{links:n,minColumns:3}):null,u=()=>r?.length?g.jsx(af,{items:r}):null,d=()=>{const m=i?.owner||t?.name;return m?g.jsx(lf,{owner:m,year:i?.year||void 0}):null},f=()=>o?.length?g.jsx(Eo,{flowLayout:!0,links:o}):null,p={brand:s(),navigation:c(),socialMedia:u(),copyright:d(),links:f()};let h=null;if(a==="auto"?h=uf.find(m=>m.support(p,e)).component:h=Z1[a]?.component,!h)throw new Error(`layout ${a} is not supported.`);return g.jsxs(X,{...l,className:ft("blocklet__footer",l.className),sx:[{position:"relative"},...Array.isArray(l.sx)?l.sx:[l.sx]],children:[g.jsx(h,{elements:p,data:e}),g.jsx(X,{sx:{position:"absolute",right:16,bottom:0,fontSize:12,color:"transparent","::selection":{background:"#000",color:"#fff"}},children:window?.blocklet?.version})]})}df.propTypes={brand:S.shape({name:S.node,description:S.string,logo:S.node}),navigation:S.arrayOf(S.shape({label:S.node,link:S.string})),socialMedia:S.arrayOf(S.shape({icon:S.node,link:S.string})),copyright:S.shape({owner:S.string,year:S.oneOfType([S.string,S.number])}),links:S.arrayOf(S.shape({label:S.node,link:S.string})),layout:S.oneOf(["auto","standard","plain"])};function ff({meta:e={},theme:t={},...n}){const{locale:r,defaultLocale:i}=Pe()||{},o=nt(),a=v.useMemo(()=>{const b=Object.assign({},window.blocklet,e);try{return ya(b)}catch(y){return console.error("Failed to format blocklet info",y,b),b}},[e]),l=v.useMemo(()=>jc(o,t),[o,t]),s=Go({key:"xs",meta:e,theme:t});if(!a.appName)return null;const{appName:c,appDescription:u,description:d,copyright:f}=a,p=l.palette.background.default,h={footerNav:or({navigation:a?.navigation?.footer,locale:r,defaultLocale:i,section:"footer"})||[],socialMedia:or({navigation:a?.navigation?.social,locale:r,defaultLocale:i,section:"footer"})||[],links:or({navigation:a?.navigation?.bottom,locale:r,defaultLocale:i,section:"footer"})||[]},m={brand:{name:c,description:u||d,logo:s},navigation:Ut(h.footerNav,b=>({...b,label:b.title,link:b.link}),"items"),copyright:f,socialMedia:h.socialMedia,links:h.links.map(b=>({...b,label:b.title}))};return g.jsx(Fc,{theme:l,children:g.jsx(eS,{...m,...zt(n,["bordered"]),$bordered:n?.bordered,$bgcolor:p})})}ff.propTypes={meta:qd,theme:S.object};const eS=Fe(df)`
409
- ${({$bordered:e,theme:t})=>`border-top: 1px solid ${e&&t.palette.divider};`}
410
- color: ${({theme:e})=>e.palette.text.secondary};
411
- ${({$bgcolor:e})=>e&&`background-color: ${e};`}
412
- `,tS=Lc(nf(ff),{FallbackComponent:zc});Gh();var Nn={exports:{}},rS=Nn.exports,Os;function nS(){return Os||(Os=1,(function(e,t){(function(n,r){e.exports=r(Bc())})(rS,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,l){return l==="W"?a+"週":a+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"},meridiem:function(a,l){var s=100*a+l;return s<600?"凌晨":s<900?"早上":s<1100?"上午":s<1300?"中午":s<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o}))})(Nn)),Nn.exports}nS();var An={exports:{}},iS=An.exports,Ns;function oS(){return Ns||(Ns=1,(function(e,t){(function(n,r){e.exports=r(Bc())})(iS,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a){return a+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(a){return a<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return i.default.locale(o,null,!0),o}))})(An)),An.exports}oS();const aS=(e="")=>e.startsWith("http:")||e.startsWith("https:"),lS=e=>{try{return new URL(e).origin===window.location.origin}catch{return!1}};Ze("span")(({theme:e,color:t})=>({position:"relative",display:"inline-block",width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",backgroundColor:t,marginRight:e.spacing(1)}));const xn=Ze(X)(({theme:e})=>({position:"relative",display:"inline-flex",alignItems:"center",height:e.spacing(3),paddingLeft:e.spacing(1.5),paddingRight:e.spacing(1.5),border:"1px solid",borderColor:e.palette.divider,borderRadius:e.shape.borderRadius*.5,fontSize:12,overflow:"hidden","& .app-badge-label":{display:"inline-flex",gap:e.spacing(1),alignItems:"center",lineHeight:e.spacing(3),marginLeft:e.spacing(-1.5),paddingLeft:e.spacing(1.5),marginRight:e.spacing(1),fontSize:12,backgroundColor:e.palette.grey[100],color:e.palette.text.secondary,"&::after":{content:'""',height:e.spacing(3),borderRight:"1px solid",borderColor:e.palette.divider,backgroundColor:e.palette.grey[100]}},"& .app-badge-value":{color:e.palette.text.primary,fontSize:12}}));function cn({loading:e=!1,children:t=null,to:n="",...r}){const i=g.jsx(xn,{className:"app-badge",component:n?"a":"div",href:n,...r,children:t});if(e)return g.jsx(_n,{variant:"rounded",children:i});if(n){if(aS(n)){const o=lS(n)?"_self":"_blank";return g.jsx(xn,{className:"app-badge",component:"a",href:n,target:o,rel:"noreferrer noopener",...r,children:t})}return g.jsx(xn,{className:"app-badge",component:vc,to:n,...r,children:t})}return g.jsx(xn,{className:"app-badge",component:"div",...r,children:t})}function Gi({icon:e="",label:t="",value:n="",loading:r=!1,...i}){return g.jsxs(cn,{loading:r,...i,children:[t&&g.jsxs(ue,{className:"app-badge-label",children:[e&&g.jsx(Se,{icon:e}),t]}),g.jsx(ue,{className:"app-badge-value",children:n})]})}function sS({label:e="",value:t=void 0,trueValue:n=!0,falseValue:r=!1,loading:i=!1,onChange:o=void 0,...a}){const l=nt();let s=!1;const c=re(()=>o?.(!s));return t===n?s=!0:t===r?s=!1:s=!!t,g.jsxs(cn,{loading:i,sx:{cursor:"pointer",backgroundColor:s?"primary.main":"grey.100",borderColor:s?"primary.main":"divider",transition:"background-color 0.3s ease"},onClick:c,...a,children:[g.jsx(ue,{sx:{fontWeight:400,paddingLeft:s?0:l.spacing(2.5),paddingRight:s?l.spacing(2.5):0,color:s?"common.white":"text.secondary",transition:"color 0.3s ease"},children:e}),g.jsx(X,{sx:{width:l.spacing(2.5),height:l.spacing(2.5),borderRadius:`${l.shape.borderRadius*.5}px`,backgroundColor:"common.white",position:"absolute",top:"50%",left:s?`calc(100% - ${l.spacing(3)})`:l.spacing(.5),transform:"translateY(-50%)",transition:"left 0.3s ease",boxShadow:1}})]})}const qn={primary:e=>e.palette.primary,info:e=>e.palette.info,success:e=>e.palette.success,error:e=>e.palette.error,warning:e=>e.palette.warning},pf=(e,t)=>{if(qn[t]){const n=qn[t](e).main;return Bn(n,.1)}return Bn(t,.1)},ko=(e,t)=>qn[t]?qn[t](e).main:t;function cS({icon:e="",value:t="",color:n="info",loading:r=!1,...i}){const o=nt(),a=ko(o,n),l=pf(o,n);return g.jsxs(cn,{loading:r,sx:{borderColor:Bn(a,.2),bgcolor:l},...i,children:[g.jsx(Se,{icon:e||"lucide:orbit",style:{marginRight:6}}),g.jsxs(ue,{className:"app-badge-value",style:{color:a},children:["v ",t]})]})}const uS=Ze("span")(({theme:e,color:t})=>({position:"relative",display:"inline-block",width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",backgroundColor:t,marginRight:e.spacing(1)}));function dS({value:e="",color:t="primary",loading:n=!1,...r}){const i=nt(),o=ko(i,t),a=pf(i,t);return g.jsxs(cn,{loading:n,sx:{borderColor:Bn(o,.2),bgcolor:a},...r,children:[g.jsx(uS,{color:ko(i,t)}),g.jsx(ue,{className:"app-badge-value",style:{color:o},children:e})]})}function fS({value:e="",loading:t=!1,...n}){const r=De(()=>`DID:${Wh(e)?"ETH":"ABT"}`,[e]);return g.jsxs(cn,{loading:t,...n,children:[g.jsx(ue,{className:"app-badge-label",children:r}),g.jsx(ue,{className:"app-badge-value",children:g.jsx(Hh,{inline:!0,size:14,compact:!0,responsive:!1,children:e})})]})}Wo.extend(Uh);Wo.extend(Vh);const pS=(e,t=0)=>{if(typeof e!="number")return"";const n=Math.abs(e);let r,i="";return n>=1e12?(i="T",r=`${(e/1e12).toFixed(t)}`):n>=1e9?(i="B",r=`${(e/1e9).toFixed(t)}`):n>=1e6?(i="M",r=`${(e/1e6).toFixed(t)}`):n>=1e3?(i="K",r=`${(e/1e3).toFixed(t)}`):r=e.toString(),t>0&&(r=r.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),`${r}${i}`},hS=(e,t="en")=>e?Wo(e).locale(t).fromNow():"",gS={switch:sS,version:cS,state:dS,did:fS};function vS(e){const{locale:t="en"}=Pe()||{};if(e.variant==="number"){const{value:n,round:r=0,...i}=e,o=pS(Number(n),r);return g.jsx(Gi,{value:o,...i})}if(e.variant==="time"){const{value:n,...r}=e,i=hS(n,t);return g.jsx(Gi,{value:i,...r})}if(e.variant){const n=gS[e.variant];if(n)return g.jsx(n,{...e})}return g.jsx(Gi,{...e})}const hf=v.createContext({inService:!1,currentTab:"",TabComponent:null,navItem:void 0,updateAppInfo:()=>{}}),Nr=(e,t,n="en")=>{const r=e?.[t];return $c(r)?r[n]||r.en:r},mS=(e,t="",n="en")=>{const r=t==="/"?["/"]:t.split("/").filter(Boolean);let i=null,o=0;return e.forEach(a=>{const l=Nr(a,"link",n)||"",s=l==="/"?["/"]:l.split("/").filter(Boolean);if(s.length>r.length)return;let c=!0;for(let u=0;u<s.length;u++)if(s[u]!==r[u]){c=!1;break}c&&s.length>o&&(i=a,o=s.length)}),i};function bS({path:e=window?.location?.pathname||"",currentTab:t="",meta:n=void 0,children:r=null}){const{locale:i="en"}=Pe()||{},o=to(e),a=o.startsWith(xe.WELLKNOWN_BLOCKLET_ADMIN_PATH),l=De(()=>Object.assign({},window.blocklet,n),[n]),s=De(()=>{const p=l.navigation?.filter(x=>Array.isArray(x.section)?x.section.includes("dashboard"):x.section==="dashboard"),h=p?.flatMap(x=>x.items||[]),m=mS(h,o,i);if(!m)return;const b=p.find(x=>x.id===m.parent);let y=Nr(m,"title",i)||"";return a||(y=`${Nr(b,"title",i)||""} - ${y}`),{id:m.id,parent:m.parent,title:y,link:Nr(m,"link",i)||"",description:Nr(m,"description",i)||""}},[e,a,i,l]),[c,u]=v.useState({}),d=re(p=>{u(h=>({...h,...p}))}),f=v.useMemo(()=>{const{tabs:p=[]}=c,h=p.find(y=>y.value===t);let m=t,b=null;return!h&&p.length>0?(m=p[0].value,b=p[0].render||null):b=h?.render||null,{...c,inService:a,navItem:s,currentTab:m,TabComponent:b,updateAppInfo:d}},[c,s,a,t,d]);return g.jsx(hf.Provider,{value:f,children:r})}function yS(){return v.useContext(hf)}function gf(){return en(e=>e.breakpoints.down("md"))}function As({sx:e={}}){const t=gf();return g.jsx(X,{sx:{mx:t?-2:-3,borderBottom:"1px solid",borderColor:"divider",mt:1.5,mb:1,...e}})}function xS({onTabChange:e=void 0}){const t=gf(),{inService:n,navItem:r,icon:i=void 0,name:o="",description:a=void 0,actions:l=void 0,badges:s=[],tabs:c=[],currentTab:u="",updateAppInfo:d}=yS();return v.useEffect(()=>{n||d({name:r?.title||"",description:r?.description||""})},[r?.title,r?.description,n,d]),o?g.jsxs(X,{className:"app-header",sx:{mt:3,mb:3},children:[g.jsxs(X,{sx:{display:"flex",alignItems:"center",gap:1},children:[i&&g.jsx(X,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:i}),g.jsxs(qh,{sx:{flexGrow:1},children:[g.jsx(ue,{variant:"h1",sx:{mb:.5},children:o}),a&&g.jsx(ue,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.6,"& a":{color:"primary.main"},maxWidth:980},children:a})]}),!t&&l&&g.jsx(X,{sx:{ml:1},children:l})]}),s.length>0&&g.jsx(X,{sx:{display:"flex",flexWrap:"wrap",gap:1,alignItems:"center",mt:2},children:s.map((f,p)=>v.isValidElement(f)?f:g.jsx(vS,{...f},f.label||p))}),t&&l&&g.jsx(X,{sx:{mt:t?2:0},children:l}),c.length<=1&&g.jsx(As,{}),c.length>1&&g.jsxs(g.Fragment,{children:[g.jsx(wg,{tabs:c,current:u,onChange:e,scrollButtons:"auto",sx:{mt:2.5}}),g.jsx(As,{sx:{mt:0}})]})]}):null}function vf({meta:e=void 0,fallbackUrl:t=On,invalidPathFallback:n=null,headerAddons:r=void 0,sessionManagerProps:i={showRole:!0,onLogout:()=>{window.location.href=On}},links:o=[],showDomainWarningDialog:a=!0,appPath:l=void 0,appTab:s=void 0,onAppTabChange:c=void 0,children:u=void 0,...d}){rf();const f=v.use(ni)?.session?.user,p=f?.role,{locale:h,defaultLocale:m}=Pe()||{},b=v.useMemo(()=>{const D=Object.assign({},window.blocklet,e);try{return ya(D)}catch(w){return console.error("Failed to format blocklet info",w,D),D}},[e]),{localizedNav:y,flattened:x,matchedIndex:R}=v.useMemo(()=>{let D=or({navigation:b?.navigation?.dashboard,locale:h,defaultLocale:m})||[];D=Vd(D,p),D=Ut(D,I=>{let P=null;return I.icon&&(I.icon.startsWith("http")||I.icon.startsWith("data:")?P=g.jsx(Yh,{src:I.icon}):P=g.jsx("iconify-icon",{height:"100%",width:"100%",icon:I.icon})),{id:I.id,title:I.title,url:I.link,icon:P,external:!0,children:I.items}},"items");const w=Md(D).filter(I=>!!I.url),_=jd(w.map(I=>I.url));return _!==-1&&(w[_].active=!0),{localizedNav:D,flattened:w,matchedIndex:_}},[b,h,m,p]),T=typeof o=="function"?o(y):[...y,...o],E=Go({meta:e});if(v.useLayoutEffect(()=>{f&&!x?.length&&t&&(window.location.href=t)},[t]),v.useLayoutEffect(()=>{f&&x?.length&&R===-1&&n&&n()},[n,x,R]),!b.appName)return null;const{appName:C}=b;return g.jsx(Kh,{title:C,fullWidth:!0,sidebarWidth:128,legacy:!1,links:T,...d,headerProps:{homeLink:On,logo:g.jsx("img",{src:E,alt:"logo"}),addons:g.jsx(xa,{formattedBlocklet:b,addons:r,sessionManagerProps:i,showDomainWarningDialog:a}),...d.headerProps},children:g.jsxs(bS,{path:l,currentTab:s,meta:e,children:[g.jsx(xS,{onTabChange:c}),u]})})}vf.propTypes={meta:qd,fallbackUrl:S.string,invalidPathFallback:S.func,headerAddons:S.oneOfType([S.func,S.node]),sessionManagerProps:Kd,links:S.oneOfType([S.array,S.func]),showDomainWarningDialog:S.bool,appPath:S.string,appTab:S.string,onAppTabChange:S.func,children:S.node};function mf(e,t){return e?t===e.nodeName?!0:mf(e.parentNode,t):!1}function SS({...e}){return g.jsx("div",{onClick:t=>{mf(t.target,"A")&&t.preventDefault()},...e})}function bf({className:e="",navigation:t=[]}){const{blocklet:n}=Wt(),{locale:r}=Pe(),{languages:i}=ga(),o=Jh({blocklet:n,square:!0}),a=n?.environments?.find(u=>u.key===Ve.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_OWNER)?.value,l=n?.environments?.find(u=>u.key===Ve.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_YEAR)?.value,s=a||l?{owner:a,year:l}:void 0,c={appId:n.appDid,appLogo:o,appName:n.meta.title,enableConnect:!0,enableLocale:!1,navigation:t,copyright:s};return g.jsx(Xh,{translations:Og,locale:r,languages:i,children:g.jsx(SS,{children:g.jsxs(X,{className:e,children:[g.jsx(U1,{meta:c,showDomainWarningDialog:!1,sx:{".header-container":{maxWidth:"none"}}}),g.jsx(X,{children:g.jsx(vf,{meta:c,invalidPathFallback:()=>{},headerProps:{style:{display:"none"}},hideHtmlTitle:!0,showDomainWarningDialog:!1,children:g.jsx(Ya,{container:!0,spacing:2,children:new Array(6).fill().map((u,d)=>g.jsxs(Ya,{size:4,children:[g.jsx(_n,{animation:!1,variant:"rectangular",width:"100%",height:120}),g.jsxs(X,{sx:{pt:.5},children:[g.jsx(_n,{animation:!1}),g.jsx(_n,{width:"60%",animation:!1})]})]},d))})})}),g.jsx(tS,{meta:c,sx:{".MuiContainer-root":{maxWidth:"none"}}})]})})})}bf.propTypes={className:S.string,navigation:S.array};const wS=fr(bf)`
413
- .dashboard {
414
- height: auto !important;
415
- }
416
- .dashboard-content + div {
417
- display: none;
418
- }
419
- `;var yf=Q.createContext(null);function CS(e){e()}var xf=CS,IS=function(t){return xf=t},RS=function(){return xf};function _S(){var e=RS(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var i=t;i;)i.callback(),i=i.next})},get:function(){for(var i=[],o=t;o;)i.push(o),o=o.next;return i},subscribe:function(i){var o=!0,a=n={callback:i,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){!o||t===null||(o=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}var Ms={notify:function(){},get:function(){return[]}};function Sf(e,t){var n,r=Ms;function i(d){return s(),r.subscribe(d)}function o(){r.notify()}function a(){u.onStateChange&&u.onStateChange()}function l(){return!!n}function s(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=_S())}function c(){n&&(n(),n=void 0,r.clear(),r=Ms)}var u={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:l,trySubscribe:s,tryUnsubscribe:c,getListeners:function(){return r}};return u}var wf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?v.useLayoutEffect:v.useEffect;function DS(e){var t=e.store,n=e.context,r=e.children,i=v.useMemo(function(){var l=Sf(t);return{store:t,subscription:l}},[t]),o=v.useMemo(function(){return t.getState()},[t]);wf(function(){var l=i.subscription;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==t.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[i,o]);var a=n||yf;return Q.createElement(a.Provider,{value:i},r)}var Wi={exports:{}},ve={};var Ls;function TS(){if(Ls)return ve;Ls=1;var e=60103,t=60106,n=60107,r=60108,i=60114,o=60109,a=60110,l=60112,s=60113,c=60120,u=60115,d=60116,f=60121,p=60122,h=60117,m=60129,b=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;e=y("react.element"),t=y("react.portal"),n=y("react.fragment"),r=y("react.strict_mode"),i=y("react.profiler"),o=y("react.provider"),a=y("react.context"),l=y("react.forward_ref"),s=y("react.suspense"),c=y("react.suspense_list"),u=y("react.memo"),d=y("react.lazy"),f=y("react.block"),p=y("react.server.block"),h=y("react.fundamental"),m=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function x(N){if(typeof N=="object"&&N!==null){var W=N.$$typeof;switch(W){case e:switch(N=N.type,N){case n:case i:case r:case s:case c:return N;default:switch(N=N&&N.$$typeof,N){case a:case l:case d:case u:case o:return N;default:return W}}case t:return W}}}var R=o,T=e,E=l,C=n,D=d,w=u,_=t,I=i,P=r,L=s;return ve.ContextConsumer=a,ve.ContextProvider=R,ve.Element=T,ve.ForwardRef=E,ve.Fragment=C,ve.Lazy=D,ve.Memo=w,ve.Portal=_,ve.Profiler=I,ve.StrictMode=P,ve.Suspense=L,ve.isAsyncMode=function(){return!1},ve.isConcurrentMode=function(){return!1},ve.isContextConsumer=function(N){return x(N)===a},ve.isContextProvider=function(N){return x(N)===o},ve.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===e},ve.isForwardRef=function(N){return x(N)===l},ve.isFragment=function(N){return x(N)===n},ve.isLazy=function(N){return x(N)===d},ve.isMemo=function(N){return x(N)===u},ve.isPortal=function(N){return x(N)===t},ve.isProfiler=function(N){return x(N)===i},ve.isStrictMode=function(N){return x(N)===r},ve.isSuspense=function(N){return x(N)===s},ve.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===n||N===i||N===m||N===r||N===s||N===c||N===b||typeof N=="object"&&N!==null&&(N.$$typeof===d||N.$$typeof===u||N.$$typeof===o||N.$$typeof===a||N.$$typeof===l||N.$$typeof===h||N.$$typeof===f||N[0]===p)},ve.typeOf=x,ve}var zs;function ES(){return zs||(zs=1,Wi.exports=TS()),Wi.exports}var kS=ES(),PS=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],OS=["reactReduxForwardedRef"],NS=[],AS=[null,null];function MS(e,t){var n=e[1];return[t.payload,n+1]}function js(e,t,n){wf(function(){return e.apply(void 0,t)},n)}function LS(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function zS(e,t,n,r,i,o,a,l,s,c){if(e){var u=!1,d=null,f=function(){if(!u){var m=t.getState(),b,y;try{b=r(m,i.current)}catch(x){y=x,d=x}y||(d=null),b===o.current?a.current||s():(o.current=b,l.current=b,a.current=!0,c({type:"STORE_UPDATED",payload:{error:y}}))}};n.onStateChange=f,n.trySubscribe(),f();var p=function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d};return p}}var jS=function(){return[null,0]};function FS(e,t){t===void 0&&(t={});var n=t,r=n.getDisplayName,i=r===void 0?function(R){return"ConnectAdvanced("+R+")"}:r,o=n.methodName,a=o===void 0?"connectAdvanced":o,l=n.renderCountProp,s=l===void 0?void 0:l,c=n.shouldHandleStateChanges,u=c===void 0?!0:c,d=n.storeKey,f=d===void 0?"store":d;n.withRef;var p=n.forwardRef,h=p===void 0?!1:p,m=n.context,b=m===void 0?yf:m,y=ar(n,PS),x=b;return function(T){var E=T.displayName||T.name||"Component",C=i(E),D=q({},y,{getDisplayName:i,methodName:a,renderCountProp:s,shouldHandleStateChanges:u,storeKey:f,displayName:C,wrappedComponentName:E,WrappedComponent:T}),w=y.pure;function _(W){return e(W.dispatch,D)}var I=w?v.useMemo:function(W){return W()};function P(W){var O=v.useMemo(function(){var Oe=W.reactReduxForwardedRef,He=ar(W,OS);return[W.context,Oe,He]},[W]),F=O[0],G=O[1],H=O[2],Y=v.useMemo(function(){return F&&F.Consumer&&kS.isContextConsumer(Q.createElement(F.Consumer,null))?F:x},[F,x]),ee=v.useContext(Y),J=!!W.store&&!!W.store.getState&&!!W.store.dispatch;ee&&ee.store;var Z=J?W.store:ee.store,U=v.useMemo(function(){return _(Z)},[Z]),ne=v.useMemo(function(){if(!u)return AS;var Oe=Sf(Z,J?null:ee.subscription),He=Oe.notifyNestedSubs.bind(Oe);return[Oe,He]},[Z,J,ee]),ie=ne[0],ce=ne[1],B=v.useMemo(function(){return J?ee:q({},ee,{subscription:ie})},[J,ee,ie]),$=v.useReducer(MS,NS,jS),k=$[0],A=k[0],j=$[1];if(A&&A.error)throw A.error;var V=v.useRef(),te=v.useRef(H),ae=v.useRef(),fe=v.useRef(!1),ye=I(function(){return ae.current&&H===te.current?ae.current:U(Z.getState(),H)},[Z,A,H]);js(LS,[te,V,fe,H,ye,ae,ce]),js(zS,[u,Z,ie,U,te,V,fe,ae,ce,j],[Z,ie,U]);var _e=v.useMemo(function(){return Q.createElement(T,q({},ye,{ref:G}))},[G,T,ye]),Re=v.useMemo(function(){return u?Q.createElement(Y.Provider,{value:B},_e):_e},[Y,_e,B]);return Re}var L=w?Q.memo(P):P;if(L.WrappedComponent=T,L.displayName=P.displayName=C,h){var N=Q.forwardRef(function(O,F){return Q.createElement(L,q({},O,{reactReduxForwardedRef:F}))});return N.displayName=C,N.WrappedComponent=T,Ja(N,T)}return Ja(L,T)}}function Fs(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Hi(e,t){if(Fs(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Fs(e[n[i]],t[n[i]]))return!1;return!0}function BS(e,t){var n={},r=function(a){var l=e[a];typeof l=="function"&&(n[a]=function(){return t(l.apply(void 0,arguments))})};for(var i in e)r(i);return n}function wa(e){return function(n,r){var i=e(n,r);function o(){return i}return o.dependsOnOwnProps=!1,o}}function Bs(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?!!e.dependsOnOwnProps:e.length!==1}function Cf(e,t){return function(r,i){i.displayName;var o=function(l,s){return o.dependsOnOwnProps?o.mapToProps(l,s):o.mapToProps(l)};return o.dependsOnOwnProps=!0,o.mapToProps=function(l,s){o.mapToProps=e,o.dependsOnOwnProps=Bs(e);var c=o(l,s);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=Bs(c),c=o(l,s)),c},o}}function $S(e){return typeof e=="function"?Cf(e):void 0}function GS(e){return e?void 0:wa(function(t){return{dispatch:t}})}function WS(e){return e&&typeof e=="object"?wa(function(t){return BS(e,t)}):void 0}const HS=[$S,GS,WS];function US(e){return typeof e=="function"?Cf(e):void 0}function VS(e){return e?void 0:wa(function(){return{}})}const qS=[US,VS];function KS(e,t,n){return q({},n,e,t)}function YS(e){return function(n,r){r.displayName;var i=r.pure,o=r.areMergedPropsEqual,a=!1,l;return function(c,u,d){var f=e(c,u,d);return a?(!i||!o(f,l))&&(l=f):(a=!0,l=f),l}}}function JS(e){return typeof e=="function"?YS(e):void 0}function XS(e){return e?void 0:function(){return KS}}const QS=[JS,XS];var ZS=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function ew(e,t,n,r){return function(o,a){return n(e(o,a),t(r,a),a)}}function tw(e,t,n,r,i){var o=i.areStatesEqual,a=i.areOwnPropsEqual,l=i.areStatePropsEqual,s=!1,c,u,d,f,p;function h(R,T){return c=R,u=T,d=e(c,u),f=t(r,u),p=n(d,f,u),s=!0,p}function m(){return d=e(c,u),t.dependsOnOwnProps&&(f=t(r,u)),p=n(d,f,u),p}function b(){return e.dependsOnOwnProps&&(d=e(c,u)),t.dependsOnOwnProps&&(f=t(r,u)),p=n(d,f,u),p}function y(){var R=e(c,u),T=!l(R,d);return d=R,T&&(p=n(d,f,u)),p}function x(R,T){var E=!a(T,u),C=!o(R,c,T,u);return c=R,u=T,E&&C?m():E?b():C?y():p}return function(T,E){return s?x(T,E):h(T,E)}}function rw(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=ar(t,ZS),a=n(e,o),l=r(e,o),s=i(e,o),c=o.pure?tw:ew;return c(a,l,s,e,o)}var nw=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Ui(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(o,a){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+a.wrappedComponentName+".")}}function iw(e,t){return e===t}function ow(e){var t=e===void 0?{}:e,n=t.connectHOC,r=n===void 0?FS:n,i=t.mapStateToPropsFactories,o=i===void 0?qS:i,a=t.mapDispatchToPropsFactories,l=a===void 0?HS:a,s=t.mergePropsFactories,c=s===void 0?QS:s,u=t.selectorFactory,d=u===void 0?rw:u;return function(p,h,m,b){b===void 0&&(b={});var y=b,x=y.pure,R=x===void 0?!0:x,T=y.areStatesEqual,E=T===void 0?iw:T,C=y.areOwnPropsEqual,D=C===void 0?Hi:C,w=y.areStatePropsEqual,_=w===void 0?Hi:w,I=y.areMergedPropsEqual,P=I===void 0?Hi:I,L=ar(y,nw),N=Ui(p,o,"mapStateToProps"),W=Ui(h,l,"mapDispatchToProps"),O=Ui(m,c,"mergeProps");return r(d,q({methodName:"connect",getDisplayName:function(G){return"Connect("+G+")"},shouldHandleStateChanges:!!p,initMapStateToProps:N,initMapDispatchToProps:W,initMergeProps:O,pure:R,areStatesEqual:E,areOwnPropsEqual:D,areStatePropsEqual:_,areMergedPropsEqual:P},L))}}const If=ow();IS(wc.unstable_batchedUpdates);var $s=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function aw(e,t){return!!(e===t||$s(e)&&$s(t))}function lw(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!aw(e[n],t[n]))return!1;return!0}function Ee(e,t){t===void 0&&(t=lw);var n,r=[],i,o=!1;function a(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return o&&n===this&&t(l,r)||(i=e.apply(this,l),o=!0,n=this,r=l),i}return a}function Rf(e,t){}Rf.bind(null,"warn");Rf.bind(null,"error");function Ct(){}function sw(e,t){return q({},e,{},t)}function Xe(e,t,n){var r=t.map(function(i){var o=sw(n,i.options);return e.addEventListener(i.eventName,i.fn,o),function(){e.removeEventListener(i.eventName,i.fn,o)}});return function(){r.forEach(function(o){o()})}}var cw="Invariant failed";function Kn(e){this.message=e}Kn.prototype.toString=function(){return this.message};function K(e,t){throw new Kn(cw)}var uw=(function(e){ri(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o))||this,r.callbacks=null,r.unbind=Ct,r.onWindowError=function(l){var s=r.getCallbacks();s.isDragging()&&s.tryAbort();var c=l.error;c instanceof Kn&&l.preventDefault()},r.getCallbacks=function(){if(!r.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return r.callbacks},r.setCallbacks=function(l){r.callbacks=l},r}var n=t.prototype;return n.componentDidMount=function(){this.unbind=Xe(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(i){if(i instanceof Kn){this.setState({});return}throw i},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t})(Q.Component),dw=`
420
- Press space bar to start a drag.
421
- When dragging you can use the arrow keys to move the item around and escape to cancel.
422
- Some screen readers may require you to be in focus mode or to use your pass through key
423
- `,Yn=function(t){return t+1},fw=function(t){return`
424
- You have lifted an item in position `+Yn(t.source.index)+`
425
- `},_f=function(t,n){var r=t.droppableId===n.droppableId,i=Yn(t.index),o=Yn(n.index);return r?`
426
- You have moved the item from position `+i+`
427
- to position `+o+`
428
- `:`
429
- You have moved the item from position `+i+`
430
- in list `+t.droppableId+`
431
- to list `+n.droppableId+`
432
- in position `+o+`
433
- `},Df=function(t,n,r){var i=n.droppableId===r.droppableId;return i?`
434
- The item `+t+`
435
- has been combined with `+r.draggableId:`
436
- The item `+t+`
437
- in list `+n.droppableId+`
438
- has been combined with `+r.draggableId+`
439
- in list `+r.droppableId+`
440
- `},pw=function(t){var n=t.destination;if(n)return _f(t.source,n);var r=t.combine;return r?Df(t.draggableId,t.source,r):"You are over an area that cannot be dropped on"},Gs=function(t){return`
441
- The item has returned to its starting position
442
- of `+Yn(t.index)+`
443
- `},hw=function(t){if(t.reason==="CANCEL")return`
444
- Movement cancelled.
445
- `+Gs(t.source)+`
446
- `;var n=t.destination,r=t.combine;return n?`
447
- You have dropped the item.
448
- `+_f(t.source,n)+`
449
- `:r?`
450
- You have dropped the item.
451
- `+Df(t.draggableId,t.source,r)+`
452
- `:`
453
- The item has been dropped while not over a drop area.
454
- `+Gs(t.source)+`
455
- `},Mn={dragHandleUsageInstructions:dw,onDragStart:fw,onDragUpdate:pw,onDragEnd:hw},ke={x:0,y:0},Ae=function(t,n){return{x:t.x+n.x,y:t.y+n.y}},qe=function(t,n){return{x:t.x-n.x,y:t.y-n.y}},It=function(t,n){return t.x===n.x&&t.y===n.y},gr=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},$t=function(t,n,r){var i;return r===void 0&&(r=0),i={},i[t]=n,i[t==="x"?"y":"x"]=r,i},Kr=function(t,n){return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))},Ws=function(t,n){return Math.min.apply(Math,n.map(function(r){return Kr(t,r)}))},Tf=function(t){return function(n){return{x:t(n.x),y:t(n.y)}}},gw=(function(e,t){var n=Ht({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}),un=function(t,n){return{top:t.top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x}},Hs=function(t){return[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}]},vw={top:0,right:0,bottom:0,left:0},mw=function(t,n){return n?un(t,n.scroll.diff.displacement):t},bw=function(t,n,r){if(r&&r.increasedBy){var i;return q({},t,(i={},i[n.end]=t[n.end]+r.increasedBy[n.line],i))}return t},yw=function(t,n){return n&&n.shouldClipSubject?gw(n.pageMarginBox,t):Ht(t)},cr=(function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,i=e.frame,o=mw(t.marginBox,i),a=bw(o,r,n),l=yw(a,i);return{page:t,withPlaceholder:n,active:l}}),Ca=(function(e,t){e.frame||K();var n=e.frame,r=qe(t,n.scroll.initial),i=gr(r),o=q({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}}),a=cr({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o}),l=q({},e,{frame:o,subject:a});return l});function Jn(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function Ia(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function kt(e,t){if(e.find)return e.find(t);var n=Ia(e,t);if(n!==-1)return e[n]}function Ef(e){return Array.prototype.slice.call(e)}var kf=Ee(function(e){return e.reduce(function(t,n){return t[n.descriptor.id]=n,t},{})}),Pf=Ee(function(e){return e.reduce(function(t,n){return t[n.descriptor.id]=n,t},{})}),di=Ee(function(e){return Jn(e)}),xw=Ee(function(e){return Jn(e)}),vr=Ee(function(e,t){var n=xw(t).filter(function(r){return e===r.descriptor.droppableId}).sort(function(r,i){return r.descriptor.index-i.descriptor.index});return n});function Ra(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function fi(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var pi=Ee(function(e,t){return t.filter(function(n){return n.descriptor.id!==e.descriptor.id})}),Sw=(function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.previousImpact;if(!r.isCombineEnabled)return null;var a=Ra(o);if(!a)return null;function l(m){var b={type:"COMBINE",combine:{draggableId:m,droppableId:r.descriptor.id}};return q({},o,{at:b})}var s=o.displaced.all,c=s.length?s[0]:null;if(t)return c?l(c):null;var u=pi(n,i);if(!c){if(!u.length)return null;var d=u[u.length-1];return l(d.descriptor.id)}var f=Ia(u,function(m){return m.descriptor.id===c});f===-1&&K();var p=f-1;if(p<0)return null;var h=u[p];return l(h.descriptor.id)}),mr=(function(e,t){return e.descriptor.droppableId===t.descriptor.id}),Of={point:ke,value:0},Yr={invisible:{},visible:{},all:[]},ww={displaced:Yr,displacedBy:Of,at:null},Qe=(function(e,t){return function(n){return e<=n&&n<=t}}),Nf=(function(e){var t=Qe(e.top,e.bottom),n=Qe(e.left,e.right);return function(r){var i=t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right);if(i)return!0;var o=t(r.top)||t(r.bottom),a=n(r.left)||n(r.right),l=o&&a;if(l)return!0;var s=r.top<e.top&&r.bottom>e.bottom,c=r.left<e.left&&r.right>e.right,u=s&&c;if(u)return!0;var d=s&&a||c&&o;return d}}),Cw=(function(e){var t=Qe(e.top,e.bottom),n=Qe(e.left,e.right);return function(r){var i=t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right);return i}}),_a={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Af={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Iw=(function(e){return function(t){var n=Qe(t.top,t.bottom),r=Qe(t.left,t.right);return function(i){return e===_a?n(i.top)&&n(i.bottom):r(i.left)&&r(i.right)}}}),Rw=function(t,n){var r=n.frame?n.frame.scroll.diff.displacement:ke;return un(t,r)},_w=function(t,n,r){return n.subject.active?r(n.subject.active)(t):!1},Dw=function(t,n,r){return r(n)(t)},Da=function(t){var n=t.target,r=t.destination,i=t.viewport,o=t.withDroppableDisplacement,a=t.isVisibleThroughFrameFn,l=o?Rw(n,r):n;return _w(l,r,a)&&Dw(l,i,a)},Tw=function(t){return Da(q({},t,{isVisibleThroughFrameFn:Nf}))},Mf=function(t){return Da(q({},t,{isVisibleThroughFrameFn:Cw}))},Ew=function(t){return Da(q({},t,{isVisibleThroughFrameFn:Iw(t.destination.axis)}))},kw=function(t,n,r){if(typeof r=="boolean")return r;if(!n)return!0;var i=n.invisible,o=n.visible;if(i[t])return!1;var a=o[t];return a?a.shouldAnimate:!0};function Pw(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Ht(Uc(n,r))}function Jr(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return t.reduce(function(s,c){var u=Pw(c,r),d=c.descriptor.id;s.all.push(d);var f=Tw({target:u,destination:n,viewport:i,withDroppableDisplacement:!0});if(!f)return s.invisible[c.descriptor.id]=!0,s;var p=kw(d,a,o),h={draggableId:d,shouldAnimate:p};return s.visible[d]=h,s},{all:[],visible:{},invisible:{}})}function Ow(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function Us(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,i=e.destination,o=Ow(t,{inHomeList:n});return{displaced:Yr,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function Xn(e){var t=e.draggable,n=e.insideDestination,r=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,l=e.index,s=e.forceShouldAnimate,c=mr(t,r);if(l==null)return Us({insideDestination:n,inHomeList:c,displacedBy:o,destination:r});var u=kt(n,function(m){return m.descriptor.index===l});if(!u)return Us({insideDestination:n,inHomeList:c,displacedBy:o,destination:r});var d=pi(t,n),f=n.indexOf(u),p=d.slice(f),h=Jr({afterDragging:p,destination:r,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:s});return{displaced:h,displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function Et(e,t){return!!t.effected[e]}var Nw=(function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,o=e.afterCritical;if(!n.isCombineEnabled)return null;var a=i.draggableId,l=r[a],s=l.descriptor.index,c=Et(a,o);return c?t?s:s-1:t?s+1:s}),Aw=(function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,i=e.location;if(!r.length)return null;var o=i.index,a=t?o+1:o-1,l=r[0].descriptor.index,s=r[r.length-1].descriptor.index,c=n?s:s+1;return a<l||a>c?null:a}),Mw=(function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,l=e.previousImpact,s=e.viewport,c=e.afterCritical,u=l.at;if(u||K(),u.type==="REORDER"){var d=Aw({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return d==null?null:Xn({draggable:r,insideDestination:a,destination:o,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:d})}var f=Nw({isMovingForward:t,destination:o,displaced:l.displaced,draggables:i,combine:u.combine,afterCritical:c});return f==null?null:Xn({draggable:r,insideDestination:a,destination:o,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:f})}),Lw=(function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,i=e.displacedBy,o=!!(t.visible[r]||t.invisible[r]);return Et(r,n)?o?ke:gr(i.point):o?i.point:ke}),zw=(function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,i=fi(n);i||K();var o=i.draggableId,a=r[o].page.borderBox.center,l=Lw({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return Ae(a,l)}),Lf=function(t,n){return n.margin[t.start]+n.borderBox[t.size]/2},jw=function(t,n){return n.margin[t.end]+n.borderBox[t.size]/2},Ta=function(t,n,r){return n[t.crossAxisStart]+r.margin[t.crossAxisStart]+r.borderBox[t.crossAxisSize]/2},Vs=function(t){var n=t.axis,r=t.moveRelativeTo,i=t.isMoving;return $t(n.line,r.marginBox[n.end]+Lf(n,i),Ta(n,r.marginBox,i))},qs=function(t){var n=t.axis,r=t.moveRelativeTo,i=t.isMoving;return $t(n.line,r.marginBox[n.start]-jw(n,i),Ta(n,r.marginBox,i))},Fw=function(t){var n=t.axis,r=t.moveInto,i=t.isMoving;return $t(n.line,r.contentBox[n.start]+Lf(n,i),Ta(n,r.contentBox,i))},Bw=(function(e){var t=e.impact,n=e.draggable,r=e.draggables,i=e.droppable,o=e.afterCritical,a=vr(i.descriptor.id,r),l=n.page,s=i.axis;if(!a.length)return Fw({axis:s,moveInto:i.page,isMoving:l});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=r[d];if(Et(d,o))return qs({axis:s,moveRelativeTo:f.page,isMoving:l});var p=no(f.page,u.point);return qs({axis:s,moveRelativeTo:p,isMoving:l})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return l.borderBox.center;if(Et(h.descriptor.id,o)){var m=no(h.page,gr(o.displacedBy.point));return Vs({axis:s,moveRelativeTo:m,isMoving:l})}return Vs({axis:s,moveRelativeTo:h.page,isMoving:l})}),Po=(function(e,t){var n=e.frame;return n?Ae(t,n.scroll.diff.displacement):t}),$w=function(t){var n=t.impact,r=t.draggable,i=t.droppable,o=t.draggables,a=t.afterCritical,l=r.page.borderBox.center,s=n.at;return!i||!s?l:s.type==="REORDER"?Bw({impact:n,draggable:r,draggables:o,droppable:i,afterCritical:a}):zw({impact:n,draggables:o,afterCritical:a})},hi=(function(e){var t=$w(e),n=e.droppable,r=n?Po(n,t):t;return r}),zf=(function(e,t){var n=qe(t,e.scroll.initial),r=gr(n),i=Ht({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),o={frame:i,scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}};return o});function Ks(e,t){return e.map(function(n){return t[n]})}function Gw(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}var Ww=(function(e){var t=e.impact,n=e.viewport,r=e.destination,i=e.draggables,o=e.maxScrollChange,a=zf(n,Ae(n.scroll.current,o)),l=r.frame?Ca(r,Ae(r.frame.scroll.current,o)):r,s=t.displaced,c=Jr({afterDragging:Ks(s.all,i),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:s,forceShouldAnimate:!1}),u=Jr({afterDragging:Ks(s.all,i),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),d={},f={},p=[s,c,u];s.all.forEach(function(m){var b=Gw(m,p);if(b){f[m]=b;return}d[m]=!0});var h=q({},t,{displaced:{all:s.all,invisible:d,visible:f}});return h}),Hw=(function(e,t){return Ae(e.scroll.diff.displacement,t)}),Ea=(function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=e.viewport,i=Hw(r,t),o=qe(i,n.page.borderBox.center);return Ae(n.client.borderBox.center,o)}),jf=(function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,a=e.onlyOnMainAxis,l=a===void 0?!1:a,s=qe(r,t.page.borderBox.center),c=un(t.page.borderBox,s),u={target:c,destination:n,withDroppableDisplacement:o,viewport:i};return l?Ew(u):Mf(u)}),Uw=(function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.draggables,o=e.previousImpact,a=e.viewport,l=e.previousPageBorderBoxCenter,s=e.previousClientSelection,c=e.afterCritical;if(!r.isEnabled)return null;var u=vr(r.descriptor.id,i),d=mr(n,r),f=Sw({isMovingForward:t,draggable:n,destination:r,insideDestination:u,previousImpact:o})||Mw({isMovingForward:t,isInHomeList:d,draggable:n,draggables:i,destination:r,insideDestination:u,previousImpact:o,viewport:a,afterCritical:c});if(!f)return null;var p=hi({impact:f,draggable:n,droppable:r,draggables:i,afterCritical:c}),h=jf({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(h){var m=Ea({pageBorderBoxCenter:p,draggable:n,viewport:a});return{clientSelection:m,impact:f,scrollJumpRequest:null}}var b=qe(p,l),y=Ww({impact:f,viewport:a,destination:r,draggables:i,maxScrollChange:b});return{clientSelection:s,impact:y,scrollJumpRequest:b}}),ze=function(t){var n=t.subject.active;return n||K(),n},Vw=(function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,i=e.droppables,o=e.viewport,a=r.subject.active;if(!a)return null;var l=r.axis,s=Qe(a[l.start],a[l.end]),c=di(i).filter(function(d){return d!==r}).filter(function(d){return d.isEnabled}).filter(function(d){return!!d.subject.active}).filter(function(d){return Nf(o.frame)(ze(d))}).filter(function(d){var f=ze(d);return t?a[l.crossAxisEnd]<f[l.crossAxisEnd]:f[l.crossAxisStart]<a[l.crossAxisStart]}).filter(function(d){var f=ze(d),p=Qe(f[l.start],f[l.end]);return s(f[l.start])||s(f[l.end])||p(a[l.start])||p(a[l.end])}).sort(function(d,f){var p=ze(d)[l.crossAxisStart],h=ze(f)[l.crossAxisStart];return t?p-h:h-p}).filter(function(d,f,p){return ze(d)[l.crossAxisStart]===ze(p[0])[l.crossAxisStart]});if(!c.length)return null;if(c.length===1)return c[0];var u=c.filter(function(d){var f=Qe(ze(d)[l.start],ze(d)[l.end]);return f(n[l.line])});return u.length===1?u[0]:u.length>1?u.sort(function(d,f){return ze(d)[l.start]-ze(f)[l.start]})[0]:c.sort(function(d,f){var p=Ws(n,Hs(ze(d))),h=Ws(n,Hs(ze(f)));return p!==h?p-h:ze(d)[l.start]-ze(f)[l.start]})[0]}),Ys=function(t,n){var r=t.page.borderBox.center;return Et(t.descriptor.id,n)?qe(r,n.displacedBy.point):r},qw=function(t,n){var r=t.page.borderBox;return Et(t.descriptor.id,n)?un(r,gr(n.displacedBy.point)):r},Kw=(function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,i=e.insideDestination,o=e.afterCritical,a=i.filter(function(l){return Mf({target:qw(l,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})}).sort(function(l,s){var c=Kr(t,Po(r,Ys(l,o))),u=Kr(t,Po(r,Ys(s,o)));return c<u?-1:u<c?1:l.descriptor.index-s.descriptor.index});return a[0]||null}),dn=Ee(function(t,n){var r=n[t.line];return{value:r,point:$t(t.line,r)}}),Yw=function(t,n,r){var i=t.axis;if(t.descriptor.mode==="virtual")return $t(i.line,n[i.line]);var o=t.subject.page.contentBox[i.size],a=vr(t.descriptor.id,r),l=a.reduce(function(u,d){return u+d.client.marginBox[i.size]},0),s=l+n[i.line],c=s-o;return c<=0?null:$t(i.line,c)},Ff=function(t,n){return q({},t,{scroll:q({},t.scroll,{max:n})})},Bf=function(t,n,r){var i=t.frame;mr(n,t)&&K(),t.subject.withPlaceholder&&K();var o=dn(t.axis,n.displaceBy).point,a=Yw(t,o,r),l={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:t.frame?t.frame.scroll.max:null};if(!i){var s=cr({page:t.subject.page,withPlaceholder:l,axis:t.axis,frame:t.frame});return q({},t,{subject:s})}var c=a?Ae(i.scroll.max,a):i.scroll.max,u=Ff(i,c),d=cr({page:t.subject.page,withPlaceholder:l,axis:t.axis,frame:u});return q({},t,{subject:d,frame:u})},Jw=function(t){var n=t.subject.withPlaceholder;n||K();var r=t.frame;if(!r){var i=cr({page:t.subject.page,axis:t.axis,frame:null,withPlaceholder:null});return q({},t,{subject:i})}var o=n.oldFrameMaxScroll;o||K();var a=Ff(r,o),l=cr({page:t.subject.page,axis:t.axis,frame:a,withPlaceholder:null});return q({},t,{subject:l,frame:a})},Xw=(function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,l=e.viewport,s=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:Yr,displacedBy:Of,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=hi({impact:c,draggable:i,droppable:a,draggables:o,afterCritical:s}),d=mr(i,a)?a:Bf(a,i,o),f=jf({draggable:i,destination:d,newPageBorderBoxCenter:u,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return f?c:null}var p=t[a.axis.line]<=n.page.borderBox.center[a.axis.line],h=(function(){var b=n.descriptor.index;return n.descriptor.id===i.descriptor.id||p?b:b+1})(),m=dn(a.axis,i.displaceBy);return Xn({draggable:i,insideDestination:r,destination:a,viewport:l,displacedBy:m,last:Yr,index:h})}),Qw=(function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,l=e.viewport,s=e.afterCritical,c=Vw({isMovingForward:t,pageBorderBoxCenter:n,source:i,droppables:a,viewport:l});if(!c)return null;var u=vr(c.descriptor.id,o),d=Kw({pageBorderBoxCenter:n,viewport:l,destination:c,insideDestination:u,afterCritical:s}),f=Xw({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:o,moveRelativeTo:d,insideDestination:u,viewport:l,afterCritical:s});if(!f)return null;var p=hi({impact:f,draggable:r,droppable:c,draggables:o,afterCritical:s}),h=Ea({pageBorderBoxCenter:p,draggable:r,viewport:l});return{clientSelection:h,impact:f,scrollJumpRequest:null}}),Ke=(function(e){var t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null}),Zw=function(t,n){var r=Ke(t);return r?n[r]:null},eC=(function(e){var t=e.state,n=e.type,r=Zw(t.impact,t.dimensions.droppables),i=!!r,o=t.dimensions.droppables[t.critical.droppable.id],a=r||o,l=a.axis.direction,s=l==="vertical"&&(n==="MOVE_UP"||n==="MOVE_DOWN")||l==="horizontal"&&(n==="MOVE_LEFT"||n==="MOVE_RIGHT");if(s&&!i)return null;var c=n==="MOVE_DOWN"||n==="MOVE_RIGHT",u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,p=f.draggables,h=f.droppables;return s?Uw({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Qw({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})});function At(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function $f(e){var t=Qe(e.top,e.bottom),n=Qe(e.left,e.right);return function(i){return t(i.y)&&n(i.x)}}function tC(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function rC(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,i=n.page.borderBox.center,o=r.map(function(a){var l=a.axis,s=$t(a.axis.line,t.center[l.line],a.page.borderBox.center[l.crossAxisLine]);return{id:a.descriptor.id,distance:Kr(i,s)}}).sort(function(a,l){return l.distance-a.distance});return o[0]?o[0].id:null}function nC(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,i=di(r).filter(function(o){if(!o.isEnabled)return!1;var a=o.subject.active;if(!a||!tC(t,a))return!1;if($f(a)(t.center))return!0;var l=o.axis,s=a.center[l.crossAxisLine],c=t[l.crossAxisStart],u=t[l.crossAxisEnd],d=Qe(a[l.crossAxisStart],a[l.crossAxisEnd]),f=d(c),p=d(u);return!f&&!p?!0:f?c<s:u>s});return i.length?i.length===1?i[0].descriptor.id:rC({pageBorderBox:t,draggable:n,candidates:i}):null}var Gf=function(t,n){return Ht(un(t,n))},iC=(function(e,t){var n=e.frame;return n?Gf(t,n.scroll.diff.value):t});function Wf(e){var t=e.displaced,n=e.id;return!!(t.visible[n]||t.invisible[n])}function oC(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var aC=(function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,l=e.afterCritical,s=r.axis,c=dn(r.axis,n.displaceBy),u=c.value,d=t[s.start],f=t[s.end],p=pi(n,i),h=kt(p,function(b){var y=b.descriptor.id,x=b.page.borderBox.center[s.line],R=Et(y,l),T=Wf({displaced:o,id:y});return R?T?f<=x:d<x-u:T?f<=x+u:d<x}),m=oC({draggable:n,closest:h,inHomeList:mr(n,r)});return Xn({draggable:n,insideDestination:i,destination:r,viewport:a,last:o,displacedBy:c,index:m})}),lC=4,sC=(function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var l=i.axis,s=dn(i.axis,t.displaceBy),c=s.value,u=n[l.start],d=n[l.end],f=pi(t,o),p=kt(f,function(m){var b=m.descriptor.id,y=m.page.borderBox,x=y[l.size],R=x/lC,T=Et(b,a),E=Wf({displaced:r.displaced,id:b});return T?E?d>y[l.start]+R&&d<y[l.end]-R:u>y[l.start]-c+R&&u<y[l.end]-c-R:E?d>y[l.start]+c+R&&d<y[l.end]+c-R:u>y[l.start]+R&&u<y[l.end]-R});if(!p)return null;var h={displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:i.descriptor.id}}};return h}),Hf=(function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,l=e.afterCritical,s=Gf(n.page.borderBox,t),c=nC({pageBorderBox:s,draggable:n,droppables:i});if(!c)return ww;var u=i[c],d=vr(u.descriptor.id,r),f=iC(u,s);return sC({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:o,destination:u,insideDestination:d,afterCritical:l})||aC({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:u,insideDestination:d,last:o.displaced,viewport:a,afterCritical:l})}),ka=(function(e,t){var n;return q({},e,(n={},n[t.descriptor.id]=t,n))}),cC=function(t){var n=t.previousImpact,r=t.impact,i=t.droppables,o=Ke(n),a=Ke(r);if(!o||o===a)return i;var l=i[o];if(!l.subject.withPlaceholder)return i;var s=Jw(l);return ka(i,s)},uC=(function(e){var t=e.draggable,n=e.draggables,r=e.droppables,i=e.previousImpact,o=e.impact,a=cC({previousImpact:i,impact:o,droppables:r}),l=Ke(o);if(!l)return a;var s=r[l];if(mr(t,s)||s.subject.withPlaceholder)return a;var c=Bf(s,t,n);return ka(a,c)}),Br=(function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,i=e.viewport,o=e.impact,a=e.scrollJumpRequest,l=i||t.viewport,s=r||t.dimensions,c=n||t.current.client.selection,u=qe(c,t.initial.client.selection),d={offset:u,selection:c,borderBoxCenter:Ae(t.initial.client.borderBoxCenter,u)},f={selection:Ae(d.selection,l.scroll.current),borderBoxCenter:Ae(d.borderBoxCenter,l.scroll.current),offset:Ae(d.offset,l.scroll.diff.value)},p={client:d,page:f};if(t.phase==="COLLECTING")return q({phase:"COLLECTING"},t,{dimensions:s,viewport:l,current:p});var h=s.draggables[t.critical.draggable.id],m=o||Hf({pageOffset:f.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),b=uC({draggable:h,impact:m,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables}),y=q({},t,{current:p,dimensions:{draggables:s.draggables,droppables:b},impact:m,viewport:l,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null});return y});function dC(e,t){return e.map(function(n){return t[n]})}var Uf=(function(e){var t=e.impact,n=e.viewport,r=e.draggables,i=e.destination,o=e.forceShouldAnimate,a=t.displaced,l=dC(a.all,r),s=Jr({afterDragging:l,destination:i,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:o,last:a});return q({},t,{displaced:s})}),Vf=(function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,l=hi({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:a});return Ea({pageBorderBoxCenter:l,draggable:n,viewport:o})}),qf=(function(e){var t=e.state,n=e.dimensions,r=e.viewport;t.movementMode!=="SNAP"&&K();var i=t.impact,o=r||t.viewport,a=n||t.dimensions,l=a.draggables,s=a.droppables,c=l[t.critical.draggable.id],u=Ke(i);u||K();var d=s[u],f=Uf({impact:i,viewport:o,destination:d,draggables:l}),p=Vf({impact:f,draggable:c,droppable:d,draggables:l,viewport:o,afterCritical:t.afterCritical});return Br({impact:f,clientSelection:p,state:t,dimensions:a,viewport:o})}),fC=(function(e){return{index:e.index,droppableId:e.droppableId}}),Kf=(function(e){var t=e.draggable,n=e.home,r=e.draggables,i=e.viewport,o=dn(n.axis,t.displaceBy),a=vr(n.descriptor.id,r),l=a.indexOf(t);l===-1&&K();var s=a.slice(l+1),c=s.reduce(function(p,h){return p[h.descriptor.id]=!0,p},{}),u={inVirtualList:n.descriptor.mode==="virtual",displacedBy:o,effected:c},d=Jr({afterDragging:s,destination:n,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),f={displaced:d,displacedBy:o,at:{type:"REORDER",destination:fC(t.descriptor)}};return{impact:f,afterCritical:u}}),pC=(function(e,t){return{draggables:e.draggables,droppables:ka(e.droppables,t)}}),hC=(function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,i=no(t.client,n),o=$n(i,r),a=q({},t,{placeholder:q({},t.placeholder,{client:i}),client:i,page:o});return a}),gC=(function(e){var t=e.frame;return t||K(),t}),vC=(function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,i=r.scroll.diff.value;return t.map(function(o){var a=o.descriptor.droppableId,l=n[a],s=gC(l),c=s.scroll.diff.value,u=Ae(i,c),d=hC({draggable:o,offset:u,initialWindowScroll:r.scroll.initial});return d})}),mC=(function(e){var t=e.state,n=e.published,r=n.modified.map(function(R){var T=t.dimensions.droppables[R.droppableId],E=Ca(T,R.scroll);return E}),i=q({},t.dimensions.droppables,{},kf(r)),o=Pf(vC({additions:n.additions,updatedDroppables:i,viewport:t.viewport})),a=q({},t.dimensions.draggables,{},o);n.removals.forEach(function(R){delete a[R]});var l={droppables:i,draggables:a},s=Ke(t.impact),c=s?l.droppables[s]:null,u=l.draggables[t.critical.draggable.id],d=l.droppables[t.critical.droppable.id],f=Kf({draggable:u,home:d,draggables:a,viewport:t.viewport}),p=f.impact,h=f.afterCritical,m=c&&c.isCombineEnabled?t.impact:p,b=Hf({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:m,viewport:t.viewport,afterCritical:h}),y=q({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:b,onLiftImpact:p,dimensions:l,afterCritical:h,forceShouldAnimate:!1});if(t.phase==="COLLECTING")return y;var x=q({phase:"DROP_PENDING"},y,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1});return x}),Oo=function(t){return t.movementMode==="SNAP"},Vi=function(t,n,r){var i=pC(t.dimensions,n);return!Oo(t)||r?Br({state:t,dimensions:i}):qf({state:t,dimensions:i})};function qi(e){return e.isDragging&&e.movementMode==="SNAP"?q({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Js={phase:"IDLE",completed:null,shouldFlush:!1},bC=(function(e,t){if(e===void 0&&(e=Js),t.type==="FLUSH")return q({},Js,{shouldFlush:!0});if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&K();var n=t.payload,r=n.critical,i=n.clientSelection,o=n.viewport,a=n.dimensions,l=n.movementMode,s=a.draggables[r.draggable.id],c=a.droppables[r.droppable.id],u={selection:i,borderBoxCenter:s.client.borderBox.center,offset:ke},d={client:u,page:{selection:Ae(u.selection,o.scroll.initial),borderBoxCenter:Ae(u.selection,o.scroll.initial),offset:Ae(u.selection,o.scroll.diff.value)}},f=di(a.droppables).every(function(j){return!j.isFixedOnPage}),p=Kf({draggable:s,home:c,draggables:a.draggables,viewport:o}),h=p.impact,m=p.afterCritical,b={phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:a,initial:d,current:d,isWindowScrollAllowed:f,impact:h,afterCritical:m,onLiftImpact:h,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null};return b}if(t.type==="COLLECTION_STARTING"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&K();var y=q({phase:"COLLECTING"},e,{phase:"COLLECTING"});return y}if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||K(),mC({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;At(e)||K();var x=t.payload.client;return It(x,e.current.client.selection)?e:Br({state:e,clientSelection:x,impact:Oo(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return qi(e);At(e)||K();var R=t.payload,T=R.id,E=R.newScroll,C=e.dimensions.droppables[T];if(!C)return e;var D=Ca(C,E);return Vi(e,D,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;At(e)||K();var w=t.payload,_=w.id,I=w.isEnabled,P=e.dimensions.droppables[_];P||K(),P.isEnabled===I&&K();var L=q({},P,{isEnabled:I});return Vi(e,L,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;At(e)||K();var N=t.payload,W=N.id,O=N.isCombineEnabled,F=e.dimensions.droppables[W];F||K(),F.isCombineEnabled===O&&K();var G=q({},F,{isCombineEnabled:O});return Vi(e,G,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;At(e)||K(),e.isWindowScrollAllowed||K();var H=t.payload.newScroll;if(It(e.viewport.scroll.current,H))return qi(e);var Y=zf(e.viewport,H);return Oo(e)?qf({state:e,viewport:Y}):Br({state:e,viewport:Y})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!At(e))return e;var ee=t.payload.maxScroll;if(It(ee,e.viewport.scroll.max))return e;var J=q({},e.viewport,{scroll:q({},e.viewport.scroll,{max:ee})});return q({phase:"DRAGGING"},e,{viewport:J})}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&K();var Z=eC({state:e,type:t.type});return Z?Br({state:e,impact:Z.impact,clientSelection:Z.clientSelection,scrollJumpRequest:Z.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){var U=t.payload.reason;e.phase!=="COLLECTING"&&K();var ne=q({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:U});return ne}if(t.type==="DROP_ANIMATE"){var ie=t.payload,ce=ie.completed,B=ie.dropDuration,$=ie.newHomeClientOffset;e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||K();var k={phase:"DROP_ANIMATING",completed:ce,dropDuration:B,newHomeClientOffset:$,dimensions:e.dimensions};return k}if(t.type==="DROP_COMPLETE"){var A=t.payload.completed;return{phase:"IDLE",completed:A,shouldFlush:!1}}return e}),yC=function(t){return{type:"BEFORE_INITIAL_CAPTURE",payload:t}},xC=function(t){return{type:"LIFT",payload:t}},SC=function(t){return{type:"INITIAL_PUBLISH",payload:t}},wC=function(t){return{type:"PUBLISH_WHILE_DRAGGING",payload:t}},CC=function(){return{type:"COLLECTION_STARTING",payload:null}},IC=function(t){return{type:"UPDATE_DROPPABLE_SCROLL",payload:t}},RC=function(t){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:t}},_C=function(t){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:t}},Yf=function(t){return{type:"MOVE",payload:t}},DC=function(t){return{type:"MOVE_BY_WINDOW_SCROLL",payload:t}},TC=function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}},EC=function(){return{type:"MOVE_UP",payload:null}},kC=function(){return{type:"MOVE_DOWN",payload:null}},PC=function(){return{type:"MOVE_RIGHT",payload:null}},OC=function(){return{type:"MOVE_LEFT",payload:null}},Pa=function(){return{type:"FLUSH",payload:null}},NC=function(t){return{type:"DROP_ANIMATE",payload:t}},Oa=function(t){return{type:"DROP_COMPLETE",payload:t}},Jf=function(t){return{type:"DROP",payload:t}},AC=function(t){return{type:"DROP_PENDING",payload:t}},Xf=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},MC=(function(e){return function(t){var n=t.getState,r=t.dispatch;return function(i){return function(o){if(o.type!=="LIFT"){i(o);return}var a=o.payload,l=a.id,s=a.clientSelection,c=a.movementMode,u=n();u.phase==="DROP_ANIMATING"&&r(Oa({completed:u.completed})),n().phase!=="IDLE"&&K(),r(Pa()),r(yC({draggableId:l,movementMode:c}));var d={shouldPublishImmediately:c==="SNAP"},f={draggableId:l,scrollOptions:d},p=e.startPublishing(f),h=p.critical,m=p.dimensions,b=p.viewport;r(SC({critical:h,dimensions:m,clientSelection:s,movementMode:c,viewport:b}))}}}}),LC=(function(e){return function(){return function(t){return function(n){n.type==="INITIAL_PUBLISH"&&e.dragging(),n.type==="DROP_ANIMATE"&&e.dropping(n.payload.completed.result.reason),(n.type==="FLUSH"||n.type==="DROP_COMPLETE")&&e.resting(),t(n)}}}}),Na={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Xr={opacity:{drop:0,combining:.7},scale:{drop:.75}},Aa={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Pt=Aa.outOfTheWay+"s "+Na.outOfTheWay,$r={fluid:"opacity "+Pt,snap:"transform "+Pt+", opacity "+Pt,drop:function(t){var n=t+"s "+Na.drop;return"transform "+n+", opacity "+n},outOfTheWay:"transform "+Pt,placeholder:"height "+Pt+", width "+Pt+", margin "+Pt},Xs=function(t){return It(t,ke)?null:"translate("+t.x+"px, "+t.y+"px)"},No={moveTo:Xs,drop:function(t,n){var r=Xs(t);return r?n?r+" scale("+Xr.scale.drop+")":r:null}},Ao=Aa.minDropTime,Qf=Aa.maxDropTime,zC=Qf-Ao,Qs=1500,jC=.6,FC=(function(e){var t=e.current,n=e.destination,r=e.reason,i=Kr(t,n);if(i<=0)return Ao;if(i>=Qs)return Qf;var o=i/Qs,a=Ao+zC*o,l=r==="CANCEL"?a*jC:a;return Number(l.toFixed(2))}),BC=(function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,o=e.afterCritical,a=r.draggables,l=r.droppables,s=Ke(t),c=s?l[s]:null,u=l[n.descriptor.droppableId],d=Vf({impact:t,draggable:n,draggables:a,afterCritical:o,droppable:c||u,viewport:i}),f=qe(d,n.client.borderBox.center);return f}),$C=(function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,o=e.viewport,a=e.onLiftImpact;if(!r.at||n!=="DROP"){var l=Uf({draggables:t,impact:a,destination:i,viewport:o,forceShouldAnimate:!0});return{impact:l,didDropInsideDroppable:!1}}if(r.at.type==="REORDER")return{impact:r,didDropInsideDroppable:!0};var s=q({},r,{displaced:Yr});return{impact:s,didDropInsideDroppable:!0}}),GC=(function(e){var t=e.getState,n=e.dispatch;return function(r){return function(i){if(i.type!=="DROP"){r(i);return}var o=t(),a=i.payload.reason;if(o.phase==="COLLECTING"){n(AC({reason:a}));return}if(o.phase!=="IDLE"){var l=o.phase==="DROP_PENDING"&&o.isWaiting;l&&K(),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||K();var s=o.critical,c=o.dimensions,u=c.draggables[o.critical.draggable.id],d=$C({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),f=d.impact,p=d.didDropInsideDroppable,h=p?Ra(f):null,m=p?fi(f):null,b={index:s.draggable.index,droppableId:s.droppable.id},y={draggableId:u.descriptor.id,type:u.descriptor.type,source:b,reason:a,mode:o.movementMode,destination:h,combine:m},x=BC({impact:f,draggable:u,dimensions:c,viewport:o.viewport,afterCritical:o.afterCritical}),R={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:f},T=!It(o.current.client.offset,x)||!!y.combine;if(!T){n(Oa({completed:R}));return}var E=FC({current:o.current.client.offset,destination:x,reason:a}),C={newHomeClientOffset:x,dropDuration:E,completed:R};n(NC(C))}}}}),Zf=(function(){return{x:window.pageXOffset,y:window.pageYOffset}});function WC(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(n){n.target!==window&&n.target!==window.document||e()}}}function HC(e){var t=e.onWindowScroll;function n(){t(Zf())}var r=Gr(n),i=WC(r),o=Ct;function a(){return o!==Ct}function l(){a()&&K(),o=Xe(window,[i])}function s(){a()||K(),r.cancel(),o(),o=Ct}return{start:l,stop:s,isActive:a}}var UC=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},VC=(function(e){var t=HC({onWindowScroll:function(r){e.dispatch(DC({newScroll:r}))}});return function(n){return function(r){!t.isActive()&&r.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&UC(r)&&t.stop(),n(r)}}}),qC=(function(e){var t=!1,n=!1,r=setTimeout(function(){n=!0}),i=function(a){t||n||(t=!0,e(a),clearTimeout(r))};return i.wasCalled=function(){return t},i}),KC=(function(){var e=[],t=function(o){var a=Ia(e,function(c){return c.timerId===o});a===-1&&K();var l=e.splice(a,1),s=l[0];s.callback()},n=function(o){var a=setTimeout(function(){return t(a)}),l={timerId:a,callback:o};e.push(l)},r=function(){if(e.length){var o=[].concat(e);e.length=0,o.forEach(function(a){clearTimeout(a.timerId),a.callback()})}};return{add:n,flush:r}}),YC=function(t,n){return t==null&&n==null?!0:t==null||n==null?!1:t.droppableId===n.droppableId&&t.index===n.index},JC=function(t,n){return t==null&&n==null?!0:t==null||n==null?!1:t.draggableId===n.draggableId&&t.droppableId===n.droppableId},XC=function(t,n){if(t===n)return!0;var r=t.draggable.id===n.draggable.id&&t.draggable.droppableId===n.draggable.droppableId&&t.draggable.type===n.draggable.type&&t.draggable.index===n.draggable.index,i=t.droppable.id===n.droppable.id&&t.droppable.type===n.droppable.type;return r&&i},Ir=function(t,n){n()},Sn=function(t,n){return{draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:n}},Ki=function(t,n,r,i){if(!t){r(i(n));return}var o=qC(r),a={announce:o};t(n,a),o.wasCalled()||r(i(n))},QC=(function(e,t){var n=KC(),r=null,i=function(f,p){r&&K(),Ir("onBeforeCapture",function(){var h=e().onBeforeCapture;if(h){var m={draggableId:f,mode:p};h(m)}})},o=function(f,p){r&&K(),Ir("onBeforeDragStart",function(){var h=e().onBeforeDragStart;h&&h(Sn(f,p))})},a=function(f,p){r&&K();var h=Sn(f,p);r={mode:p,lastCritical:f,lastLocation:h.source,lastCombine:null},n.add(function(){Ir("onDragStart",function(){return Ki(e().onDragStart,h,t,Mn.onDragStart)})})},l=function(f,p){var h=Ra(p),m=fi(p);r||K();var b=!XC(f,r.lastCritical);b&&(r.lastCritical=f);var y=!YC(r.lastLocation,h);y&&(r.lastLocation=h);var x=!JC(r.lastCombine,m);if(x&&(r.lastCombine=m),!(!b&&!y&&!x)){var R=q({},Sn(f,r.mode),{combine:m,destination:h});n.add(function(){Ir("onDragUpdate",function(){return Ki(e().onDragUpdate,R,t,Mn.onDragUpdate)})})}},s=function(){r||K(),n.flush()},c=function(f){r||K(),r=null,Ir("onDragEnd",function(){return Ki(e().onDragEnd,f,t,Mn.onDragEnd)})},u=function(){if(r){var f=q({},Sn(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});c(f)}};return{beforeCapture:i,beforeStart:o,start:a,update:l,flush:s,drop:c,abort:u}}),ZC=(function(e,t){var n=QC(e,t);return function(r){return function(i){return function(o){if(o.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){var a=o.payload.critical;n.beforeStart(a,o.payload.movementMode),i(o),n.start(a,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){var l=o.payload.completed.result;n.flush(),i(o),n.drop(l);return}if(i(o),o.type==="FLUSH"){n.abort();return}var s=r.getState();s.phase==="DRAGGING"&&n.update(s.critical,s.impact)}}}}),eI=(function(e){return function(t){return function(n){if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}var r=e.getState();r.phase!=="DROP_ANIMATING"&&K(),e.dispatch(Oa({completed:r.completed}))}}}),tI=(function(e){var t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return function(i){return function(o){if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&r(),i(o),o.type==="DROP_ANIMATE"){var a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var s=e.getState();s.phase==="DROP_ANIMATING"&&e.dispatch(Xf())}};n=requestAnimationFrame(function(){n=null,t=Xe(window,[a])})}}}}),rI=(function(e){return function(){return function(t){return function(n){(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)}}}}),nI=(function(e){var t=!1;return function(){return function(n){return function(r){if(r.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(r.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){t=!1;var i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}),iI=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},oI=(function(e){return function(t){return function(n){return function(r){if(iI(r)){e.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);var i=t.getState();i.phase!=="DRAGGING"&&K(),e.start(i);return}n(r),e.scroll(t.getState())}}}}),aI=(function(e){return function(t){return function(n){if(t(n),n.type==="PUBLISH_WHILE_DRAGGING"){var r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(Jf({reason:r.reason})))}}}}),lI=gg,sI=(function(e){var t=e.dimensionMarshal,n=e.focusMarshal,r=e.styleMarshal,i=e.getResponders,o=e.announce,a=e.autoScroller;return hg(bC,lI(vg(LC(r),rI(t),MC(t),GC,eI,tI,aI,oI(a),VC,nI(n),ZC(i,o))))}),Yi=function(){return{additions:{},removals:{},modified:{}}};function cI(e){var t=e.registry,n=e.callbacks,r=Yi(),i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame(function(){i=null;var u=r,d=u.additions,f=u.removals,p=u.modified,h=Object.keys(d).map(function(y){return t.draggable.getById(y).getDimension(ke)}).sort(function(y,x){return y.descriptor.index-x.descriptor.index}),m=Object.keys(p).map(function(y){var x=t.droppable.getById(y),R=x.callbacks.getScrollWhileDragging();return{droppableId:y,scroll:R}}),b={additions:h,removals:Object.keys(f),modified:m};r=Yi(),n.publish(b)}))},a=function(u){var d=u.descriptor.id;r.additions[d]=u,r.modified[u.descriptor.droppableId]=!0,r.removals[d]&&delete r.removals[d],o()},l=function(u){var d=u.descriptor;r.removals[d.id]=!0,r.modified[d.droppableId]=!0,r.additions[d.id]&&delete r.additions[d.id],o()},s=function(){i&&(cancelAnimationFrame(i),i=null,r=Yi())};return{add:a,remove:l,stop:s}}var ep=(function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,i=e.width,o=qe({x:n,y:t},{x:i,y:r}),a={x:Math.max(0,o.x),y:Math.max(0,o.y)};return a}),tp=(function(){var e=document.documentElement;return e||K(),e}),rp=(function(){var e=tp(),t=ep({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t}),uI=(function(){var e=Zf(),t=rp(),n=e.y,r=e.x,i=tp(),o=i.clientWidth,a=i.clientHeight,l=r+o,s=n+a,c=Ht({top:n,left:r,right:l,bottom:s}),u={frame:c,scroll:{initial:e,current:e,max:t,diff:{value:ke,displacement:ke}}};return u}),dI=(function(e){var t=e.critical,n=e.scrollOptions,r=e.registry,i=uI(),o=i.scroll.current,a=t.droppable,l=r.droppable.getAllByType(a.type).map(function(d){return d.callbacks.getDimensionAndWatchScroll(o,n)}),s=r.draggable.getAllByType(t.draggable.type).map(function(d){return d.getDimension(o)}),c={draggables:Pf(s),droppables:kf(l)},u={dimensions:c,critical:t,viewport:i};return u});function Zs(e,t,n){if(n.descriptor.id===t.id||n.descriptor.type!==t.type)return!1;var r=e.droppable.getById(n.descriptor.droppableId);return r.descriptor.mode==="virtual"}var fI=(function(e,t){var n=null,r=cI({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(p,h){e.droppable.exists(p)||K(),n&&t.updateDroppableIsEnabled({id:p,isEnabled:h})},o=function(p,h){n&&(e.droppable.exists(p)||K(),t.updateDroppableIsCombineEnabled({id:p,isCombineEnabled:h}))},a=function(p,h){n&&(e.droppable.exists(p)||K(),t.updateDroppableScroll({id:p,newScroll:h}))},l=function(p,h){n&&e.droppable.getById(p).callbacks.scroll(h)},s=function(){if(n){r.stop();var p=n.critical.droppable;e.droppable.getAllByType(p.type).forEach(function(h){return h.callbacks.dragStopped()}),n.unsubscribe(),n=null}},c=function(p){n||K();var h=n.critical.draggable;p.type==="ADDITION"&&Zs(e,h,p.value)&&r.add(p.value),p.type==="REMOVAL"&&Zs(e,h,p.value)&&r.remove(p.value)},u=function(p){n&&K();var h=e.draggable.getById(p.draggableId),m=e.droppable.getById(h.descriptor.droppableId),b={draggable:h.descriptor,droppable:m.descriptor},y=e.subscribe(c);return n={critical:b,unsubscribe:y},dI({critical:b,registry:e,scrollOptions:p.scrollOptions})},d={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:o,scrollDroppable:l,updateDroppableScroll:a,startPublishing:u,stopPublishing:s};return d}),np=(function(e,t){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP"}),pI=(function(e){window.scrollBy(e.x,e.y)}),hI=Ee(function(e){return di(e).filter(function(t){return!(!t.isEnabled||!t.frame)})}),gI=function(t,n){var r=kt(hI(n),function(i){return i.frame||K(),$f(i.frame.pageMarginBox)(t)});return r},vI=(function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var i=r[n];return i.frame?i:null}var o=gI(t,r);return o}),Rt={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(t){return Math.pow(t,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},mI=(function(e,t){var n=e[t.size]*Rt.startFromPercentage,r=e[t.size]*Rt.maxScrollAtPercentage,i={startScrollingFrom:n,maxScrollValueAt:r};return i}),ip=(function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,i=n-t;if(i===0)return 0;var o=r-t,a=o/i;return a}),Ma=1,bI=(function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Rt.maxPixelScroll;if(e===t.startScrollingFrom)return Ma;var n=ip({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=1-n,i=Rt.maxPixelScroll*Rt.ease(r);return Math.ceil(i)}),ec=Rt.durationDampening.accelerateAt,tc=Rt.durationDampening.stopDampeningAt,yI=(function(e,t){var n=t,r=tc,i=Date.now(),o=i-n;if(o>=tc)return e;if(o<ec)return Ma;var a=ip({startOfRange:ec,endOfRange:r,current:o}),l=e*Rt.ease(a);return Math.ceil(l)}),rc=(function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,i=e.shouldUseTimeDampening,o=bI(t,n);return o===0?0:i?Math.max(yI(o,r),Ma):o}),nc=(function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=mI(t,i),l=n[i.end]<n[i.start];return l?rc({distanceToEdge:n[i.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o}):-1*rc({distanceToEdge:n[i.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o})}),xI=(function(e){var t=e.container,n=e.subject,r=e.proposedScroll,i=n.height>t.height,o=n.width>t.width;return!o&&!i?r:o&&i?null:{x:o?0:r.x,y:i?0:r.y}}),SI=Tf(function(e){return e===0?0:e}),op=(function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,o=e.shouldUseTimeDampening,a={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},l=nc({container:n,distanceToEdges:a,dragStartTime:t,axis:_a,shouldUseTimeDampening:o}),s=nc({container:n,distanceToEdges:a,dragStartTime:t,axis:Af,shouldUseTimeDampening:o}),c=SI({x:s,y:l});if(It(c,ke))return null;var u=xI({container:n,subject:r,proposedScroll:c});return u?It(u,ke)?null:u:null}),wI=Tf(function(e){return e===0?0:e>0?1:-1}),La=(function(){var e=function(n,r){return n<0?n:n>r?n-r:0};return function(t){var n=t.current,r=t.max,i=t.change,o=Ae(n,i),a={x:e(o.x,r.x),y:e(o.y,r.y)};return It(a,ke)?null:a}})(),ap=function(t){var n=t.max,r=t.current,i=t.change,o={x:Math.max(r.x,n.x),y:Math.max(r.y,n.y)},a=wI(i),l=La({max:o,current:r,change:a});return!l||a.x!==0&&l.x===0||a.y!==0&&l.y===0},za=function(t,n){return ap({current:t.scroll.current,max:t.scroll.max,change:n})},CI=function(t,n){if(!za(t,n))return null;var r=t.scroll.max,i=t.scroll.current;return La({current:i,max:r,change:n})},ja=function(t,n){var r=t.frame;return r?ap({current:r.scroll.current,max:r.scroll.max,change:n}):!1},II=function(t,n){var r=t.frame;return!r||!ja(t,n)?null:La({current:r.scroll.current,max:r.scroll.max,change:n})},RI=(function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=op({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return a&&za(t,a)?a:null}),_I=(function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var l=op({dragStartTime:i,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:o});return l&&ja(t,l)?l:null}),ic=(function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id],s=l.page.marginBox;if(t.isWindowScrollAllowed){var c=t.viewport,u=RI({dragStartTime:n,viewport:c,subject:s,center:a,shouldUseTimeDampening:r});if(u){i(u);return}}var d=vI({center:a,destination:Ke(t.impact),droppables:t.dimensions.droppables});if(d){var f=_I({dragStartTime:n,droppable:d,subject:s,center:a,shouldUseTimeDampening:r});f&&o(d.descriptor.id,f)}}),DI=(function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=Gr(t),i=Gr(n),o=null,a=function(u){o||K();var d=o,f=d.shouldUseTimeDampening,p=d.dragStartTime;ic({state:u,scrollWindow:r,scrollDroppable:i,dragStartTime:p,shouldUseTimeDampening:f})},l=function(u){o&&K();var d=Date.now(),f=!1,p=function(){f=!0};ic({state:u,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:p,scrollDroppable:p}),o={dragStartTime:d,shouldUseTimeDampening:f},f&&a(u)},s=function(){o&&(r.cancel(),i.cancel(),o=null)};return{start:l,stop:s,scroll:a}}),TI=(function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,i=function(c,u){var d=Ae(c.current.client.selection,u);t({client:d})},o=function(c,u){if(!ja(c,u))return u;var d=II(c,u);if(!d)return n(c.descriptor.id,u),null;var f=qe(u,d);n(c.descriptor.id,f);var p=qe(u,f);return p},a=function(c,u,d){if(!c||!za(u,d))return d;var f=CI(u,d);if(!f)return r(d),null;var p=qe(d,f);r(p);var h=qe(d,p);return h},l=function(c){var u=c.scrollJumpRequest;if(u){var d=Ke(c.impact);d||K();var f=o(c.dimensions.droppables[d],u);if(f){var p=c.viewport,h=a(c.isWindowScrollAllowed,p,f);h&&i(c,h)}}};return l}),EI=(function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,i=DI({scrollWindow:n,scrollDroppable:t}),o=TI({move:r,scrollWindow:n,scrollDroppable:t}),a=function(c){if(c.phase==="DRAGGING"){if(c.movementMode==="FLUID"){i.scroll(c);return}c.scrollJumpRequest&&o(c)}},l={scroll:a,start:i.start,stop:i.stop};return l}),ur="data-rbd",dr=(function(){var e=ur+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}})(),Mo=(function(){var e=ur+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}})(),kI=(function(){var e=ur+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}})(),oc={contextId:ur+"-scroll-container-context-id"},PI=function(t){return function(n){return"["+n+'="'+t+'"]'}},Rr=function(t,n){return t.map(function(r){var i=r.styles[n];return i?r.selector+" { "+i+" }":""}).join(" ")},OI="pointer-events: none;",NI=(function(e){var t=PI(e),n=(function(){var l=`
456
- cursor: -webkit-grab;
457
- cursor: grab;
458
- `;return{selector:t(dr.contextId),styles:{always:`
459
- -webkit-touch-callout: none;
460
- -webkit-tap-highlight-color: rgba(0,0,0,0);
461
- touch-action: manipulation;
462
- `,resting:l,dragging:OI,dropAnimating:l}}})(),r=(function(){var l=`
463
- transition: `+$r.outOfTheWay+`;
464
- `;return{selector:t(Mo.contextId),styles:{dragging:l,dropAnimating:l,userCancel:l}}})(),i={selector:t(kI.contextId),styles:{always:"overflow-anchor: none;"}},o={selector:"body",styles:{dragging:`
465
- cursor: grabbing;
466
- cursor: -webkit-grabbing;
467
- user-select: none;
468
- -webkit-user-select: none;
469
- -moz-user-select: none;
470
- -ms-user-select: none;
471
- overflow-anchor: none;
472
- `}},a=[r,n,i,o];return{always:Rr(a,"always"),resting:Rr(a,"resting"),dragging:Rr(a,"dragging"),dropAnimating:Rr(a,"dropAnimating"),userCancel:Rr(a,"userCancel")}}),Ye=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?v.useLayoutEffect:v.useEffect,Ji=function(){var t=document.querySelector("head");return t||K(),t},ac=function(t){var n=document.createElement("style");return t&&n.setAttribute("nonce",t),n.type="text/css",n};function AI(e,t){var n=de(function(){return NI(e)},[e]),r=v.useRef(null),i=v.useRef(null),o=oe(Ee(function(d){var f=i.current;f||K(),f.textContent=d}),[]),a=oe(function(d){var f=r.current;f||K(),f.textContent=d},[]);Ye(function(){!r.current&&!i.current||K();var d=ac(t),f=ac(t);return r.current=d,i.current=f,d.setAttribute(ur+"-always",e),f.setAttribute(ur+"-dynamic",e),Ji().appendChild(d),Ji().appendChild(f),a(n.always),o(n.resting),function(){var p=function(m){var b=m.current;b||K(),Ji().removeChild(b),m.current=null};p(r),p(i)}},[t,a,o,n.always,n.resting,e]);var l=oe(function(){return o(n.dragging)},[o,n.dragging]),s=oe(function(d){if(d==="DROP"){o(n.dropAnimating);return}o(n.userCancel)},[o,n.dropAnimating,n.userCancel]),c=oe(function(){i.current&&o(n.resting)},[o,n.resting]),u=de(function(){return{dragging:l,dropping:s,resting:c}},[l,s,c]);return u}var lp=(function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window});function gi(e){return e instanceof lp(e).HTMLElement}function MI(e,t){var n="["+dr.contextId+'="'+e+'"]',r=Ef(document.querySelectorAll(n));if(!r.length)return null;var i=kt(r,function(o){return o.getAttribute(dr.draggableId)===t});return!i||!gi(i)?null:i}function LI(e){var t=v.useRef({}),n=v.useRef(null),r=v.useRef(null),i=v.useRef(!1),o=oe(function(f,p){var h={id:f,focus:p};return t.current[f]=h,function(){var b=t.current,y=b[f];y!==h&&delete b[f]}},[]),a=oe(function(f){var p=MI(e,f);p&&p!==document.activeElement&&p.focus()},[e]),l=oe(function(f,p){n.current===f&&(n.current=p)},[]),s=oe(function(){r.current||i.current&&(r.current=requestAnimationFrame(function(){r.current=null;var f=n.current;f&&a(f)}))},[a]),c=oe(function(f){n.current=null;var p=document.activeElement;p&&p.getAttribute(dr.draggableId)===f&&(n.current=f)},[]);Ye(function(){return i.current=!0,function(){i.current=!1;var f=r.current;f&&cancelAnimationFrame(f)}},[]);var u=de(function(){return{register:o,tryRecordFocus:c,tryRestoreFocusRecorded:s,tryShiftRecord:l}},[o,c,s,l]);return u}function zI(){var e={draggables:{},droppables:{}},t=[];function n(d){return t.push(d),function(){var p=t.indexOf(d);p!==-1&&t.splice(p,1)}}function r(d){t.length&&t.forEach(function(f){return f(d)})}function i(d){return e.draggables[d]||null}function o(d){var f=i(d);return f||K(),f}var a={register:function(f){e.draggables[f.descriptor.id]=f,r({type:"ADDITION",value:f})},update:function(f,p){var h=e.draggables[p.descriptor.id];h&&h.uniqueId===f.uniqueId&&(delete e.draggables[p.descriptor.id],e.draggables[f.descriptor.id]=f)},unregister:function(f){var p=f.descriptor.id,h=i(p);h&&f.uniqueId===h.uniqueId&&(delete e.draggables[p],r({type:"REMOVAL",value:f}))},getById:o,findById:i,exists:function(f){return!!i(f)},getAllByType:function(f){return Jn(e.draggables).filter(function(p){return p.descriptor.type===f})}};function l(d){return e.droppables[d]||null}function s(d){var f=l(d);return f||K(),f}var c={register:function(f){e.droppables[f.descriptor.id]=f},unregister:function(f){var p=l(f.descriptor.id);p&&f.uniqueId===p.uniqueId&&delete e.droppables[f.descriptor.id]},getById:s,findById:l,exists:function(f){return!!l(f)},getAllByType:function(f){return Jn(e.droppables).filter(function(p){return p.descriptor.type===f})}};function u(){e.draggables={},e.droppables={},t.length=0}return{draggable:a,droppable:c,subscribe:n,clean:u}}function jI(){var e=de(zI,[]);return v.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var Fa=Q.createContext(null),Qn=(function(){var e=document.body;return e||K(),e}),FI={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},BI=function(t){return"rbd-announcement-"+t};function $I(e){var t=de(function(){return BI(e)},[e]),n=v.useRef(null);v.useEffect(function(){var o=document.createElement("div");return n.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),q(o.style,FI),Qn().appendChild(o),function(){setTimeout(function(){var s=Qn();s.contains(o)&&s.removeChild(o),o===n.current&&(n.current=null)})}},[t]);var r=oe(function(i){var o=n.current;if(o){o.textContent=i;return}},[]);return r}var GI=0,WI={separator:"::"};function Ba(e,t){return t===void 0&&(t=WI),de(function(){return""+e+t.separator+GI++},[t.separator,e])}function HI(e){var t=e.contextId,n=e.uniqueId;return"rbd-hidden-text-"+t+"-"+n}function UI(e){var t=e.contextId,n=e.text,r=Ba("hidden-text",{separator:"-"}),i=de(function(){return HI({contextId:t,uniqueId:r})},[r,t]);return v.useEffect(function(){var a=document.createElement("div");return a.id=i,a.textContent=n,a.style.display="none",Qn().appendChild(a),function(){var s=Qn();s.contains(a)&&s.removeChild(a)}},[i,n]),i}var vi=Q.createContext(null);function sp(e){var t=v.useRef(e);return v.useEffect(function(){t.current=e}),t}function VI(){var e=null;function t(){return!!e}function n(a){return a===e}function r(a){e&&K();var l={abandon:a};return e=l,l}function i(){e||K(),e=null}function o(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:n,claim:r,release:i,tryAbandon:o}}var qI=9,KI=13,$a=27,cp=32,YI=33,JI=34,XI=35,QI=36,ZI=37,eR=38,tR=39,rR=40,wn,nR=(wn={},wn[KI]=!0,wn[qI]=!0,wn),up=(function(e){nR[e.keyCode]&&e.preventDefault()}),mi=(function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],n=kt(t,function(r){return"on"+r in document});return n||e})(),dp=0,lc=5;function iR(e,t){return Math.abs(t.x-e.x)>=lc||Math.abs(t.y-e.y)>=lc}var sc={type:"IDLE"};function oR(e){var t=e.cancel,n=e.completed,r=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(a){var l=a.button,s=a.clientX,c=a.clientY;if(l===dp){var u={x:s,y:c},d=r();if(d.type==="DRAGGING"){a.preventDefault(),d.actions.move(u);return}d.type!=="PENDING"&&K();var f=d.point;if(iR(f,u)){a.preventDefault();var p=d.actions.fluidLift(u);i({type:"DRAGGING",actions:p})}}}},{eventName:"mouseup",fn:function(a){var l=r();if(l.type!=="DRAGGING"){t();return}a.preventDefault(),l.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:function(a){r().type==="DRAGGING"&&a.preventDefault(),t()}},{eventName:"keydown",fn:function(a){var l=r();if(l.type==="PENDING"){t();return}if(a.keyCode===$a){a.preventDefault(),t();return}up(a)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:function(a){var l=r();if(l.type==="IDLE"&&K(),l.actions.shouldRespectForcePress()){t();return}a.preventDefault()}},{eventName:mi,fn:t}]}function aR(e){var t=v.useRef(sc),n=v.useRef(Ct),r=de(function(){return{eventName:"mousedown",fn:function(d){if(!d.defaultPrevented&&d.button===dp&&!(d.ctrlKey||d.metaKey||d.shiftKey||d.altKey)){var f=e.findClosestDraggableId(d);if(f){var p=e.tryGetLock(f,a,{sourceEvent:d});if(p){d.preventDefault();var h={x:d.clientX,y:d.clientY};n.current(),c(p,h)}}}}}},[e]),i=de(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(d){if(!d.defaultPrevented){var f=e.findClosestDraggableId(d);if(f){var p=e.findOptionsForDraggable(f);p&&(p.shouldRespectForcePress||e.canGetLock(f)&&d.preventDefault())}}}}},[e]),o=oe(function(){var d={passive:!1,capture:!0};n.current=Xe(window,[i,r],d)},[i,r]),a=oe(function(){var u=t.current;u.type!=="IDLE"&&(t.current=sc,n.current(),o())},[o]),l=oe(function(){var u=t.current;a(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[a]),s=oe(function(){var d={capture:!0,passive:!1},f=oR({cancel:l,completed:a,getPhase:function(){return t.current},setPhase:function(h){t.current=h}});n.current=Xe(window,f,d)},[l,a]),c=oe(function(d,f){t.current.type!=="IDLE"&&K(),t.current={type:"PENDING",point:f,actions:d},s()},[s]);Ye(function(){return o(),function(){n.current()}},[o])}var Jt;function lR(){}var sR=(Jt={},Jt[JI]=!0,Jt[YI]=!0,Jt[QI]=!0,Jt[XI]=!0,Jt);function cR(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:function(o){if(o.keyCode===$a){o.preventDefault(),n();return}if(o.keyCode===cp){o.preventDefault(),r();return}if(o.keyCode===rR){o.preventDefault(),e.moveDown();return}if(o.keyCode===eR){o.preventDefault(),e.moveUp();return}if(o.keyCode===tR){o.preventDefault(),e.moveRight();return}if(o.keyCode===ZI){o.preventDefault(),e.moveLeft();return}if(sR[o.keyCode]){o.preventDefault();return}up(o)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:mi,fn:n}]}function uR(e){var t=v.useRef(lR),n=de(function(){return{eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==cp)return;var a=e.findClosestDraggableId(o);if(!a)return;var l=e.tryGetLock(a,u,{sourceEvent:o});if(!l)return;o.preventDefault();var s=!0,c=l.snapLift();t.current();function u(){s||K(),s=!1,t.current(),r()}t.current=Xe(window,cR(c,u),{capture:!0,passive:!1})}}},[e]),r=oe(function(){var o={passive:!1,capture:!0};t.current=Xe(window,[n],o)},[n]);Ye(function(){return r(),function(){t.current()}},[r])}var Xi={type:"IDLE"},dR=120,fR=.15;function pR(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(i){i.preventDefault()}},{eventName:"keydown",fn:function(i){if(n().type!=="DRAGGING"){t();return}i.keyCode===$a&&i.preventDefault(),t()}},{eventName:mi,fn:t}]}function hR(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(o){var a=r();if(a.type!=="DRAGGING"){t();return}a.hasMoved=!0;var l=o.touches[0],s=l.clientX,c=l.clientY,u={x:s,y:c};o.preventDefault(),a.actions.move(u)}},{eventName:"touchend",fn:function(o){var a=r();if(a.type!=="DRAGGING"){t();return}o.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:function(o){if(r().type!=="DRAGGING"){t();return}o.preventDefault(),t()}},{eventName:"touchforcechange",fn:function(o){var a=r();a.type==="IDLE"&&K();var l=o.touches[0];if(l){var s=l.force>=fR;if(s){var c=a.actions.shouldRespectForcePress();if(a.type==="PENDING"){c&&t();return}if(c){if(a.hasMoved){o.preventDefault();return}t();return}o.preventDefault()}}}},{eventName:mi,fn:t}]}function gR(e){var t=v.useRef(Xi),n=v.useRef(Ct),r=oe(function(){return t.current},[]),i=oe(function(p){t.current=p},[]),o=de(function(){return{eventName:"touchstart",fn:function(p){if(!p.defaultPrevented){var h=e.findClosestDraggableId(p);if(h){var m=e.tryGetLock(h,l,{sourceEvent:p});if(m){var b=p.touches[0],y=b.clientX,x=b.clientY,R={x:y,y:x};n.current(),d(m,R)}}}}}},[e]),a=oe(function(){var p={capture:!0,passive:!1};n.current=Xe(window,[o],p)},[o]),l=oe(function(){var f=t.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),i(Xi),n.current(),a())},[a,i]),s=oe(function(){var f=t.current;l(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[l]),c=oe(function(){var p={capture:!0,passive:!1},h={cancel:s,completed:l,getPhase:r},m=Xe(window,hR(h),p),b=Xe(window,pR(h),p);n.current=function(){m(),b()}},[s,r,l]),u=oe(function(){var p=r();p.type!=="PENDING"&&K();var h=p.actions.fluidLift(p.point);i({type:"DRAGGING",actions:h,hasMoved:!1})},[r,i]),d=oe(function(p,h){r().type!=="IDLE"&&K();var m=setTimeout(u,dR);i({type:"PENDING",point:h,actions:p,longPressTimerId:m}),c()},[c,r,i,u]);Ye(function(){return a(),function(){n.current();var h=r();h.type==="PENDING"&&(clearTimeout(h.longPressTimerId),i(Xi))}},[r,a,i]),Ye(function(){var p=Xe(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return p},[])}var vR={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function fp(e,t){if(t==null)return!1;var n=!!vR[t.tagName.toLowerCase()];if(n)return!0;var r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:fp(e,t.parentElement)}function mR(e,t){var n=t.target;return gi(n)?fp(e,n):!1}var bR=(function(e){return Ht(e.getBoundingClientRect()).center});function yR(e){return e instanceof lp(e).Element}var xR=(function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],n=kt(t,function(r){return r in Element.prototype});return n||e})();function pp(e,t){return e==null?null:e[xR](t)?e:pp(e.parentElement,t)}function SR(e,t){return e.closest?e.closest(t):pp(e,t)}function wR(e){return"["+dr.contextId+'="'+e+'"]'}function CR(e,t){var n=t.target;if(!yR(n))return null;var r=wR(e),i=SR(n,r);return!i||!gi(i)?null:i}function IR(e,t){var n=CR(e,t);return n?n.getAttribute(dr.draggableId):null}function RR(e,t){var n="["+Mo.contextId+'="'+e+'"]',r=Ef(document.querySelectorAll(n)),i=kt(r,function(o){return o.getAttribute(Mo.id)===t});return!i||!gi(i)?null:i}function _R(e){e.preventDefault()}function Cn(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!(!r()||t!==n)}function hp(e){var t=e.lockAPI,n=e.store,r=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=r.draggable.findById(i);return!(!o||!o.options.isEnabled||!np(n.getState(),i))}function DR(e){var t=e.lockAPI,n=e.contextId,r=e.store,i=e.registry,o=e.draggableId,a=e.forceSensorStop,l=e.sourceEvent,s=hp({lockAPI:t,store:r,registry:i,draggableId:o});if(!s)return null;var c=i.draggable.getById(o),u=RR(n,c.descriptor.id);if(!u||l&&!c.options.canDragInteractiveElements&&mR(u,l))return null;var d=t.claim(a||Ct),f="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return t.isActive(d)}function m(C,D){Cn({expected:C,phase:f,isLockActive:h,shouldWarn:!0})&&r.dispatch(D())}var b=m.bind(null,"DRAGGING");function y(C){function D(){t.release(),f="COMPLETED"}f!=="PRE_DRAG"&&(D(),f!=="PRE_DRAG"&&K()),r.dispatch(xC(C.liftActionArgs)),f="DRAGGING";function w(_,I){if(I===void 0&&(I={shouldBlockNextClick:!1}),C.cleanup(),I.shouldBlockNextClick){var P=Xe(window,[{eventName:"click",fn:_R,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(P)}D(),r.dispatch(Jf({reason:_}))}return q({isActive:function(){return Cn({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(I){return w("DROP",I)},cancel:function(I){return w("CANCEL",I)}},C.actions)}function x(C){var D=Gr(function(_){b(function(){return Yf({client:_})})}),w=y({liftActionArgs:{id:o,clientSelection:C,movementMode:"FLUID"},cleanup:function(){return D.cancel()},actions:{move:D}});return q({},w,{move:D})}function R(){var C={moveUp:function(){return b(EC)},moveRight:function(){return b(PC)},moveDown:function(){return b(kC)},moveLeft:function(){return b(OC)}};return y({liftActionArgs:{id:o,clientSelection:bR(u),movementMode:"SNAP"},cleanup:Ct,actions:C})}function T(){var C=Cn({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0});C&&t.release()}var E={isActive:function(){return Cn({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:x,snapLift:R,abort:T};return E}var TR=[aR,uR,gR];function ER(e){var t=e.contextId,n=e.store,r=e.registry,i=e.customSensors,o=e.enableDefaultSensors,a=[].concat(o?TR:[],i||[]),l=v.useState(function(){return VI()})[0],s=oe(function(x,R){x.isDragging&&!R.isDragging&&l.tryAbandon()},[l]);Ye(function(){var x=n.getState(),R=n.subscribe(function(){var T=n.getState();s(x,T),x=T});return R},[l,n,s]),Ye(function(){return l.tryAbandon},[l.tryAbandon]);for(var c=oe(function(y){return hp({lockAPI:l,registry:r,store:n,draggableId:y})},[l,r,n]),u=oe(function(y,x,R){return DR({lockAPI:l,registry:r,contextId:t,store:n,draggableId:y,forceSensorStop:x,sourceEvent:R&&R.sourceEvent?R.sourceEvent:null})},[t,l,r,n]),d=oe(function(y){return IR(t,y)},[t]),f=oe(function(y){var x=r.draggable.findById(y);return x?x.options:null},[r.draggable]),p=oe(function(){l.isClaimed()&&(l.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(Pa()))},[l,n]),h=oe(l.isClaimed,[l]),m=de(function(){return{canGetLock:c,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:h}},[c,u,d,f,p,h]),b=0;b<a.length;b++)a[b](m)}var kR=function(t){return{onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}};function _r(e){return e.current||K(),e.current}function PR(e){var t=e.contextId,n=e.setCallbacks,r=e.sensors,i=e.nonce,o=e.dragHandleUsageInstructions,a=v.useRef(null),l=sp(e),s=oe(function(){return kR(l.current)},[l]),c=$I(t),u=UI({contextId:t,text:o}),d=AI(t,i),f=oe(function(_){_r(a).dispatch(_)},[]),p=de(function(){return tl({publishWhileDragging:wC,updateDroppableScroll:IC,updateDroppableIsEnabled:RC,updateDroppableIsCombineEnabled:_C,collectionStarting:CC},f)},[f]),h=jI(),m=de(function(){return fI(h,p)},[h,p]),b=de(function(){return EI(q({scrollWindow:pI,scrollDroppable:m.scrollDroppable},tl({move:Yf},f)))},[m.scrollDroppable,f]),y=LI(t),x=de(function(){return sI({announce:c,autoScroller:b,dimensionMarshal:m,focusMarshal:y,getResponders:s,styleMarshal:d})},[c,b,m,y,s,d]);a.current=x;var R=oe(function(){var _=_r(a),I=_.getState();I.phase!=="IDLE"&&_.dispatch(Pa())},[]),T=oe(function(){var _=_r(a).getState();return _.isDragging||_.phase==="DROP_ANIMATING"},[]),E=de(function(){return{isDragging:T,tryAbort:R}},[T,R]);n(E);var C=oe(function(_){return np(_r(a).getState(),_)},[]),D=oe(function(){return At(_r(a).getState())},[]),w=de(function(){return{marshal:m,focus:y,contextId:t,canLift:C,isMovementAllowed:D,dragHandleUsageInstructionsId:u,registry:h}},[t,m,u,y,C,D,h]);return ER({contextId:t,store:x,registry:h,customSensors:r,enableDefaultSensors:e.enableDefaultSensors!==!1}),v.useEffect(function(){return R},[R]),Q.createElement(vi.Provider,{value:w},Q.createElement(DS,{context:Fa,store:x},e.children))}var OR=0;function NR(){return de(function(){return""+OR++},[])}function AR(e){var t=NR(),n=e.dragHandleUsageInstructions||Mn.dragHandleUsageInstructions;return Q.createElement(uw,null,function(r){return Q.createElement(PR,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)})}var gp=function(t){return function(n){return t===n}},MR=gp("scroll"),LR=gp("auto"),cc=function(t,n){return n(t.overflowX)||n(t.overflowY)},zR=function(t){var n=window.getComputedStyle(t),r={overflowX:n.overflowX,overflowY:n.overflowY};return cc(r,MR)||cc(r,LR)},jR=function(){return!1},FR=function e(t){return t==null?null:t===document.body?jR()?t:null:t===document.documentElement?null:zR(t)?t:e(t.parentElement)},Lo=(function(e){return{x:e.scrollLeft,y:e.scrollTop}}),BR=function e(t){if(!t)return!1;var n=window.getComputedStyle(t);return n.position==="fixed"?!0:e(t.parentElement)},$R=(function(e){var t=FR(e),n=BR(e);return{closestScrollable:t,isFixedOnPage:n}}),GR=(function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,l=e.page,s=e.closest,c=(function(){if(!s)return null;var p=s.scrollSize,h=s.client,m=ep({scrollHeight:p.scrollHeight,scrollWidth:p.scrollWidth,height:h.paddingBox.height,width:h.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:h,scrollSize:p,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:m,diff:{value:ke,displacement:ke}}}})(),u=o==="vertical"?_a:Af,d=cr({page:l,withPlaceholder:null,axis:u,frame:c}),f={descriptor:t,isCombineEnabled:r,isFixedOnPage:i,axis:u,isEnabled:n,client:a,page:l,frame:c,subject:d};return f}),WR=function(t,n){var r=Hc(t);if(!n||t!==n)return r;var i=r.paddingBox.top-n.scrollTop,o=r.paddingBox.left-n.scrollLeft,a=i+n.scrollHeight,l=o+n.scrollWidth,s={top:i,right:l,bottom:a,left:o},c=Uc(s,r.border),u=fg({borderBox:c,margin:r.margin,border:r.border,padding:r.padding});return u},HR=(function(e){var t=e.ref,n=e.descriptor,r=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,l=e.isCombineEnabled,s=e.shouldClipSubject,c=r.closestScrollable,u=WR(t,c),d=$n(u,i),f=(function(){if(!c)return null;var h=Hc(c),m={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:h,page:$n(h,i),scroll:Lo(c),scrollSize:m,shouldClipSubject:s}})(),p=GR({descriptor:n,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:r.isFixedOnPage,direction:o,client:u,page:d,closest:f});return p}),UR={passive:!1},VR={passive:!0},uc=(function(e){return e.shouldPublishImmediately?UR:VR});function Zn(e){var t=v.useContext(e);return t||K(),t}var In=function(t){return t&&t.env.closestScrollable||null};function qR(e){var t=v.useRef(null),n=Zn(vi),r=Ba("droppable"),i=n.registry,o=n.marshal,a=sp(e),l=de(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),s=v.useRef(l),c=de(function(){return Ee(function(T,E){t.current||K();var C={x:T,y:E};o.updateDroppableScroll(l.id,C)})},[l.id,o]),u=oe(function(){var T=t.current;return!T||!T.env.closestScrollable?ke:Lo(T.env.closestScrollable)},[]),d=oe(function(){var T=u();c(T.x,T.y)},[u,c]),f=de(function(){return Gr(d)},[d]),p=oe(function(){var T=t.current,E=In(T);T&&E||K();var C=T.scrollOptions;if(C.shouldPublishImmediately){d();return}f()},[f,d]),h=oe(function(T,E){t.current&&K();var C=a.current,D=C.getDroppableRef();D||K();var w=$R(D),_={ref:D,descriptor:l,env:w,scrollOptions:E};t.current=_;var I=HR({ref:D,descriptor:l,env:w,windowScroll:T,direction:C.direction,isDropDisabled:C.isDropDisabled,isCombineEnabled:C.isCombineEnabled,shouldClipSubject:!C.ignoreContainerClipping}),P=w.closestScrollable;return P&&(P.setAttribute(oc.contextId,n.contextId),P.addEventListener("scroll",p,uc(_.scrollOptions))),I},[n.contextId,l,p,a]),m=oe(function(){var T=t.current,E=In(T);return T&&E||K(),Lo(E)},[]),b=oe(function(){var T=t.current;T||K();var E=In(T);t.current=null,E&&(f.cancel(),E.removeAttribute(oc.contextId),E.removeEventListener("scroll",p,uc(T.scrollOptions)))},[p,f]),y=oe(function(T){var E=t.current;E||K();var C=In(E);C||K(),C.scrollTop+=T.y,C.scrollLeft+=T.x},[]),x=de(function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:m,dragStopped:b,scroll:y}},[b,h,m,y]),R=de(function(){return{uniqueId:r,descriptor:l,callbacks:x}},[x,l,r]);Ye(function(){return s.current=R.descriptor,i.droppable.register(R),function(){t.current&&b(),i.droppable.unregister(R)}},[x,l,b,R,o,i.droppable]),Ye(function(){t.current&&o.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),Ye(function(){t.current&&o.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function Qi(){}var dc={width:0,height:0,margin:vw},KR=function(t){var n=t.isAnimatingOpenOnMount,r=t.placeholder,i=t.animate;return n||i==="close"?dc:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}},YR=function(t){var n=t.isAnimatingOpenOnMount,r=t.placeholder,i=t.animate,o=KR({isAnimatingOpenOnMount:n,placeholder:r,animate:i});return{display:r.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?$r.placeholder:null}};function JR(e){var t=v.useRef(null),n=oe(function(){t.current&&(clearTimeout(t.current),t.current=null)},[]),r=e.animate,i=e.onTransitionEnd,o=e.onClose,a=e.contextId,l=v.useState(e.animate==="open"),s=l[0],c=l[1];v.useEffect(function(){return s?r!=="open"?(n(),c(!1),Qi):t.current?Qi:(t.current=setTimeout(function(){t.current=null,c(!1)}),n):Qi},[r,s,n]);var u=oe(function(f){f.propertyName==="height"&&(i(),r==="close"&&o())},[r,o,i]),d=YR({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return Q.createElement(e.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":a,onTransitionEnd:u,ref:e.innerRef})}var XR=Q.memo(JR),Ga=Q.createContext(null),QR=(function(e){ri(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o))||this,r.state={isVisible:!!r.props.on,data:r.props.on,animate:r.props.shouldAnimate&&r.props.on?"open":"none"},r.onClose=function(){r.state.animate==="close"&&r.setState({isVisible:!1})},r}t.getDerivedStateFromProps=function(i,o){return i.shouldAnimate?i.on?{isVisible:!0,data:i.on,animate:"open"}:o.isVisible?{isVisible:!0,data:o.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!i.on,data:i.on,animate:"none"}};var n=t.prototype;return n.render=function(){if(!this.state.isVisible)return null;var i={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(i)},t})(Q.PureComponent),fc={dragging:5e3,dropAnimating:4500},ZR=function(t,n){return n?$r.drop(n.duration):t?$r.snap:$r.fluid},e2=function(t,n){return t?n?Xr.opacity.drop:Xr.opacity.combining:null},t2=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function r2(e){var t=e.dimension,n=t.client,r=e.offset,i=e.combineWith,o=e.dropping,a=!!i,l=t2(e),s=!!o,c=s?No.drop(r,a):No.moveTo(r),u={position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:ZR(l,o),transform:c,opacity:e2(a,s),zIndex:s?fc.dropAnimating:fc.dragging,pointerEvents:"none"};return u}function n2(e){return{transform:No.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function i2(e){return e.type==="DRAGGING"?r2(e):n2(e)}function o2(e,t,n){n===void 0&&(n=ke);var r=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=pg(i,r),a=$n(o,n),l={client:o,tagName:t.tagName.toLowerCase(),display:r.display},s={x:o.marginBox.width,y:o.marginBox.height},c={descriptor:e,placeholder:l,displaceBy:s,client:o,page:a};return c}function a2(e){var t=Ba("draggable"),n=e.descriptor,r=e.registry,i=e.getDraggableRef,o=e.canDragInteractiveElements,a=e.shouldRespectForcePress,l=e.isEnabled,s=de(function(){return{canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:l}},[o,l,a]),c=oe(function(p){var h=i();return h||K(),o2(n,h,p)},[n,i]),u=de(function(){return{uniqueId:t,descriptor:n,options:s,getDimension:c}},[n,c,s,t]),d=v.useRef(u),f=v.useRef(!0);Ye(function(){return r.draggable.register(d.current),function(){return r.draggable.unregister(d.current)}},[r.draggable]),Ye(function(){if(f.current){f.current=!1;return}var p=d.current;d.current=u,r.draggable.update(u,p)},[u,r.draggable])}function l2(e){e.preventDefault()}function s2(e){var t=v.useRef(null),n=oe(function(_){t.current=_},[]),r=oe(function(){return t.current},[]),i=Zn(vi),o=i.contextId,a=i.dragHandleUsageInstructionsId,l=i.registry,s=Zn(Ga),c=s.type,u=s.droppableId,d=de(function(){return{id:e.draggableId,index:e.index,type:c,droppableId:u}},[e.draggableId,e.index,c,u]),f=e.children,p=e.draggableId,h=e.isEnabled,m=e.shouldRespectForcePress,b=e.canDragInteractiveElements,y=e.isClone,x=e.mapped,R=e.dropAnimationFinished;if(!y){var T=de(function(){return{descriptor:d,registry:l,getDraggableRef:r,canDragInteractiveElements:b,shouldRespectForcePress:m,isEnabled:h}},[d,l,r,b,m,h]);a2(T)}var E=de(function(){return h?{tabIndex:0,role:"button","aria-describedby":a,"data-rbd-drag-handle-draggable-id":p,"data-rbd-drag-handle-context-id":o,draggable:!1,onDragStart:l2}:null},[o,a,p,h]),C=oe(function(_){x.type==="DRAGGING"&&x.dropping&&_.propertyName==="transform"&&R()},[R,x]),D=de(function(){var _=i2(x),I=x.type==="DRAGGING"&&x.dropping?C:null,P={innerRef:n,draggableProps:{"data-rbd-draggable-context-id":o,"data-rbd-draggable-id":p,style:_,onTransitionEnd:I},dragHandleProps:E};return P},[o,E,p,x,C,n]),w=de(function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}},[d.droppableId,d.id,d.index,d.type]);return f(D,x.snapshot,w)}var vp=(function(e,t){return e===t}),mp=(function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null}),c2=function(t){return t.combine?t.combine.draggableId:null},u2=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function d2(){var e=Ee(function(i,o){return{x:i,y:o}}),t=Ee(function(i,o,a,l,s){return{isDragging:!0,isClone:o,isDropAnimating:!!s,dropAnimation:s,mode:i,draggingOver:a,combineWith:l,combineTargetFor:null}}),n=Ee(function(i,o,a,l,s,c,u){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:c,mode:o,offset:i,dimension:a,forceShouldAnimate:u,snapshot:t(o,l,s,c,null)}}}),r=function(o,a){if(o.isDragging){if(o.critical.draggable.id!==a.draggableId)return null;var l=o.current.client.offset,s=o.dimensions.draggables[a.draggableId],c=Ke(o.impact),u=u2(o.impact),d=o.forceShouldAnimate;return n(e(l.x,l.y),o.movementMode,s,a.isClone,c,u,d)}if(o.phase==="DROP_ANIMATING"){var f=o.completed;if(f.result.draggableId!==a.draggableId)return null;var p=a.isClone,h=o.dimensions.draggables[a.draggableId],m=f.result,b=m.mode,y=mp(m),x=c2(m),R=o.dropDuration,T={duration:R,curve:Na.drop,moveTo:o.newHomeClientOffset,opacity:x?Xr.opacity.drop:null,scale:x?Xr.scale.drop:null};return{mapped:{type:"DRAGGING",offset:o.newHomeClientOffset,dimension:h,dropping:T,draggingOver:y,combineWith:x,mode:b,forceShouldAnimate:null,snapshot:t(b,p,y,x,T)}}}return null};return r}function bp(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var f2={mapped:{type:"SECONDARY",offset:ke,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:bp(null)}};function p2(){var e=Ee(function(a,l){return{x:a,y:l}}),t=Ee(bp),n=Ee(function(a,l,s){return l===void 0&&(l=null),{mapped:{type:"SECONDARY",offset:a,combineTargetFor:l,shouldAnimateDisplacement:s,snapshot:t(l)}}}),r=function(l){return l?n(ke,l,!0):null},i=function(l,s,c,u){var d=c.displaced.visible[l],f=!!(u.inVirtualList&&u.effected[l]),p=fi(c),h=p&&p.draggableId===l?s:null;if(!d){if(!f)return r(h);if(c.displaced.invisible[l])return null;var m=gr(u.displacedBy.point),b=e(m.x,m.y);return n(b,h,!0)}if(f)return r(h);var y=c.displacedBy.point,x=e(y.x,y.y);return n(x,h,d.shouldAnimate)},o=function(l,s){if(l.isDragging)return l.critical.draggable.id===s.draggableId?null:i(s.draggableId,l.critical.draggable.id,l.impact,l.afterCritical);if(l.phase==="DROP_ANIMATING"){var c=l.completed;return c.result.draggableId===s.draggableId?null:i(s.draggableId,c.result.draggableId,c.impact,c.afterCritical)}return null};return o}var h2=function(){var t=d2(),n=p2(),r=function(o,a){return t(o,a)||n(o,a)||f2};return r},g2={dropAnimationFinished:Xf},v2=If(h2,g2,null,{context:Fa,pure:!0,areStatePropsEqual:vp})(s2);function yp(e){var t=Zn(Ga),n=t.isUsingCloneFor;return n===e.draggableId&&!e.isClone?null:Q.createElement(v2,e)}function m2(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,r=!!e.shouldRespectForcePress;return Q.createElement(yp,q({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}function b2(e){var t=v.useContext(vi);t||K();var n=t.contextId,r=t.isMovementAllowed,i=v.useRef(null),o=v.useRef(null),a=e.children,l=e.droppableId,s=e.type,c=e.mode,u=e.direction,d=e.ignoreContainerClipping,f=e.isDropDisabled,p=e.isCombineEnabled,h=e.snapshot,m=e.useClone,b=e.updateViewportMaxScroll,y=e.getContainerForClone,x=oe(function(){return i.current},[]),R=oe(function(P){i.current=P},[]);oe(function(){return o.current},[]);var T=oe(function(P){o.current=P},[]),E=oe(function(){r()&&b({maxScroll:rp()})},[r,b]);qR({droppableId:l,type:s,mode:c,direction:u,isDropDisabled:f,isCombineEnabled:p,ignoreContainerClipping:d,getDroppableRef:x});var C=Q.createElement(QR,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(P){var L=P.onClose,N=P.data,W=P.animate;return Q.createElement(XR,{placeholder:N,onClose:L,innerRef:T,animate:W,contextId:n,onTransitionEnd:E})}),D=de(function(){return{innerRef:R,placeholder:C,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":n}}},[n,l,C,R]),w=m?m.dragging.draggableId:null,_=de(function(){return{droppableId:l,type:s,isUsingCloneFor:w}},[l,w,s]);function I(){if(!m)return null;var P=m.dragging,L=m.render,N=Q.createElement(yp,{draggableId:P.draggableId,index:P.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(W,O){return L(W,O,P)});return Qh.createPortal(N,y())}return Q.createElement(Ga.Provider,{value:_},a(D,h),I())}var Zi=function(t,n){return t===n.droppable.type},pc=function(t,n){return n.draggables[t.draggable.id]},y2=function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},n=q({},t,{shouldAnimatePlaceholder:!1}),r=Ee(function(a){return{draggableId:a.id,type:a.type,source:{index:a.index,droppableId:a.droppableId}}}),i=Ee(function(a,l,s,c,u,d){var f=u.descriptor.id,p=u.descriptor.droppableId===a;if(p){var h=d?{render:d,dragging:r(u.descriptor)}:null,m={isDraggingOver:s,draggingOverWith:s?f:null,draggingFromThisWith:f,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!1,snapshot:m,useClone:h}}if(!l)return n;if(!c)return t;var b={isDraggingOver:s,draggingOverWith:f,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!0,snapshot:b,useClone:null}}),o=function(l,s){var c=s.droppableId,u=s.type,d=!s.isDropDisabled,f=s.renderClone;if(l.isDragging){var p=l.critical;if(!Zi(u,p))return n;var h=pc(p,l.dimensions),m=Ke(l.impact)===c;return i(c,d,m,m,h,f)}if(l.phase==="DROP_ANIMATING"){var b=l.completed;if(!Zi(u,b.critical))return n;var y=pc(b.critical,l.dimensions);return i(c,d,mp(b.result)===c,Ke(b.impact)===c,y,f)}if(l.phase==="IDLE"&&l.completed&&!l.shouldFlush){var x=l.completed;if(!Zi(u,x.critical))return n;var R=Ke(x.impact)===c,T=!!(x.impact.at&&x.impact.at.type==="COMBINE"),E=x.critical.droppable.id===c;return R?T?t:n:E?t:n}return n};return o},x2={updateViewportMaxScroll:TC};function S2(){return document.body||K(),document.body}var w2={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:S2},xp=If(y2,x2,null,{context:Fa,pure:!0,areStatePropsEqual:vp})(b2);xp.defaultProps=w2;const C2=e=>{const t=e.replace("#","");if(!/^([A-Fa-f0-9]{3}){1,2}$/.test(t))return{r:0,g:0,b:0};const n=t.length===3?t.split("").map(r=>r+r).join(""):t;return{r:parseInt(n.substr(0,2),16),g:parseInt(n.substr(2,2),16),b:parseInt(n.substr(4,2),16)}};function I2({src:e,color:t,size:n=24,...r}){const[i,o]=v.useState("");return v.useEffect(()=>{const a=new Image;return a.crossOrigin="anonymous",a.onload=()=>{const l=document.createElement("canvas");l.width=a.width,l.height=a.height;const s=l.getContext("2d");s.drawImage(a,0,0);const c=s.getImageData(0,0,l.width,l.height),{data:u}=c,d=C2(t);for(let f=0;f<u.length;f+=4)if(u[f+3]>0){const p=u[f+3]/255;u[f]=d.r*p,u[f+1]=d.g*p,u[f+2]=d.b*p}s.putImageData(c,0,0),o(l.toDataURL("image/png"))},a.src=e,()=>{a.onload=null}},[e,t]),g.jsx(X,{component:"img",src:i||e,sx:{width:n,height:n,display:"block",opacity:i?1:.5,transition:"opacity 0.2s"},...r})}const zo=375,Sp=667,Wa=56,R2=Ze(Ar)(({theme:e})=>({width:zo,height:Sp,display:"flex",flexDirection:"column",overflow:"hidden",border:`1px solid ${e.palette.divider}`,borderRadius:32,position:"relative"})),hc=Ze(X)(({theme:e})=>({height:Wa,borderTop:`1px solid ${e.palette.divider}`,display:"flex",backgroundColor:e.palette.background.paper})),gc=Ze(X)(({theme:e,active:t})=>({flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer",position:"relative",color:t?e.palette.primary.main:e.palette.text.secondary,"&:hover":{backgroundColor:e.palette.action.hover}})),_2=Ze(X)(({theme:e,left:t})=>({position:"absolute",bottom:-Wa,left:t,transform:"translateX(-50%)",display:"flex",alignItems:"center",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,padding:`${e.spacing(.5)} ${e.spacing(1)}`,boxShadow:e.shadows[2],zIndex:1})),Rn=Ze(We)(({theme:e})=>({padding:e.spacing(.5),"&:not(:last-child)":{marginRight:e.spacing(.5)}})),D2=Ze(X)({flexGrow:1,height:"100%",position:"relative",overflow:"hidden"}),T2=Ze(X)(({theme:e})=>({width:400,paddingLeft:e.spacing(3),backgroundColor:e.palette.background.default,height:Sp,overflowY:"auto"}));function E2(){const{t:e,locale:t}=Pe(),{blocklet:n}=Wt(),r=nt(),i=en(r.breakpoints.down("md")),{state:o,getNavigation:a,updateNavigationItem:l,addNavigationItem:s,delNavigationItem:c,updateNavigationTree:u}=Zc(),{inService:d}=Cc(),f=v.useRef(null),p=v.useRef(null),h=v.useRef(null),m=n.environments.find(U=>U.key===Ve.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),b=n?.settings?.theme?.light?.palette?.primary?.main,[y,x]=v.useState(0),[R,T]=v.useState(!1),E=v.useRef(0),C=v.useRef(null),D=a("bottomNavigation"),w=D.length>0,_=D.length<5,[I,P]=v.useState(D.length>0?D[0]:null),L=D.findIndex(U=>U.id===I?.id),N=re((U,ne)=>{const ie=U?.[ne];return $c(ie)?ie[t]||ie.en:ie}),W=re(U=>{U.id!==I?.id&&P(U)}),O=re(U=>{C.current=U,h.current?.add({},(ne,ie)=>{const ce=s(ie,C.current);P(ce),ne()})}),F=re(()=>{T(!0)}),G=re(()=>{h.current?.edit(I,(U,ne)=>{l(ne),U()})}),{run:H}=Ic(()=>{p.current?.submit()},{wait:300}),Y=re(H),ee=re(U=>{if(U?.startsWith("/"))try{const ne=d?window.location.origin:m?.value;return new URL(U,ne).href}catch{console.error("Failed to resolve url: ",U)}return U},[m?.value,d]),J=re(U=>{if(!U.destination)return;const ne=Array.from(D),[ie]=ne.splice(U.source.index,1);ne.splice(U.destination.index,0,ie),u(ne)}),Z=re(()=>{const U=D.find(ie=>ie.id===I?.id);if(!U)return"";let ne=N(U,"link")||"/";if(ne.startsWith("/"))try{ne=ee(Te(U.__base||"/",ne))}catch(ie){return console.error("Failed to get active tab link",ie),""}return ne});return v.useEffect(()=>{I&&!i&&(p.current?.resetImmediate(),p.current?.edit(I,U=>{l(U)}))},[I,l,i]),v.useEffect(()=>{const U=D.findIndex(A=>A.id===I?.id);if(U===-1||!f.current)return x(E.current);const ie=zo/D.length*(U+.5),ce=f.current.getBoundingClientRect().width,B=ce/2+16,$=zo-(ce/2+16),k=Math.min(Math.max(ie,B),$);return E.current=k,x(k)},[I,D,E]),v.useEffect(()=>{D.length>0&&!I&&P(D[0])},[D,I]),g.jsx(X,{sx:{display:"flex",justifyContent:"center"},children:g.jsxs(X,{sx:{position:"relative",display:"inline-flex",alignItems:"flex-start",margin:"4px auto 0"},children:[g.jsxs(R2,{elevation:2,children:[g.jsx(D2,{children:w&&g.jsx(Ng,{url:Z(),width:"100%",height:"100%",id:"tabbar-preview",className:"tabbar-preview-iframe",display:"block",position:"relative",styles:{border:"none",background:"#fff"}})}),g.jsxs(X,{sx:{height:Wa,overflowY:"auto",flexShrink:0},children:[w&&g.jsx(AR,{onDragEnd:J,children:g.jsx(xp,{droppableId:"tabbar",direction:"horizontal",children:U=>g.jsxs(hc,{ref:U.innerRef,...U.droppableProps,children:[D.map((ne,ie)=>g.jsx(m2,{draggableId:ne.id,index:ie,children:(ce,B)=>g.jsxs(gc,{className:"tab-item",ref:ce.innerRef,...ce.draggableProps,...ce.dragHandleProps,active:ne.id===I?.id,onClick:$=>W(ne,$),sx:{color:ne.id===I?.id?b:"text.secondary",opacity:B.isDragging?.5:1},children:[g.jsx(I2,{src:ee(ne.icon),color:ne.id===I?.id?b:r.palette.text.secondary,size:24}),g.jsx(ue,{variant:"caption",children:N(ne,"title")})]})},ne.id)),U.placeholder]})})}),!w&&g.jsx(hc,{children:g.jsx(gc,{className:"tab-item",onClick:()=>O(0),children:g.jsx(at,{icon:"mdi:plus-circle-outline",size:28})})})]})]}),!i&&w&&g.jsx(T2,{children:I&&g.jsx(ma,{ref:p,sx:{p:0},section:"bottomNavigation",components:o.components,rawNavigations:o.rawNavigation,onChange:Y})}),g.jsx(Ec,{in:I!==null,children:g.jsxs(_2,{ref:f,left:y,children:[g.jsx(Rn,{size:"small",disabled:!_,onClick:()=>O(L),children:g.jsx(at,{icon:"mdi:plus-circle-outline",size:28})}),i&&g.jsx(Rn,{size:"small",onClick:()=>G(),children:g.jsx(at,{icon:"mdi:edit-box-outline",size:28})}),g.jsx(Rn,{size:"small",onClick:()=>F(),children:g.jsx(at,{icon:"mdi:delete-outline",size:28})}),g.jsx(Rn,{size:"small",disabled:!_,onClick:()=>O(L+1),children:g.jsx(at,{icon:"mdi:plus-circle-outline",size:28})})]})}),g.jsx(ba,{ref:h,section:"bottomNavigation",components:o.components,rawNavigations:o.rawNavigation}),g.jsx(Gc,{confirmButton:{text:e("common.confirm"),props:{variant:"contained",color:"error"}},cancelButton:{text:e("common.cancel"),props:{color:"primary"}},open:R,title:e("navigation.action.delTabBarTitle"),onConfirm:()=>{T(!1),c(I.id),D.length>1?L>0?P(D[L-1]):P(D[L+1]):P(null)},onCancel:()=>{T(!1)},children:g.jsx("p",{children:e("navigation.action.delTabBarDesc")})})]})})}const k2={login:tt,logout:tt,switch:tt,switchDid:tt,switchProfile:tt,switchPassport:tt,useDid:()=>({walletDid:"abcdefghijklmnopqrstuvwxyz"}),useOAuth:()=>({logoutOAuth:tt,bindOAuth:tt,configs:{},switchOAuthPassport:tt})},Dr={header:"Header",footer:"Footer",bottom:"Footer Link",social:"Footer Social",dashboard:"Dashboard",sessionManager:"Session Blocklet",userCenter:"User Center",bottomNavigation:"Tab Bar"};function P2(){const{t:e}=Pe(),{blocklet:t}=Wt(),n=v.useRef(null),{roles:r}=qc(),i=en(I=>I.breakpoints.down("md")),o=Gt({saveLoading:!1,resetLoading:!1,showResetConfirm:!1,mockRole:"owner"}),{state:a,navigation:l,getNavigation:s,saveNavigationList:c,resetNavigation:u,updateActiveSection:d,updateNavigationTree:f,updateNavigationItem:p,delNavigationItem:h,addNavigationItem:m}=Zc(),b=a.activeSection==="bottomNavigation",y=v.useCallback(I=>{n.current.add({parent:I},(P,L)=>{m(L),P()})},[m]),x=v.useCallback((I,P={})=>{switch(I){case"edit":n.current.edit(P,(L,N)=>{p(N),L()});break;case"toggle":p({id:P.id,visible:!P.visible});break;case"del":h(P.id);break}},[h,p]),R=v.useCallback(async()=>{try{o.saveLoading=!0,await c(a.rawNavigation),Lt.success(e("common.succeeded"))}catch(I){Lt.error(g.jsxs(X,{children:[g.jsx(ue,{variant:"subtitle2",children:e("navigation.actionFailed")}),g.jsx(ue,{variant:"body1",children:Xa(I)||I.error})]}))}finally{o.saveLoading=!1}},[a.rawNavigation,o,c,e]),T=v.useCallback(async()=>{try{o.resetLoading=!0,await u(a.activeSection),Lt.success(e("navigation.action.resetSuccessful"),{variant:"success"})}catch(I){Lt.error(g.jsxs(X,{children:[g.jsx(ue,{variant:"subtitle2",children:e("navigation.actionFailed")}),g.jsx(ue,{variant:"body1",children:Xa(I)||I.error})]}))}finally{o.resetLoading=!1}},[o,u,a.activeSection,e]),E=v.useMemo(()=>({session:{...k2,user:{did:t.appDid,fullName:"Preview User",role:o.mockRole,isPreviewUser:!0}}}),[t.appDid,o.mockRole]),C=s(a.activeSection),D=De(()=>a.activeSection!=="bottomNavigation"?!1:C.length>=5,[a.activeSection,C.length]),w=g.jsxs(g.Fragment,{children:[g.jsx(Ar,{variant:"outlined",sx:{display:"flex",height:660,overflow:"hidden",bgcolor:"background.default"},children:g.jsx(Ar,{elevation:0,sx:{flex:1,overflow:"auto",bgcolor:"background.default"},children:g.jsx(Bd,{treeData:C,setTreeData:f,renderActions:({data:I,className:P})=>g.jsx(Ud,{data:I,className:P,section:a.activeSection,add:(...L)=>y(...L),del:(...L)=>x("del",...L),edit:(...L)=>x("edit",...L),toggle:(...L)=>x("toggle",...L)})})})}),g.jsxs(Qa,{variant:"dense",sx:{paddingLeft:"0px !important",paddingRight:"0px !important",mt:3},children:[g.jsx(ue,{variant:"h6",component:"div",sx:{flexGrow:1},children:e("common.preview")}),g.jsxs(Dc,{sx:{m:1,minWidth:120},size:"small",children:[g.jsx(Zh,{children:e("common.role")}),g.jsx(Za,{value:o.mockRole,label:"Role",onChange:I=>{o.mockRole=I.target.value},children:r.map(I=>g.jsx(Fn,{value:I.name,children:I.title},I.name))})]})]}),g.jsx(Ar,{variant:"outlined",children:g.jsx(ni.Provider,{value:E,children:g.jsx(wS,{navigation:l})})})]}),_=g.jsx(E2,{});return g.jsxs(g.Fragment,{children:[i&&g.jsx(Za,{fullWidth:!0,size:"small",value:a.activeSection,onChange:I=>d(I.target.value),children:Object.keys(Dr).map(I=>g.jsxs(Fn,{value:I,children:[Dr[I],` (${s(I).length})`]}))}),!i&&g.jsx(yi,{variant:"outlined",children:Object.keys(Dr).map(I=>g.jsxs(_t,{variant:a.activeSection===I?"contained":void 0,onClick:()=>d(I),children:[Dr[I],` (${s(I).length})`]},I))}),g.jsxs(Qa,{variant:"dense",sx:{paddingLeft:"0px !important",paddingRight:"0px !important",mt:2},children:[g.jsx(ue,{variant:"h6",component:"div",sx:{flexGrow:1},children:e("common.config")}),g.jsx(yi,{variant:"outlined",children:g.jsx(nl,{size:"small",variant:"outlined",color:"error",startIcon:g.jsx(Se,{icon:"system-uicons:reset"}),sx:{mr:2},loading:o.resetLoading,loadingPosition:"start",onClick:()=>{o.showResetConfirm=!0},children:e("navigation.action.reset")})}),g.jsxs(yi,{variant:"outlined",children:[a.activeSection!=="bottomNavigation"&&g.jsx(_t,{size:"small",variant:"outlined",disabled:D,startIcon:g.jsx(Se,{icon:"mdi:plus"}),onClick:()=>y(),children:e("navigation.action.new")}),g.jsx(nl,{size:"small",variant:"contained",startIcon:g.jsx(Se,{icon:"mdi:content-save"}),loading:o.saveLoading,loadingPosition:"start",onClick:R,children:e("common.save")})]})]}),b?_:w,g.jsx(ba,{ref:n,section:a.activeSection,components:a.components,rawNavigations:a.rawNavigation}),g.jsx(Gc,{confirmButton:{text:e("common.confirm"),props:{variant:"contained",color:"error"}},cancelButton:{text:e("common.cancel"),props:{color:"primary"}},open:o.showResetConfirm,title:e("navigation.action.restConfirmTitle",{section:Dr[a.activeSection]}),onConfirm:async()=>{await T(),o.showResetConfirm=!1},onCancel:()=>{o.showResetConfirm=!1},children:g.jsx("p",{children:e("navigation.action.restConfirmDesc")})})]})}function k_(){return g.jsx(Cv,{children:g.jsx(P2,{})})}export{k_ as default};